diff --git a/test/java/integration/InitialIntegrationTest.java b/test/java/integration/InitialIntegrationTest.java deleted file mode 100644 index 3b26a1cbd..000000000 --- a/test/java/integration/InitialIntegrationTest.java +++ /dev/null @@ -1,46 +0,0 @@ -package integration; - -import static brs.http.common.ResultFields.BALANCE_NQT_RESPONSE; -import static org.junit.Assert.assertEquals; - -import integration.common.AbstractIT; -import integration.common.BlockMessageBuilder; -import java.io.IOException; -import org.json.simple.JSONObject; -import org.json.simple.parser.ParseException; -import org.junit.Test; - -public class InitialIntegrationTest extends AbstractIT { - - @Test - public void canStartIntegrationTest() throws IOException, ParseException, InterruptedException { - super.processBlock(getJSONFirstBlock()); - - final String expectedBlockGenerator = "BURST-5BE2-6SGA-K455-BCCY3"; - - final JSONObject foundAccount = apiSender.getAccount(expectedBlockGenerator); - - Thread.sleep(200); - - assertEquals(expectedBlockGenerator, foundAccount.get("accountRS")); - assertEquals("1000000000000", foundAccount.get(BALANCE_NQT_RESPONSE)); - } - - public JSONObject getJSONFirstBlock() { - return new BlockMessageBuilder() - .payloadLength(0) - .totalAmountNQT(0).totalFeeNQT(0) - .generationSignature("305a98571a8b96f699449dd71eff051fc10a3475bce18c7dac81b3d9316a9780") - .generatorPublicKey("a44e4299354f59919329a0bfbac7d6858873ef06c8db3a6a90158f581478bd38") - .payloadHash("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") - .blockSignature("0271d3d9adae0636d8d7c4a3612848f694690157693847734441f3a499410a0cadfc65aac43802afe39e22725465b9301eae89ae59fdd554835607a40c3b370b") - .transactions(null) - .version(3) - .nonce("31687") - .blockATs(null) - .previousBlock("3444294670862540038") - .timestamp(683) - .previousBlockHash("065d8826c197cc2fc7059b15fedc7d700bc56320095eafb4c1ab115ba0a3979e") - .toJson(); - } -}