-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve rule to not fail for classes with no tests in their packages (#…
…1368) This will improve the existing rule to test that test classes reside in the same package as their implementation. In particular the rule: Should not fail if there are multiple test classes with the same simple name and some of the classes have no tests at all Issue: #1367
- Loading branch information
Showing
5 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...packages/correct/twoimplementationsonetestdir1/SimpleNameThatOccursInSeveralPackages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.tngtech.archunit.library.testclasses.packages.correct.twoimplementationsonetestdir1; | ||
|
||
public class SimpleNameThatOccursInSeveralPackages { | ||
} |
4 changes: 4 additions & 0 deletions
4
...ages/correct/twoimplementationsonetestdir1/SimpleNameThatOccursInSeveralPackagesTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.tngtech.archunit.library.testclasses.packages.correct.twoimplementationsonetestdir1; | ||
|
||
class SimpleNameThatOccursInSeveralPackagesTest { | ||
} |
4 changes: 4 additions & 0 deletions
4
...ckages/incorrect/twoimplementationsonetestdir2/SimpleNameThatOccursInSeveralPackages.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.tngtech.archunit.library.testclasses.packages.incorrect.twoimplementationsonetestdir2; | ||
|
||
public class SimpleNameThatOccursInSeveralPackages { | ||
} |