When i run the below code, both test cases come true:
import static junit.framework.Assert.assertEquals; import org.junit.Test; public class MyTest{ pr
If you want to use test class's member variable for all tests , without it being reinitialised to null, then make it static.