-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add arch test to ensure abstract integration test inheritance
- Loading branch information
1 parent
591feae
commit 31ec22b
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/test/java/de/tum/cit/aet/artemis/atlas/architecture/TestArchitectureTest.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,17 @@ | ||
package de.tum.cit.aet.artemis.atlas.architecture; | ||
|
||
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import de.tum.cit.aet.artemis.atlas.AbstractAtlasIntegrationTest; | ||
import de.tum.cit.aet.artemis.shared.architecture.AbstractArchitectureTest; | ||
|
||
class TestArchitectureTest extends AbstractArchitectureTest { | ||
|
||
@Test | ||
void integrationTestsShouldExtendAbstractAtlasIntegrationTest() { | ||
classes().that().resideInAPackage(ARTEMIS_PACKAGE + ".atlas").and().haveSimpleNameEndingWith("IntegrationTest").should().beAssignableTo(AbstractAtlasIntegrationTest.class) | ||
.because("All integration tests should extend AbstractAtlasIntegrationTest").check(testClasses); | ||
} | ||
} |