Searched refs:exists (Results 1 - 25 of 627) sorted by relevance

1234567891011>>

/openjdk10/jdk/test/sun/net/www/protocol/jrt/
H A DBasic.java51 public void testConnect(String urlString, boolean exists) throws Exception { argument
56 if (!exists) fail("IOException expected");
58 if (exists) fail("IOException not expected");
63 public void testInputStream(String urlString, boolean exists) throws Exception { argument
69 if (!exists) fail("IOException expected");
71 if (exists) fail("IOException not expected");
76 public void testContentLength(String urlString, boolean exists) throws Exception { argument
79 assertTrue((exists && len > 0) || (!exists && len == -1));
83 public void testGetContent(String urlString, boolean exists) throw argument
[all...]
/openjdk10/jdk/test/java/io/File/
H A DDeleteOnExit.java54 if (file1.exists() || file2.exists() || file3.exists() ||
55 dir.exists() || file4.exists() || file5.exists() ||
56 file6.exists() || file7.exists()) {
58 System.out.println(file1 + ", exists = " + file1.exists());
[all...]
H A DCreateNewFile.java38 if (f.exists() && !f.delete())
42 if (!f.exists())
61 if (tmpFile.exists() && !tmpFile.delete())
65 if (!tmpFile.exists())
H A DCreate.java41 if (!file.exists())
44 if (file.exists())
H A DBasic.java60 showBoolean("exists", f.exists());
72 if (!f.exists()) fail(f, "does not exist");
107 if (rwFile.exists()) {
115 if (!thisDir.exists()) fail(thisDir, "does not exist");
129 if (!dir.mkdir() || !dir.exists() || !dir.isDirectory()) {
135 if (dir.exists() || !dir2.exists() || !dir2.isDirectory()) {
141 if (bigFile.exists()) {
143 if (bigFile.exists())
[all...]
H A DSetReadOnly.java45 if (f.exists()) {
61 if (f.exists()) {
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/loop/
H A DLoopNewInstance.java49 private boolean exists; field in class:LoopNewInstance.Blop
52 if (!exists) {
55 exists = true;
/openjdk10/nashorn/test/script/trusted/
H A DJDK-8087292.js50 function exists(f) {
51 return Files.exists(Paths.get(f))
54 var javaLauncher = exists(jLauncher) ? jLauncher : altjLauncher
57 if (!exists(javaLauncher)) {
/openjdk10/hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/collect/
H A DSearchPath.java46 if (exists(entry)) {
52 if (exists(entry)) {
58 if (exists(newPath)) {
65 if (exists(newPath)) {
77 private boolean exists(Path entry) { method in class:SearchPath
78 return fileSupport.exists(entry);
/openjdk10/jdk/test/java/io/pathNames/win32/
H A DRenameDelete.java59 if(f1.exists() || f2.exists()) {
65 System.err.println("Exist as directory:"+f1.exists()+" "+f1.isDirectory());
/openjdk10/jdk/test/java/io/PrintStream/
H A DFailingConstructors.java59 private static void test(boolean exists, File file) throws Throwable { argument
68 check(exists, file);
77 check(exists, file);
87 check(exists, file);
96 check(exists, file);
99 private static void check(boolean exists, File file) { argument
100 if (exists) {
105 if (file.exists()) { fail(file + " should not have been created"); }
/openjdk10/jdk/test/java/io/PrintWriter/
H A DFailingConstructors.java58 private static void test(boolean exists, File file) throws Throwable { argument
67 check(exists, file);
76 check(exists, file);
86 check(exists, file);
95 check(exists, file);
98 private static void check(boolean exists, File file) { argument
99 if (exists) {
104 if (file.exists()) { fail(file + " should not have been created"); }
/openjdk10/jdk/test/java/io/pathNames/
H A DGeneralWin32.java59 if (!f.exists()) {
60 if (!d.exists()) {
69 if (!f2.exists()) {
114 if (!df.exists()) {
124 if (df.exists()) return d;
129 private static void checkDrive(int depth, String drive, boolean exists) argument
133 String ans = exists ? df.getAbsolutePath() : drive;
154 if (!(new File(s)).exists()) {
/openjdk10/jdk/test/java/util/Scanner/
H A DFailingConstructors.java56 private static void test(boolean exists, File file) throws Throwable { argument
65 check(exists, file);
74 check(exists, file);
84 check(exists, file);
93 check(exists, file);
96 private static void check(boolean exists, File file) { argument
97 if (exists) {
102 if (file.exists()) { fail(file + " should not have been created"); }
/openjdk10/jdk/test/java/util/Formatter/
H A DFailingConstructors.java57 private static void test(boolean exists, File file) throws Throwable { argument
66 check(exists, file);
75 check(exists, file);
85 check(exists, file);
94 check(exists, file);
97 private static void check(boolean exists, File file) { argument
98 if (exists) {
103 if (file.exists()) { fail(file + " should not have been created"); }
/openjdk10/hotspot/test/compiler/aot/cli/
H A DNonExistingAOTLibraryTest.java45 if (new File(PATH).exists()) {
46 throw new Error("TESTBUG: " + PATH + " unexpectedly exists");
/openjdk10/jdk/test/java/rmi/server/RMIClassLoader/noSecurityManager/
H A DNoSecurityManager.java71 if (!dstDir.exists()) {
91 if (!dstFile.exists()) {
92 if (!srcFile.exists()) {
108 if (srcFile.exists()) {
/openjdk10/hotspot/test/compiler/aot/jdk.tools.jaotc.test/src/jdk/tools/jaotc/test/collect/
H A DFakeFileSupport.java33 private final Set<String> exists = new HashSet<>(); field in class:FakeFileSupport
45 this.exists.addAll(existing);
61 public boolean exists(Path path) { method in class:FakeFileSupport
63 return exists.contains(path.toString());
90 exists.add(name);
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/
H A DCacheFSInfo.java69 public boolean exists(Path file) { method in class:CacheFSInfo
71 return e.exists;
105 e.exists = super.exists(file);
118 boolean exists; field in class:CacheFSInfo.Entry
/openjdk10/jdk/test/tools/pack200/
H A DPackChecksum.java81 if (!destFile.exists()) {
85 if (inputJar.exists())
87 if (testPack.exists())
89 if (destFile.exists())
129 if (dstFile.exists()) {
145 if (testFile.exists())
148 if (testPack.exists())
155 if (dstFile.exists()) {
158 ": file exists: " + dstFile);
164 if (result.exists()) {
[all...]
/openjdk10/jdk/src/java.base/unix/classes/jdk/internal/loader/
H A DFileURLMapper.java70 * Checks whether the file identified by the URL exists.
72 public boolean exists () { method in class:FileURLMapper
78 return f.exists();
/openjdk10/jdk/src/java.base/windows/classes/jdk/internal/loader/
H A DFileURLMapper.java70 public boolean exists() { method in class:FileURLMapper
73 return f.exists();
/openjdk10/jdk/src/jdk.rmic/share/classes/sun/tools/java/
H A DClassFile.java73 return Files.exists(path)? new PathClassFile(path) : null;
87 * Returns true if file exists.
89 public abstract boolean exists(); method in class:ClassFile
H A DFileClassFile.java63 public boolean exists() { method in class:FileClassFile
64 return file.exists();
/openjdk10/jdk/test/com/sun/management/HotSpotDiagnosticMXBean/
H A DDumpHeap.java54 if (dump.exists()) {
66 assertTrue(dump.exists() && dump.isFile(), "Could not create dump file");

Completed in 138 milliseconds

1234567891011>>