Search in sources :

Example 1 with ImportContext

use of com.tngtech.archunit.core.domain.ImportContext in project ArchUnit by TNG.

the class ImportTestUtils method simulateImport.

private static JavaClass simulateImport(Class<?> owner, ImportedTestClasses importedClasses) {
    JavaClass javaClass = ImportTestUtils.javaClassFor(owner);
    importedClasses.register(javaClass);
    ImportContext context = simulateImportContext(owner, importedClasses);
    DomainObjectCreationContext.completeMembers(javaClass, context);
    return javaClass;
}
Also used : ImportContext(com.tngtech.archunit.core.domain.ImportContext) JavaClass(com.tngtech.archunit.core.domain.JavaClass)

Aggregations

ImportContext (com.tngtech.archunit.core.domain.ImportContext)1 JavaClass (com.tngtech.archunit.core.domain.JavaClass)1