move initializer to setup: should work when setup method is there (IDEA-171236)

This commit is contained in:
Anna.Kozlova
2017-04-11 11:30:10 +02:00
parent 8ea1d42ecf
commit c9554bd544
3 changed files with 37 additions and 15 deletions

View File

@@ -0,0 +1,10 @@
// "Move initializer to setUp method" "true"
public class X {
int i;
@org.junit.Before
public void setUp() throws Exception {
i = 7;
}
}

View File

@@ -0,0 +1,9 @@
// "Move initializer to setUp method" "true"
public class X {
<caret>int i = 7;
@org.junit.Before
public void setUp() throws Exception {
}
}