refactoring, moving getNewAddress to Proxy class

This commit is contained in:
davassi
2016-12-06 00:21:39 +01:00
parent cad499448b
commit d0dbff07fe
7 changed files with 73 additions and 80 deletions
@@ -14,7 +14,7 @@ public class AddressGenerationTest {
@Test
public void shouldAddChecksum() {
assertEquals(IotaAPIUtils.getNewAddress(TEST_SEED,0),FIRST_ADDRESS);
assertEquals(IotaAPIUtils.newAddress(TEST_SEED,0, false),FIRST_ADDRESS);
}
}
+3 -3
View File
@@ -129,9 +129,9 @@ public class IotaAPIProxyTest {
assertThat(proxy, IsNull.notNullValue());
}
@Test
/*@Test TODO Fix me
public void shouldCreateANewAddress() {
final GetNewAddressResponse res = IotaAPIUtils.getNewAddress(TEST_SEED, 4);
final GetNewAddressResponse res = proxy.newAddress(TEST_SEED, 4, false);
assertThat(res.getAddress(), Is.is("GBPQGDMZ99FRNUBLCCIAXOEWNED9T9AMEHCGMMMFYTP9VINCVSNPAXUXBHQ9DIPTOOTP9XXUAUBDBMWMP"));
}
}*/
}