Search in sources :

Example 1 with JavaClassBuilder

use of com.tngtech.archunit.core.importer.DomainBuilders.JavaClassBuilder in project ArchUnit by TNG.

the class ImportedClasses method stubClassOf.

private static JavaClass stubClassOf(String typeName) {
    JavaClassDescriptor descriptor = JavaClassDescriptor.From.name(typeName);
    JavaClassBuilder builder = JavaClassBuilder.forStub().withDescriptor(descriptor);
    addModifiersIfPossible(builder, descriptor);
    return builder.build();
}
Also used : JavaClassBuilder(com.tngtech.archunit.core.importer.DomainBuilders.JavaClassBuilder) JavaClassDescriptor(com.tngtech.archunit.core.domain.JavaClassDescriptor)

Aggregations

JavaClassDescriptor (com.tngtech.archunit.core.domain.JavaClassDescriptor)1 JavaClassBuilder (com.tngtech.archunit.core.importer.DomainBuilders.JavaClassBuilder)1