This commit is contained in:
Dmitry Jemerov
2009-09-11 16:43:06 +04:00
parent a636350aa2
commit 5e7b849a83
13 changed files with 8 additions and 3 deletions
@@ -10,11 +10,17 @@ import com.intellij.refactoring.memberPushDown.PushDownProcessor;
import com.intellij.refactoring.util.DocCommentPolicy;
import com.intellij.refactoring.util.classMembers.MemberInfo;
import com.intellij.testFramework.LightCodeInsightTestCase;
import com.intellij.JavaTestUtil;
import java.util.ArrayList;
import java.util.List;
public class PushDownTest extends LightCodeInsightTestCase {
@Override
protected String getTestDataPath() {
return JavaTestUtil.getJavaTestDataPath();
}
private void doTest() throws Exception {
doTest(false);
}
@@ -45,8 +51,7 @@ public class PushDownTest extends LightCodeInsightTestCase {
memberInfo.setChecked(true);
membersToMove.add(memberInfo);
new PushDownProcessor(getProject(), membersToMove.toArray(new MemberInfo[membersToMove.size()]), classes[0], new DocCommentPolicy(
DocCommentPolicy.ASIS)){
new PushDownProcessor(getProject(), membersToMove.toArray(new MemberInfo[membersToMove.size()]), classes[0], new DocCommentPolicy(DocCommentPolicy.ASIS)){
@Override
protected boolean showConflicts(final List<String> conflicts) {
if (failure ? conflicts.isEmpty() : !conflicts.isEmpty()) {
@@ -82,4 +87,4 @@ public class PushDownTest extends LightCodeInsightTestCase {
public void testFieldAndStaticReferencedClass() throws Exception {
doTest();
}
}
}