Skip to content

Commit

Permalink
Update ArchTests.java
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoferrer authored Dec 15, 2020
1 parent 7588267 commit d82bc80
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/test/java/org/kohsuke/github/ArchTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@
import com.tngtech.archunit.lang.ArchRule;
import com.tngtech.archunit.lang.ConditionEvents;
import com.tngtech.archunit.lang.SimpleConditionEvent;
import org.junit.BeforeClass;
import org.junit.Test;

import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.classes;
import static org.junit.Assert.assertTrue;

public class ArchTests {

private final JavaClasses classFiles = new ClassFileImporter()
private static final JavaClasses classFiles = new ClassFileImporter()
.withImportOption(new ImportOption.DoNotIncludeTests())
.withImportOption(new ImportOption.DoNotIncludeJars())
.importPackages("org.kohsuke.github");

@BeforeClass
public static void beforeClass() {
assertTrue(classFiles.size() > 0);
}

@Test
public void testPreviewsAreFlaggedAsDeprecated() {

Expand Down

0 comments on commit d82bc80

Please sign in to comment.