use of org.springframework.boot.loader.data.RandomAccessDataFile in project spring-boot by spring-projects.
the class CentralDirectoryParserTests method setup.
@Before
public void setup() throws Exception {
this.jarFile = this.temporaryFolder.newFile();
TestJarCreator.createTestJar(this.jarFile);
this.jarData = new RandomAccessDataFile(this.jarFile);
}
use of org.springframework.boot.loader.data.RandomAccessDataFile in project spring-boot by spring-projects.
the class JarFileTests method close.
@Test
public void close() throws Exception {
RandomAccessDataFile randomAccessDataFile = spy(new RandomAccessDataFile(this.rootJarFile, 1));
JarFile jarFile = new JarFile(randomAccessDataFile);
jarFile.close();
verify(randomAccessDataFile).close();
}
Aggregations