Skip to content

Commit

Permalink
separated tests to multiple folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Michail Plushnikov committed Jun 10, 2016
1 parent bf3164c commit 8c723d9
Show file tree
Hide file tree
Showing 235 changed files with 99 additions and 108 deletions.
Expand Up @@ -23,7 +23,6 @@
import com.intellij.psi.PsiReferenceList;
import com.intellij.psi.PsiType;
import com.intellij.util.containers.SortedList;
import com.jgoodies.common.base.Objects;
import org.apache.log4j.Logger;
import org.jetbrains.annotations.NotNull;

Expand Down Expand Up @@ -91,7 +90,7 @@ private void compareClasses(PsiClass[] beforeClasses, PsiClass[] afterClasses) {
for (PsiClass afterClass : afterClasses) {
boolean compared = false;
for (PsiClass beforeClass : beforeClasses) {
if (Objects.equals(afterClass.getName(), beforeClass.getName())) {
if (Objects.equal(afterClass.getName(), beforeClass.getName())) {
compareTwoClasses(beforeClass, afterClass);
compared = true;
}
Expand Down Expand Up @@ -128,7 +127,7 @@ private void compareFields(PsiClass beforeClass, PsiClass afterClass) {
boolean compared = false;
final PsiModifierList afterFieldModifierList = afterField.getModifierList();
for (PsiField beforeField : beforeClassFields) {
if (Objects.equals(afterField.getName(), beforeField.getName())) {
if (Objects.equal(afterField.getName(), beforeField.getName())) {
final PsiModifierList beforeFieldModifierList = beforeField.getModifierList();

compareModifiers(beforeFieldModifierList, afterFieldModifierList);
Expand Down
Expand Up @@ -7,7 +7,7 @@
*/
public class AccessorsTest extends AbstractLombokParsingTestCase {

public void testAccessors() throws Exception {
public void testAccessors$Accessors() throws Exception {
doTest();
}
}
Expand Up @@ -10,107 +10,107 @@
public class BuilderTest extends AbstractLombokParsingTestCase {

// This test is lombok's homepage example.
public void testBuilderExample() throws IOException {
public void testBuilder$BuilderExample() throws IOException {
doTest();
}

// This test is lombok's homepage customized example.
public void testBuilderExampleCustomized() throws IOException {
public void testBuilder$BuilderExampleCustomized() throws IOException {
doTest();
}

public void testBuilderSimple() throws IOException {
public void testBuilder$BuilderSimple() throws IOException {
doTest();
}

public void testBuilderComplex() throws IOException {
public void testBuilder$BuilderComplex() throws IOException {
doTest();
}

public void testBuilderChainAndFluent() throws IOException {
public void testBuilder$BuilderChainAndFluent() throws IOException {
doTest();
}

public void testBuilderWithAccessors() throws IOException {
public void testBuilder$BuilderWithAccessors() throws IOException {
doTest();
}

// This test is lombok's homepage example with predefined elements and another inner class.
public void testBuilderPredefined() throws IOException {
public void testBuilder$BuilderPredefined() throws IOException {
doTest();
}

public void testBuilderWithExistingBuilderClass() throws IOException {
public void testBuilder$BuilderWithExistingBuilderClass() throws IOException {
doTest();
}

public void testBuilderConstructorException() throws IOException {
public void testBuilder$BuilderConstructorException() throws IOException {
doTest();
}

public void testBuilderAndAllArgsConstructor() throws IOException {
public void testBuilder$BuilderAndAllArgsConstructor() throws IOException {
doTest();
}

public void testBuilderMethodException() throws IOException {
public void testBuilder$BuilderMethodException() throws IOException {
doTest();
}

public void testBuilderSingularGuavaListsSets() throws IOException {
public void testBuilder$BuilderSingularGuavaListsSets() throws IOException {
doTest();
}

public void testBuilderSingularGuavaMaps() throws IOException {
public void testBuilder$BuilderSingularGuavaMaps() throws IOException {
doTest();
}

public void testBuilderSingularSets() throws IOException {
public void testBuilder$BuilderSingularSets() throws IOException {
doTest();
}

public void testBuilderSingularLists() throws IOException {
public void testBuilder$BuilderSingularLists() throws IOException {
doTest();
}

public void testBuilderSingularMaps() throws IOException {
public void testBuilder$BuilderSingularMaps() throws IOException {
doTest();
}

// ignored because of disabled auto singularization
public void ignore_testBuilderSingularNoAuto() throws IOException {
public void ignore_testBuilder$BuilderSingularNoAuto() throws IOException {
doTest();
}

public void testBuilderSingularRedirectToGuava() throws IOException {
public void testBuilder$BuilderSingularRedirectToGuava() throws IOException {
doTest();
}

// TODO implement me
public void ignore_testBuilderInstanceMethod() throws IOException {
public void ignore_testBuilder$BuilderInstanceMethod() throws IOException {
doTest();
}

public void testBuilderSingularWithPrefixes() throws IOException {
public void testBuilder$BuilderSingularWithPrefixes() throws IOException {
doTest();
}

// TODO implement me
public void ignore_testBuilderWithToBuilder() throws IOException {
public void ignore_testBuilder$BuilderWithToBuilder() throws IOException {
doTest();
}

// TODO fixme
public void ignore_testBuilderWithToBuilderOnClass() throws IOException {
public void ignore_testBuilder$BuilderWithToBuilderOnClass() throws IOException {
doTest();
}

// TODO fixme
public void ignore_testBuilderWithToBuilderOnConstructor() throws IOException {
public void ignore_testBuilder$BuilderWithToBuilderOnConstructor() throws IOException {
doTest();
}

// TODO fixme
public void ignore_testBuilderWithToBuilderOnMethod() throws IOException {
public void ignore_testBuilder$BuilderWithToBuilderOnMethod() throws IOException {
doTest();
}
}
Expand Up @@ -9,27 +9,27 @@
*/
public class ConstructorTest extends AbstractLombokParsingTestCase {

public void testConstructors() throws IOException {
public void testConstructors$Constructors() throws IOException {
doTest();
}

public void testConflictingStaticConstructorNames() throws IOException {
public void testConstructors$ConflictingStaticConstructorNames() throws IOException {
doTest();
}

public void testNoArgsConstructorForced() throws IOException {
public void testConstructors$NoArgsConstructorForced() throws IOException {
doTest();
}

public void testConstructorEnum() throws IOException {
public void testConstructors$ConstructorEnum() throws IOException {
doTest();
}

public void testRequiredArgsConstructorWithGeneric136() throws IOException {
public void testConstructors$RequiredArgsConstructorWithGeneric136() throws IOException {
doTest();
}

public void testRequiredArgsConstructorWithGeneric157() throws IOException {
public void testConstructors$RequiredArgsConstructorWithGeneric157() throws IOException {
doTest();
}
}
Expand Up @@ -13,40 +13,40 @@ protected boolean shouldCompareCodeBlocks() {
return false;
}

public void testDataExtended() throws IOException {
public void testData$DataExtended() throws IOException {
doTest();
}

public void testDataIgnore() throws IOException {
public void testData$DataIgnore() throws IOException {
doTest();
}

public void testDataOnEnum() throws IOException {
public void testData$DataOnEnum() throws IOException {
doTest();
}

public void testDataOnLocalClass() throws IOException {
public void testData$DataOnLocalClass() throws IOException {
doTest();
}

public void testDataPlain() throws IOException {
public void testData$DataPlain() throws IOException {
doTest();
}

public void testDataWithGetter() throws IOException {
public void testData$DataWithGetter() throws IOException {
doTest();
}

public void testDataWithGetterNone() throws IOException {
public void testData$DataWithGetterNone() throws IOException {
doTest();
}

public void testDataStaticConstructor() throws IOException {
public void testData$DataStaticConstructor() throws IOException {
// Test for issue #9
doTest();
}

public void testDataWithGeneric176() throws IOException {
public void testData$DataWithGeneric176() throws IOException {
doTest();
}
}
Expand Up @@ -7,36 +7,36 @@
*/
public class DelegateTest extends AbstractLombokParsingTestCase {

public void ignore_testDelegateOnGetter() throws Exception {
public void ignore_testDelegate$DelegateOnGetter() throws Exception {
//TODO known problem, try to fix later
doTest();
}

public void testDelegateOnGetterNone() throws Exception {
public void testDelegate$DelegateOnGetterNone() throws Exception {
doTest();
}

public void testDelegateOnMethods() throws Exception {
public void testDelegate$DelegateOnMethods() throws Exception {
doTest();
}

public void testDelegateRecursion() throws Exception {
public void testDelegate$DelegateRecursion() throws Exception {
doTest();
}

public void testDelegateTypesAndExcludes() throws Exception {
public void testDelegate$DelegateTypesAndExcludes() throws Exception {
doTest();
}

public void testDelegateWithDeprecated() throws Exception {
public void testDelegate$DelegateWithDeprecated() throws Exception {
doTest();
}

public void testDelegateWithException() throws Exception {
public void testDelegate$DelegateWithException() throws Exception {
doTest();
}

public void testDelegateGenericInterfaceIssue88() throws Exception {
public void testDelegate$DelegateGenericInterfaceIssue88() throws Exception {
doTest();
}
}

0 comments on commit 8c723d9

Please sign in to comment.