add setup method before first test method: setting needed? (IDEA-61605)

This commit is contained in:
anna
2010-11-25 13:49:21 +03:00
parent 5ebb6cc3c2
commit cd5b299bf4
8 changed files with 49 additions and 18 deletions

View File

@@ -3,12 +3,12 @@ import org.junit.Test;
public class T {
private int i;
@Test
public void test() {
}
@Before
public void setUp() throws Exception {
i = 9;
}
@Test
public void test() {
}
}