equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
34 import com.oracle.java.testlibrary.*; |
34 import com.oracle.java.testlibrary.*; |
35 import java.io.File; |
35 import java.io.File; |
36 |
36 |
37 public class ArchiveDoesNotExist { |
37 public class ArchiveDoesNotExist { |
38 public static void main(String[] args) throws Exception { |
38 public static void main(String[] args) throws Exception { |
39 String fileName = "test.jsa"; |
39 String fileName = "ArchiveDoesNotExist.jsa"; |
40 |
40 |
41 File cdsFile = new File(fileName); |
41 File cdsFile = new File(fileName); |
42 if (cdsFile.exists()) |
42 if (cdsFile.exists()) |
43 throw new RuntimeException("Test error: cds file already exists"); |
43 throw new RuntimeException("Test error: cds file already exists"); |
44 |
44 |