Skip to content

Commit

Permalink
Tests: remove the SetupCoinbaseOnEmptyWallet test
Browse files Browse the repository at this point in the history
  • Loading branch information
semux committed Jul 19, 2019
1 parent bfefef1 commit cbab5c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/main/java/org/semux/core/Wallet.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ protected void readHdSeed(byte[] key, SimpleDecoder dec) {
byte[] hdSeedEncrypted = dec.readBytes();
byte[] hdSeedRaw = Aes.decrypt(hdSeedEncrypted, key, iv);

Map<ByteArray, String> map = new HashMap<>();
SimpleDecoder d = new SimpleDecoder(hdSeedRaw);
mnemonicPhrase = d.readString();
nextAccountIndex = d.readInt();
Expand Down
14 changes: 0 additions & 14 deletions src/test/java/org/semux/gui/SemuxGuiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,6 @@ public void testSetupCoinbase() throws ParseException {
assertThat(gui.setupCoinbase(wallet)).isEqualTo(3);
}

@Test
public void testSetupCoinbaseEmpty() throws ParseException {
Wallet wallet = kernelRule.getKernel().getWallet();
wallet.setAccounts(Collections.emptyList());

// setup coinbase
SemuxGui gui = spy(new SemuxGui(new WalletModel(kernelRule.getKernel().getConfig()), kernelRule.getKernel()));
Mockito.doNothing().when(gui).startKernel(any(), any(), any());
gui.setupCoinbase(wallet);

// verify
assertThat(wallet.size()).isEqualTo(1);
}

@Test
public void testProcessBlock() {
KernelMock kernel = kernelRule.getKernel();
Expand Down

0 comments on commit cbab5c5

Please sign in to comment.