|
|
@ -52,7 +52,7 @@ import org.springframework.bootstrap.launcher.data.RandomAccessDataFile;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Tests for {@link RandomAccessJarFile}.
|
|
|
|
* Tests for {@link RandomAccessJarFile}.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Phillip Webb
|
|
|
|
* @author Phillip Webb
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class RandomAccessJarFileTest {
|
|
|
|
public class RandomAccessJarFileTest {
|
|
|
@ -300,6 +300,13 @@ public class RandomAccessJarFileTest {
|
|
|
|
assertThat(inputStream.read(), equalTo(-1));
|
|
|
|
assertThat(inputStream.read(), equalTo(-1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
public void getDirectoryInputStreamWithoutSlash() throws Exception {
|
|
|
|
|
|
|
|
InputStream inputStream = jarFile.getInputStream(jarFile.getEntry("d"));
|
|
|
|
|
|
|
|
assertThat(inputStream, notNullValue());
|
|
|
|
|
|
|
|
assertThat(inputStream.read(), equalTo(-1));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void getFilteredJarFile() throws Exception {
|
|
|
|
public void getFilteredJarFile() throws Exception {
|
|
|
|
RandomAccessJarFile filteredJarFile = jarFile
|
|
|
|
RandomAccessJarFile filteredJarFile = jarFile
|
|
|
|