Search in sources :

Example 6 with ScanResult

use of org.hibernate.boot.archive.scan.spi.ScanResult in project hibernate-orm by hibernate.

the class JarVisitorTest method testZippedJar.

@Test
public void testZippedJar() throws Exception {
    File defaultPar = buildDefaultPar();
    addPackageToClasspath(defaultPar);
    ScanResult result = standardScan(defaultPar.toURL());
    validateResults(result, org.hibernate.jpa.test.pack.defaultpar.ApplicationServer.class, Version.class);
}
Also used : ScanResult(org.hibernate.boot.archive.scan.spi.ScanResult) File(java.io.File) Test(org.junit.Test)

Aggregations

ScanResult (org.hibernate.boot.archive.scan.spi.ScanResult)6 Test (org.junit.Test)5 File (java.io.File)4 InputStream (java.io.InputStream)2 StandardScanner (org.hibernate.boot.archive.scan.internal.StandardScanner)2 MappingFileDescriptor (org.hibernate.boot.archive.scan.spi.MappingFileDescriptor)2 Scanner (org.hibernate.boot.archive.scan.spi.Scanner)2 BufferedInputStream (java.io.BufferedInputStream)1 FileInputStream (java.io.FileInputStream)1 IOException (java.io.IOException)1 URL (java.net.URL)1 URLConnection (java.net.URLConnection)1 ClassDescriptorImpl (org.hibernate.boot.archive.scan.internal.ClassDescriptorImpl)1 StandardScanOptions (org.hibernate.boot.archive.scan.internal.StandardScanOptions)1 ScanEnvironment (org.hibernate.boot.archive.scan.spi.ScanEnvironment)1 ScanOptions (org.hibernate.boot.archive.scan.spi.ScanOptions)1 ClassLoaderAccessImpl (org.hibernate.boot.internal.ClassLoaderAccessImpl)1 ClassLoaderService (org.hibernate.boot.registry.classloading.spi.ClassLoaderService)1 ClassLoaderAccess (org.hibernate.boot.spi.ClassLoaderAccess)1 ParsedPersistenceXmlDescriptor (org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor)1