-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JUnit5-support for libraries with
@ArchTest
s in abstract base classes
This corresponds to 59f8c4d, which added the same feature for JUnit4 (Issue: #104). Signed-off-by: Manfred Hanke <[email protected]>
- Loading branch information
1 parent
f3ea378
commit 89747bd
Showing
3 changed files
with
46 additions
and
6 deletions.
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
15 changes: 15 additions & 0 deletions
15
...it/junit/internal/testexamples/abstractbase/ArchTestWithLibraryWithAbstractBaseClass.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,15 @@ | ||
package com.tngtech.archunit.junit.internal.testexamples.abstractbase; | ||
|
||
import com.tngtech.archunit.junit.AnalyzeClasses; | ||
import com.tngtech.archunit.junit.ArchTest; | ||
import com.tngtech.archunit.junit.ArchTests; | ||
|
||
@AnalyzeClasses(packages = "some.dummy.package") | ||
public class ArchTestWithLibraryWithAbstractBaseClass { | ||
public static final String FIELD_RULE_LIBRARY_NAME = "fieldRules"; | ||
public static final String METHOD_RULE_LIBRARY_NAME = "methodRules"; | ||
@ArchTest | ||
ArchTests fieldRules = ArchTests.in(ArchTestWithAbstractBaseClassWithFieldRule.class); | ||
@ArchTest | ||
ArchTests methodRules = ArchTests.in(ArchTestWithAbstractBaseClassWithMethodRule.class); | ||
} |