From 788267feec48bdd3f05f05cc60cdff1ac9282759 Mon Sep 17 00:00:00 2001 From: Danno Ferrin Date: Thu, 9 Nov 2023 15:57:50 -0700 Subject: [PATCH] roll back unit test Signed-off-by: Danno Ferrin --- .../besu/evmtool/StateTestSubCommandTest.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ethereum/evmtool/src/test/java/org/hyperledger/besu/evmtool/StateTestSubCommandTest.java b/ethereum/evmtool/src/test/java/org/hyperledger/besu/evmtool/StateTestSubCommandTest.java index 00ac7d52ae0..3a893898884 100644 --- a/ethereum/evmtool/src/test/java/org/hyperledger/besu/evmtool/StateTestSubCommandTest.java +++ b/ethereum/evmtool/src/test/java/org/hyperledger/besu/evmtool/StateTestSubCommandTest.java @@ -27,10 +27,10 @@ import org.junit.jupiter.api.Test; import picocli.CommandLine; -class StateTestSubCommandTest { +public class StateTestSubCommandTest { @Test - void shouldDetectUnsupportedFork() { + public void shouldDetectUnsupportedFork() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); EvmToolCommand parentCommand = new EvmToolCommand(System.in, new PrintWriter(baos, true, UTF_8)); @@ -44,7 +44,7 @@ void shouldDetectUnsupportedFork() { } @Test - void shouldWorkWithValidStateTest() { + public void shouldWorkWithValidStateTest() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); EvmToolCommand parentCommand = new EvmToolCommand(System.in, new PrintWriter(baos, true, UTF_8)); @@ -55,7 +55,7 @@ void shouldWorkWithValidStateTest() { } @Test - void shouldWorkWithValidAccessListStateTest() { + public void shouldWorkWithValidAccessListStateTest() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); EvmToolCommand parentCommand = new EvmToolCommand(System.in, new PrintWriter(baos, true, UTF_8)); @@ -66,7 +66,7 @@ void shouldWorkWithValidAccessListStateTest() { } @Test - void noJsonTracer() { + public void noJsonTracer() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); EvmToolCommand parentCommand = new EvmToolCommand(System.in, new PrintWriter(baos, true, UTF_8)); @@ -80,7 +80,7 @@ void noJsonTracer() { } @Test - void testsInvalidTransactions() { + public void testsInvalidTransactions() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final ByteArrayInputStream bais = new ByteArrayInputStream( @@ -91,11 +91,11 @@ void testsInvalidTransactions() { final StateTestSubCommand stateTestSubCommand = new StateTestSubCommand(new EvmToolCommand(bais, new PrintWriter(baos, true, UTF_8))); stateTestSubCommand.run(); - assertThat(baos.toString(UTF_8)).contains("exceeds transaction sender account balance"); + assertThat(baos.toString(UTF_8)).contains("Transaction had out-of-bounds parameters"); } @Test - void shouldStreamTests() { + public void shouldStreamTests() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final ByteArrayInputStream bais = new ByteArrayInputStream( @@ -110,7 +110,7 @@ void shouldStreamTests() { } @Test - void failStreamMissingFile() { + public void failStreamMissingFile() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final ByteArrayInputStream bais = new ByteArrayInputStream("./file-dose-not-exist.json".getBytes(UTF_8)); @@ -121,7 +121,7 @@ void failStreamMissingFile() { } @Test - void failStreamBadFile() { + public void failStreamBadFile() { final ByteArrayOutputStream baos = new ByteArrayOutputStream(); final ByteArrayInputStream bais = new ByteArrayInputStream(