Skip to content

Commit

Permalink
Add missing assertations
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 23, 2024
1 parent 2232a05 commit 6ab9483
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import static com.enofex.taikai.test.JUnit5DescribedPredicates.annotatedWithTestOrParameterizedTest;
import static com.tngtech.archunit.lang.conditions.ArchConditions.beAnnotatedWith;
import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.methods;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;

import com.tngtech.archunit.core.domain.JavaClasses;
import com.tngtech.archunit.core.importer.ClassFileImporter;
Expand All @@ -25,7 +26,7 @@ void shouldIdentifyClassesAnnotatedWithTestOrParameterizedTest() {
.should(beAnnotatedWith(ANNOTATION_TEST)
.or(beAnnotatedWith(ANNOTATION_PARAMETRIZED_TEST)));

rule.check(importedClasses);
assertDoesNotThrow(() -> rule.check(importedClasses));
}

@Test
Expand All @@ -37,7 +38,7 @@ void shouldIdentifyClassesMetaAnnotatedWithTestOrParameterizedTest() {
.should(ArchConditions.beMetaAnnotatedWith(ANNOTATION_TEST)
.or(ArchConditions.beMetaAnnotatedWith(ANNOTATION_PARAMETRIZED_TEST)));

rule.check(importedClasses);
assertDoesNotThrow(() -> rule.check(importedClasses));
}

private static final class TestExample {
Expand Down

0 comments on commit 6ab9483

Please sign in to comment.