GH-42 - Upgrade to ArchUnit 1.0.

This commit is contained in:
Oliver Drotbohm
2022-10-07 17:22:21 +02:00
parent bea7617507
commit c192a7dd14
8 changed files with 49 additions and 41 deletions

View File

@@ -22,15 +22,14 @@ import org.junit.jupiter.api.Test;
import com.tngtech.archunit.core.domain.JavaClasses;
import com.tngtech.archunit.core.importer.ClassFileImporter;
import com.tngtech.archunit.core.importer.ImportOption;
import com.tngtech.archunit.core.importer.ImportOptions;
/**
* @author Oliver Drotbohm
*/
class JavaPackageUnitTests {
static final ImportOptions NO_TESTS = new ImportOptions().with(new ImportOption.DoNotIncludeTests());
static final JavaClasses ALL_CLASSES = new ClassFileImporter(NO_TESTS) //
static final JavaClasses ALL_CLASSES = new ClassFileImporter() //
.withImportOption(ImportOption.Predefined.DO_NOT_INCLUDE_TESTS)
.importPackages("com.acme.myproject");
@Test