Skip to content

Commit

Permalink
CR: Fix class names
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-owczarek committed Oct 25, 2024
1 parent 28c2894 commit d494fc0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.tngtech.archunit.library.testclasses.packages.correct.defaultsuffix.ImplementationClassWithCorrectPackage;
import com.tngtech.archunit.library.testclasses.packages.correct.notest.ImplementationClassWithoutTestClass;
import com.tngtech.archunit.library.testclasses.packages.correct.onedirmatching.ImplementationClassWithOneTestPackageMatchingOutOfTwo;
import com.tngtech.archunit.library.testclasses.packages.correct.twoimplementationsonetestdir1.MultipleImplementationsWithOnlyOneTestAndInRightPackage;
import com.tngtech.archunit.library.testclasses.packages.correct.twoimplementationsonetestdir1.SimpleNameThatOccursInSeveralPackages;
import com.tngtech.archunit.library.testclasses.packages.incorrect.nodirmatching.ImplementationClassWithMultipleTestsNotMatchingImplementationClassPackage;
import com.tngtech.archunit.library.testclasses.packages.incorrect.wrongsubdir.customsuffix.ImplementationClassWithWrongTestClassPackageCustomSuffix;
import com.tngtech.archunit.library.testclasses.packages.incorrect.wrongsubdir.customsuffix.subdir.ImplementationClassWithWrongTestClassPackageCustomSuffixTestingScenario;
Expand Down Expand Up @@ -88,8 +88,8 @@ public void should_not_pass_when_none_of_multiple_matching_test_classes_resides_
public void should_pass_when_only_one_of_two_implementations_have_test_class_and_it_is_in_implementation_package() {
assertThatRule(testClassesShouldResideInTheSamePackageAsImplementation())
.checking(new ClassFileImporter().importPackagesOf(
MultipleImplementationsWithOnlyOneTestAndInRightPackage.class,
com.tngtech.archunit.library.testclasses.packages.incorrect.twoimplementationsonetestdir2.MultipleImplementationsWithOnlyOneTestAndInRightPackage.class
SimpleNameThatOccursInSeveralPackages.class,
com.tngtech.archunit.library.testclasses.packages.incorrect.twoimplementationsonetestdir2.SimpleNameThatOccursInSeveralPackages.class
))
.hasNoViolation();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tngtech.archunit.library.testclasses.packages.correct.twoimplementationsonetestdir1;

public class MultipleImplementationsWithOnlyOneTestAndInRightPackage {
public class SimpleNameThatOccursInSeveralPackages {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tngtech.archunit.library.testclasses.packages.correct.twoimplementationsonetestdir1;

public class OnlyOneImplementationHaveTestAndItIsMatchingImplPackageTest {
class SimpleNameThatOccursInSeveralPackagesTest {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tngtech.archunit.library.testclasses.packages.incorrect.twoimplementationsonetestdir2;

public class MultipleImplementationsWithOnlyOneTestAndInRightPackage {
public class SimpleNameThatOccursInSeveralPackages {
}

0 comments on commit d494fc0

Please sign in to comment.