Skip to content

Commit 22e2abd

Browse files
authored
Merge pull request #1370 from uhafner/disable-tests
Disable the tests that are used as SUT in an architecture test
2 parents 0dedc00 + 229cd11 commit 22e2abd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/test/java/edu/hm/hafner/util/ArchitectureRulesTest.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package edu.hm.hafner.util;
22

3-
import java.io.Serializable;
4-
3+
import org.junit.jupiter.api.Disabled;
54
import org.junit.jupiter.api.Test;
65

76
import com.tngtech.archunit.core.domain.JavaClasses;
87
import com.tngtech.archunit.core.importer.ClassFileImporter;
98

109
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
1110

11+
import java.io.Serializable;
12+
1213
import static org.assertj.core.api.Assertions.*;
1314

1415
/**
@@ -115,7 +116,7 @@ public static class ArchitectureRulesViolatedTest {
115116
@edu.umd.cs.findbugs.annotations.Nullable
116117
private final String noNullable = null;
117118

118-
@Test
119+
@Test @Disabled("This test is just there to be used in architecture tests")
119120
public void shouldFail() {
120121
org.junit.jupiter.api.Assertions.assertEquals(1, 1);
121122

@@ -154,7 +155,7 @@ private Object readResolve() {
154155
@SuppressWarnings("all") @Generated // This class is just there to be used in architecture tests
155156
@SuppressFBWarnings("SE")
156157
static final class ArchitectureRulesPassedTest implements Serializable {
157-
@Test
158+
@Test @Disabled("This test is just there to be used in architecture tests")
158159
void shouldPass() {
159160
throw new IllegalArgumentException("context");
160161
}

0 commit comments

Comments
 (0)