Skip to content

Commit

Permalink
Add missing test for failing structural test class modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
MaisiKoleni committed Mar 31, 2021
1 parent 7267733 commit 1999708
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/de/tum/in/test/api/StructuralTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class StructuralTest {
private final String testClassSomeEnum = "testClasses()/dynamic-test:#5";
private final String testClassSomeAbstractClass = "testClasses()/dynamic-test:#6";
private final String testClassMisspelledclass = "testClasses()/dynamic-test:#7";
private final String testClassSomeFailingClass = "testClasses()/dynamic-test:#8";
private final String testConstructorsSomeClass = "testConstructors()/dynamic-test:#1";
private final String testConstructorsSomeEnum = "testConstructors()/dynamic-test:#2";
private final String testConstructorsSomeAbstractClass = "testConstructors()/dynamic-test:#3";
Expand Down Expand Up @@ -114,6 +115,12 @@ void test_testClassMisspelledclass() {
+ "Check for wrong upper case / lower case lettering."));
}

@TestTest
void test_testClassSomeFailingClass() {
tests.assertThatEvents().haveExactly(1, testFailedWith(testClassSomeFailingClass, AssertionFailedError.class,
"The modifier(s) (access type, abstract, etc.) of SomeFailingClass are not implemented as expected."));
}

@TestTest
void test_testConstructorsSomeClass() {
tests.assertThatEvents().haveExactly(1,
Expand Down

0 comments on commit 1999708

Please sign in to comment.