mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-28 16:50:10 +00:00
Move jar contents to shared var
This commit is contained in:
parent
ead4dbfbe8
commit
3f72d23d84
@ -98,14 +98,16 @@ public class ZipFSTester {
|
||||
|
||||
// create JAR file for test, actual contents don't matter
|
||||
static Path jarFile;
|
||||
static String[] jarContents = new String[]{
|
||||
"META-INF/MANIFEST.MF",
|
||||
"dir1/foo",
|
||||
"dir2/bar",
|
||||
"dir1/dir3/fooo"
|
||||
};
|
||||
|
||||
@BeforeAll
|
||||
static void setup() throws Exception {
|
||||
jarFile = Utils.createJarFile("tester.jar",
|
||||
"META-INF/MANIFEST.MF",
|
||||
"dir1/foo",
|
||||
"dir2/bar",
|
||||
"dir1/dir3/fooo");
|
||||
jarFile = Utils.createJarFile("tester.jar", jarContents);
|
||||
}
|
||||
|
||||
@AfterAll
|
||||
@ -589,11 +591,7 @@ public class ZipFSTester {
|
||||
// test file stamp
|
||||
@Test
|
||||
void testTime() throws Exception {
|
||||
var jar = Utils.createJarFile(System.currentTimeMillis() + ".jar",
|
||||
"META-INF/MANIFEST.MF",
|
||||
"dir1/foo",
|
||||
"dir2/bar",
|
||||
"dir1/dir3/fooo");
|
||||
var jar = Utils.createJarFile(System.currentTimeMillis() + ".jar", jarContents);
|
||||
BasicFileAttributes attrs = Files
|
||||
.getFileAttributeView(jar, BasicFileAttributeView.class)
|
||||
.readAttributes();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user