import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.ExpressionStatement;
import org.eclipse.jdt.core.dom.MethodInvocation;
-import org.junit.Before;
+import org.junit.BeforeClass;
import org.junit.Test;
public class SearchBasedExtractAndMoveMethodAnalyzerTest {
+ // NOTE: if any tests shall alter any code, the example code
+ // must be loaded in setUp method
- private IProgressMonitor monitor;
+ private static IProgressMonitor monitor;
- @Before
- public void setUp() throws Exception {
+ @BeforeClass
+ public static void setUpClass() throws Exception {
monitor = new NullProgressMonitor();
ExampleCodeManager.INSTANCE.loadExampleCode(monitor);
}