Skip to content

Commit

Permalink
roll back unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Danno Ferrin <[email protected]>
  • Loading branch information
shemnon committed Nov 9, 2023
1 parent 79eba05 commit 788267f
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -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));
Expand All @@ -80,7 +80,7 @@ void noJsonTracer() {
}

@Test
void testsInvalidTransactions() {
public void testsInvalidTransactions() {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final ByteArrayInputStream bais =
new ByteArrayInputStream(
Expand All @@ -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(
Expand All @@ -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));
Expand All @@ -121,7 +121,7 @@ void failStreamMissingFile() {
}

@Test
void failStreamBadFile() {
public void failStreamBadFile() {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final ByteArrayInputStream bais =
new ByteArrayInputStream(
Expand Down

0 comments on commit 788267f

Please sign in to comment.