Search in sources :

Example 11 with JavaClassDescriptor

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

the class JavaClassDescriptorImporterTest method asm_object_type.

@Test
public void asm_object_type() {
    JavaClassDescriptor objectType = JavaClassDescriptorImporter.createFromAsmObjectTypeName("java/lang/Object");
    assertThat(objectType).isEquivalentTo(Object.class);
}
Also used : JavaClassDescriptor(com.tngtech.archunit.core.domain.JavaClassDescriptor) Test(org.junit.Test)

Aggregations

JavaClassDescriptor (com.tngtech.archunit.core.domain.JavaClassDescriptor)11 CodeUnit (com.tngtech.archunit.core.importer.RawAccessRecord.CodeUnit)2 Test (org.junit.Test)2 JavaClassBuilder (com.tngtech.archunit.core.importer.DomainBuilders.JavaClassBuilder)1 JavaTypeCreationProcess (com.tngtech.archunit.core.importer.DomainBuilders.JavaTypeCreationProcess)1 JavaCodeUnitSignature (com.tngtech.archunit.core.importer.JavaCodeUnitSignatureImporter.JavaCodeUnitSignature)1 Type (org.objectweb.asm.Type)1