/openjdk7/jdk/test/java/io/File/ |
H A D | Unicode.java | 34 static int fail = 0; field in class:Unicode 35 static void fail(String msg) { method in class:Unicode 36 fail++; 62 if (! f.exists()) fail("! f.exists()"); 63 if ( f.length() != 3) fail(" f.length() != 3"); 64 if ( f.isAbsolute()) fail(" f.isAbsolute()"); 65 if (! f.canRead()) fail("! f.canRead()"); 66 if (! f.canWrite()) fail("! f.canWrite()"); 67 if ( f.isHidden()) fail(" f.isHidden()"); 68 if (! f.isFile()) fail("! [all...] |
H A D | Basic.java | 72 if (!f.exists()) fail(f, "does not exist"); 73 if (!f.isFile()) fail(f, "is not a file"); 74 if (f.isDirectory()) fail(f, "is a directory"); 75 if (!f.canRead()) fail(f, "is not readable"); 77 fail(f, writeable ? "is not writeable" : "is writeable"); 79 if (f.length() != length) fail(f, "has wrong length"); 82 static void fail(File f, String why) throws Exception { method in class:Basic 89 if (nonExistantFile.exists()) fail(nonExistantFile, "exists"); 95 fail(rwFile, "could not delete"); 101 if (!thisDir.exists()) fail(thisDi [all...] |
/openjdk7/jdk/test/java/lang/reflect/ReflectPermission/ |
H A D | Exceptions.java | 32 private static int fail = 0; field in class:Exceptions 41 static void fail(String fs, Throwable ex) { method in class:Exceptions 46 fail++; 53 fail("null", re); 57 fail("null", x); 61 fail("\"\"", re); 65 fail("\"\"", x); 70 fail("null, null", re); 74 fail("null, null", x); 78 fail("\"\", nul [all...] |
/openjdk7/jdk/test/java/util/IllegalFormatException/ |
H A D | Constructors.java | 35 private static int fail = 0; field in class:Constructors 44 private static void fail(Throwable t, Class c) { method in class:Constructors 49 fail++; 56 fail(ex, NPE); 63 fail(ex, NPE); 70 fail(ex, NPE); 77 fail(ex, NPE); 84 fail(ex, NPE); 91 fail(ex, NPE); 98 fail(e [all...] |
/openjdk7/jdk/test/java/awt/regtesthelpers/ |
H A D | AbstractTest.java | 50 public static void fail() method in class:AbstractTest 53 fail("no reason given."); 56 public static void fail( String whyFailed ) method in class:AbstractTest 63 public static void fail(Exception ex) throws Exception method in class:AbstractTest
|
/openjdk7/jdk/test/java/net/URLClassLoader/sealing/ |
H A D | CheckSealed.java | 34 boolean fail = true; 44 fail = false; 46 if (fail) {
|
/openjdk7/langtools/test/tools/javac/AccessMethods/ |
H A D | AccessMethodsLHS.java | 36 static void fail(String msg) throws Exception { method in class:AccessMethodsLHS 48 AccessMethodsLHS.fail("bad argument"); 59 AccessMethodsLHS.fail("bad argument"); 71 AccessMethodsLHS.fail("bad argument"); 83 AccessMethodsLHS.fail("bad argument"); 124 AccessMethodsLHS.fail("incorrect side-effect behavior (" + effects + "): " + i); 154 AccessMethodsLHS.fail("simple assignment"); 159 AccessMethodsLHS.fail("add-assign result"); 163 AccessMethodsLHS.fail("add-assign effect"); 168 AccessMethodsLHS.fail("conca [all...] |
/openjdk7/jdk/test/java/util/Formatter/ |
H A D | Constructors.java | 35 private static int fail = 0; field in class:Constructors 44 static void fail(String fs) { method in class:Constructors 49 fail++; 52 static void fail(String fs, Throwable ex) { method in class:Constructors 57 fail++; 71 fail(x.getMessage()); 83 fail(x.getMessage()); 94 fail("new Formatter()", x); 103 fail("new Formatter((Appendable)null)", x); 112 fail("ne [all...] |
H A D | Basic.java | 37 private static int fail = 0; field in class:Basic 46 static void fail(String fs, Class ex) { method in class:Basic 51 fail++; 54 static void fail(String fs, String exp, String got) { method in class:Basic 59 fail++; 72 fail(fs, exp, got); 99 if (fail != 0) 100 throw new RuntimeException((fail + pass) + " tests: " 101 + fail + " failure(s), first", first); 103 out.println("all " + (fail [all...] |
/openjdk7/jdk/test/java/io/RandomAccessFile/ |
H A D | SetLength.java | 33 static void fail(String s) { method in class:SetLength 44 if (f.length() != 2 * chunk) fail("Length not increased to " + (2 * chunk)); 45 if ((i = f.getFilePointer()) != 0) fail("File pointer shifted to " + i); 48 if (f.length() != max) fail("Write didn't work"); 49 if (f.getFilePointer() != max) fail("File pointer inconsistent"); 51 if (f.length() != 3 * chunk) fail("Length not reduced to " + 3 * chunk); 52 if (f.getFilePointer() != 3 * chunk) fail("File pointer not shifted to " + (3 * chunk)); 54 if (f.getFilePointer() != 1 * chunk) fail("File pointer not shifted to " + (1 * chunk)); 56 if (f.length() != 2 * chunk) fail("Length not reduced to " + (2 * chunk)); 57 if (f.getFilePointer() != 1 * chunk) fail("Fil [all...] |
/openjdk7/jdk/test/java/util/zip/ |
H A D | ConstructDeflaterInput.java | 39 fail("MyDeflater had end() called"); 55 fail(); 62 fail(); 69 fail(); 80 fail(); 87 fail(); 94 fail(); 101 fail(); 111 fail("Read of length 0 should return 0, but returned " + len); 116 fail(); 164 static void fail() {failed++; Thread.dumpStack();} method in class:ConstructDeflaterInput 165 static void fail(String msg) {System.out.println(msg); fail();} method in class:ConstructDeflaterInput [all...] |
H A D | ConstructInflaterOutput.java | 39 fail("MyInflater had end() called"); 54 fail(); 61 fail(); 68 fail(); 79 fail(); 86 fail(); 93 fail(); 100 fail(); 115 fail(); 121 fail(); 140 static void fail() {failed++; Thread.dumpStack();} method in class:ConstructInflaterOutput 141 static void fail(String msg) {System.out.println(msg); fail();} method in class:ConstructInflaterOutput [all...] |
/openjdk7/langtools/test/tools/javac/api/6411333/ |
H A D | T6411333.java | 45 void testInferBinaryName(String binaryName, boolean fail) { argument 50 String inferred = fm.inferBinaryName(fail ? CLASS_PATH : PLATFORM_CLASS_PATH, 52 if (inferred == null && fail) 64 void testRelativeUri(String name, boolean fail) { argument 68 if (fail) 73 if (fail)
|
/openjdk7/jdk/test/java/util/TreeMap/ |
H A D | EmptyMapAndNulls.java | 46 fail("null shouldn't be accepted"); 56 fail(); 62 fail("null shouldn't be accepted"); 73 fail("null shouldn't be accepted"); 83 fail(); 89 fail("null shouldn't be accepted"); 99 fail("Object shouldn't be accepted"); 109 static void fail() {failed++; Thread.dumpStack();} method in class:EmptyMapAndNulls 110 static void fail(String msg) {System.out.println(msg); fail();} method in class:EmptyMapAndNulls [all...] |
/openjdk7/jdk/test/java/util/Collections/ |
H A D | CheckedSetBash.java | 54 fail("Set algebra identity 2 failed"); 56 fail("Set algebra identity 3 failed"); 58 fail("Set algebra identity 4 failed"); 60 fail("Set algebra identity 5 failed"); 62 fail("Set algebra identity 6 failed"); 64 fail("Set algebra identity 7 failed"); 68 fail("Set algebra identity 1 failed"); 71 fail("Incorrect hashCode computation."); 76 fail("Couldn't remove element from copy."); 78 fail("Cop 139 static void fail(String s) { method in class:CheckedSetBash [all...] |
H A D | CheckedMapBash.java | 55 fail("Size not as expected."); 62 fail("Incorrect hashCode computation."); 70 fail("Incorrect equals computation."); 76 fail("Collection views test failed."); 81 fail("Linked list doesn't contain a link."); 84 fail("Could not retrieve a link."); 90 fail("Map nonempty after removing all links."); 92 fail("Linked list size not as expected."); 98 fail("put returns a non-null value erroenously."); 101 fail("contain 146 static void fail(String s) { method in class:CheckedMapBash [all...] |
H A D | CheckedListBash.java | 53 fail("List algebra identity 2 failed"); 55 fail("List algebra identity 3 failed"); 57 fail("List algebra identity 4 failed"); 59 fail("List algebra identity 5 failed"); 61 fail("List algebra identity 6 failed"); 63 fail("List algebra identity 7 failed"); 68 fail("List algebra identity 1 failed"); 74 fail("Copy nonempty after deleting all elements."); 80 fail("List doesn't contain one of its elements."); 84 fail("Lis 224 static void fail(String s) { method in class:CheckedListBash [all...] |
/openjdk7/jdk/test/com/sun/jdi/ |
H A D | JdbArgTest.sh | 32 #Call this from anywhere to fail the test with an error message 33 # usage: fail "reason why the test failed" 34 fail() function 39 } #end of fail() 68 fail "FAILED: jdb got an IllegalArgumentException"
|
/openjdk7/jdk/test/java/util/Arrays/ |
H A D | Fill.java | 40 fail("Expected ArrayStoreException"); 47 fail("Expected ArrayStoreException"); 54 fail("Expected ArrayIndexOutOfBoundsException"); 63 static void fail() {failed++; Thread.dumpStack();} method in class:Fill 64 static void fail(String msg) {System.out.println(msg); fail();} method in class:Fill 66 static void check(boolean cond) {if (cond) pass(); else fail();} 69 else fail(x + " not equal to " + y);}
|
/openjdk7/jdk/test/javax/imageio/stream/StreamCloserLeak/ |
H A D | run_test.sh | 54 #Call this from anywhere to fail the test with an error message 55 # usage: fail "reason why the test failed" 56 fail() function 61 } #end of fail() 122 fail "Unrecognized system! $OS" 172 fail "Failed to create TestApp.jar" 183 fail "Failed to create Test.jar" 189 fail "Unable to create temp directory." 195 fail "Test FAILED: some classloaders weren't destroyed." 202 fail "Tes [all...] |
/openjdk7/jdk/test/java/net/CookieHandler/ |
H A D | NullUriCookieTest.java | 38 static boolean fail = false; field in class:NullUriCookieTest 57 fail = true; 63 fail = true; 69 fail = true; 75 if (fail) {
|
/openjdk7/jdk/test/com/sun/tools/extcheck/ |
H A D | TestExtcheckArgs.java | 68 fail(); 73 fail("Unexpected message: " + ex.getMessage()); 81 static boolean fail() {failed++; Thread.dumpStack(); return false;} method in class:TestExtcheckArgs 82 static boolean fail(String msg) {System.out.println(msg); return fail();} method in class:TestExtcheckArgs 84 static boolean check(boolean cond) {if (cond) pass(); else fail(); return cond;} 87 else return fail(x + " not equal to " + y);}
|
/openjdk7/jdk/test/java/util/zip/GZIP/ |
H A D | ReadUByte.java | 49 fail("Failed to throw expected IOException"); 53 fail("IOException contains incorrect message: '" + msg + "'"); 61 static void fail() {failed++; Thread.dumpStack();} method in class:ReadUByte 62 static void fail(String msg) {System.out.println(msg); fail();} method in class:ReadUByte 64 static void check(boolean cond) {if (cond) pass(); else fail();} 67 else fail(x + " not equal to " + y);}
|
/openjdk7/jdk/test/sun/tools/jconsole/ |
H A D | ResourceCheckTest.sh | 34 #Call this from anywhere to fail the test with an error message 35 # usage: fail "reason why the test failed" 36 fail() function 41 } #end of fail() 68 fail "Unrecognized system! $OS" 111 else fail "unspecified test failure"
|
/openjdk7/jdk/test/javax/management/Introspector/ |
H A D | InvokeGettersTest.java | 81 return fail("Set attribute was not got: " + got); 86 return fail("invoke setWhatsit worked but should not have"); 90 return fail("invoke setWhatsit did not work but should have"); 96 return fail("invoke getWhatsit worked but should not have"); 98 return fail("Set attribute through invoke was not got: " + got); 102 return fail("invoke getWhatsit did not work but should have"); 108 return fail("invoke isTrue worked but should not have"); 110 return fail("isTrue returned false"); 114 return fail("invoke isTrue did not work but should have"); 119 // Following cases should fail whethe 149 private static boolean fail(String why) { method in class:InvokeGettersTest [all...] |