I just discovered when creating some CRUD tests that you can\'t set data in one test and have it read in another test (data is set back to its initialization between each te
JUnit is independent test. But, If you have no ways, you can use "static" instance to store it.
static String storage; @Test public void method1() { storage = "Hello" } @Test public void method2() { Assert.assertThat(something, is(storage)); }