Skip to content

Commit

Permalink
fix: RA-84 reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
shleger committed May 6, 2024
1 parent 870c598 commit 03d75ec
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@
import static org.cardanofoundation.rosetta.common.util.Constants.ADA;
import static org.cardanofoundation.rosetta.common.util.Constants.ADA_DECIMALS;

class
BlockTxToRosettaTransactionTest extends BaseMapperTest {
class BlockTxToRosettaTransactionTest extends BaseMapperTest {

@Autowired
private BlockTxToRosettaTransaction my;


@Test
void toDto_Test_empty_operations() {
//given
Expand Down Expand Up @@ -99,7 +97,6 @@ void toDto_Test_StakeRegistrationOperations() {
assertThat(stakeInto.getAccount().getAddress()).isEqualTo(firstFrom.getAddress());
assertThat(stakeInto.getMetadata().getDepositAmount()).isEqualTo(amountActual("500"));
});

}


Expand Down Expand Up @@ -138,9 +135,6 @@ void toDto_Test_DelegationOperations() {
assertThat(stakeInto.getAccount().getAddress()).isEqualTo(firstFrom.getAddress());
assertThat(stakeInto.getMetadata().getPoolKeyHash()).isEqualTo(firstFrom.getPoolId());
assertThat(stakeInto.getMetadata().getDepositAmount()).isNull();



}

@Test
Expand Down Expand Up @@ -198,7 +192,6 @@ void toDto_Test_getPoolRegistrationOperations() {
assertThat(poolRegParams.getPoolOwners()).hasSameElementsAs(firstFrom.getOwners());
assertThat(poolRegParams.getMarginPercentage()).isEqualTo(firstFrom.getMargin());
assertThat(poolRegParams.getRelays()).hasSameElementsAs(firstFrom.getRelays());

}


Expand Down Expand Up @@ -239,9 +232,6 @@ void toDto_Test_getPoolRetirementOperations() {
assertThat(poolInto.getAccount().getAddress()).isEqualTo(firstFrom.getPoolId());
assertThat(poolInto.getMetadata().getEpoch()).isEqualTo(firstFrom.getEpoch());
assertThat(poolInto.getMetadata().getDepositAmount()).isNull();



}

@Test
Expand Down Expand Up @@ -298,7 +288,6 @@ void toDto_Test_getOutputsAsOperations() {
.isEqualTo(Hex.encodeHexString(
from.getOutputs().getFirst().getAmounts().getFirst().getAssetName().getBytes()));
assertThat(token.getCurrency().getDecimals()).isEqualTo(0);

}


Expand Down Expand Up @@ -347,7 +336,6 @@ void toDto_Test_getInputsAsOperations() {
.isEqualTo(Hex.encodeHexString(
from.getInputs().getFirst().getAmounts().getFirst().getAssetName().getBytes()));
assertThat(token.getCurrency().getDecimals()).isEqualTo(0);

}


Expand Down Expand Up @@ -377,7 +365,6 @@ void toDto_Test_getWithdrawlOperations() {
assertThat(opInto.getMetadata().getWithdrawalAmount().getValue())
.isEqualTo("-"+ from.getWithdrawals().getFirst().getAmount().toString());
assertThat(opInto.getMetadata().getDepositAmount()).isNull();

}


Expand Down Expand Up @@ -443,6 +430,4 @@ private static Amt newTokenAmt() {
.unit("unit1")
.build();
}


}

0 comments on commit 03d75ec

Please sign in to comment.