use of org.aion.precompiled.contracts.ATB.ErrCode in project aion by aionnetwork.
the class BridgeControllerRingTest method testRingRemoveNonExistingMember.
@Test
public void testRingRemoveNonExistingMember() {
ErrCode code = this.controller.ringRemoveMember(OWNER_ADDR.toByteArray(), memberAddress);
assertThat(code).isEqualTo(ErrCode.RING_MEMBER_NOT_EXISTS);
}
use of org.aion.precompiled.contracts.ATB.ErrCode in project aion by aionnetwork.
the class BridgeControllerRingTest method testRingRemoveMemberNotOwner.
@Test
public void testRingRemoveMemberNotOwner() {
ErrCode code = this.controller.ringRemoveMember(CONTRACT_ADDR.toByteArray(), memberAddress);
assertThat(code).isEqualTo(ErrCode.NOT_OWNER);
}
use of org.aion.precompiled.contracts.ATB.ErrCode in project aion by aionnetwork.
the class BridgeControllerRingTest method testRingAddMember.
@Test
public void testRingAddMember() {
ErrCode code = this.controller.ringAddMember(OWNER_ADDR.toByteArray(), memberAddress);
assertThat(code).isEqualTo(ErrCode.NO_ERROR);
}
use of org.aion.precompiled.contracts.ATB.ErrCode in project aion by aionnetwork.
the class BridgeControllerRingTest method testRingAddMemberNotOwner.
@Test
public void testRingAddMemberNotOwner() {
ErrCode code = this.controller.ringAddMember(CONTRACT_ADDR.toByteArray(), memberAddress);
assertThat(code).isEqualTo(ErrCode.NOT_OWNER);
}
use of org.aion.precompiled.contracts.ATB.ErrCode in project aion by aionnetwork.
the class BridgeControllerRingTest method testRingReinitialization.
@Test
public void testRingReinitialization() {
ErrCode code = this.controller.ringInitialize(OWNER_ADDR.toByteArray(), getMemberAddress(members));
assertThat(code).isEqualTo(ErrCode.RING_LOCKED);
}
Aggregations