/libcore/ojluni/src/test/java/lang/invoke/ |
D | ArrayConstructorTest.java | 48 boolean caught = false; in testFindConstructorArray() 53 caught = true; in testFindConstructorArray() 57 assertTrue(caught); in testFindConstructorArray() 70 boolean caught = false; in testArrayConstructorNegative() 78 caught = true; in testArrayConstructorNegative() 80 assertTrue(caught); in testArrayConstructorNegative()
|
D | SpreadCollectTest.java | 81 boolean caught = false; in testAsSpreaderIllegalPos() 86 caught = true; in testAsSpreaderIllegalPos() 88 assertTrue(caught); in testAsSpreaderIllegalPos() 178 boolean caught = false; in testAsCollectorIllegalPos() 183 caught = true; in testAsCollectorIllegalPos() 185 assertTrue(caught); in testAsCollectorIllegalPos()
|
D | JavaDocExamplesTest.java | 525 Exception caught = null; in testAsFixedArity() local 527 catch (Exception ex) { caught = ex; } in testAsFixedArity() 528 assert(caught instanceof ClassCastException); in testAsFixedArity() 531 catch (Exception ex) { caught = ex; } in testAsFixedArity() 532 assert(caught instanceof WrongMethodTypeException); in testAsFixedArity() 551 Exception caught = null; in testAsTypeCornerCases() local 553 catch (Exception ex) { caught = ex; } in testAsTypeCornerCases() 554 assert(caught instanceof WrongMethodTypeException); in testAsTypeCornerCases() 566 caught = null; in testAsTypeCornerCases() 568 catch (Exception ex) { caught = ex; } in testAsTypeCornerCases() [all …]
|
D | LoopCombinatorTest.java | 221 boolean caught = false; in testLoopNegative() 226 caught = true; in testLoopNegative() 228 assertTrue(caught); in testLoopNegative() 360 boolean caught = false; in testDoWhileBadInit() 368 caught = true; in testDoWhileBadInit() 370 assertTrue(caught); in testDoWhileBadInit() 385 boolean caught = false; in testWhileBadInit() 393 caught = true; in testWhileBadInit() 395 assertTrue(caught); in testWhileBadInit() 639 boolean caught = false; in testCountedLoopNegative() [all …]
|
D | TryFinallyTest.java | 152 boolean caught = false; in testTryFinallyNegative() 157 caught = true; in testTryFinallyNegative() 159 assertTrue(caught); in testTryFinallyNegative()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamCloseTest.java | 116 boolean caught = false; in testCascadedExceptions() 128 caught = true; in testCascadedExceptions() 130 assertTrue(caught); in testCascadedExceptions() 133 caught = false; in testCascadedExceptions() 140 caught = true; in testCascadedExceptions() 142 assertTrue(caught); in testCascadedExceptions() 144 caught = false; in testCascadedExceptions() 152 caught = true; in testCascadedExceptions() 154 assertTrue(caught); in testCascadedExceptions() 156 caught = false; in testCascadedExceptions() [all …]
|
D | ToArrayOpTest.java | 134 Exception caught = null; in testDistinctAndSortedPermutations() local 138 caught = e; in testDistinctAndSortedPermutations() 140 assertTrue(caught != null); in testDistinctAndSortedPermutations() 141 assertEquals(caught.getClass(), ArrayStoreException.class); in testDistinctAndSortedPermutations() 202 Exception caught = null; 206 caught = e; 208 assertTrue(caught != null); 209 assertEquals(caught.getClass(), ArrayStoreException.class);
|
D | SortedOpTest.java | 110 RuntimeException caught = null; in testStreamTooLarge() local 114 caught = e; in testStreamTooLarge() 116 …assertNotNull(caught, "Expected an instance of exception IllegalArgumentException but no exception… in testStreamTooLarge() 117 assertTrue(caught instanceof IllegalArgumentException, in testStreamTooLarge() 118 … String.format("Expected an instance of exception IllegalArgumentException but got %s", caught)); in testStreamTooLarge()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | ThrowableHelper.java | 31 Exception caught = null; in checkException() local 35 caught = e; in checkException() 38 assertNotNull(caught); in checkException() 39 assertTrue(ce.isInstance(caught)); in checkException()
|
D | SpliteratorTestHelper.java | 617 Exception caught = null; in executeAndCatch() local 622 caught = e; in executeAndCatch() 625 assertNotNull(caught, in executeAndCatch() 628 assertTrue(expected.isInstance(caught), in executeAndCatch() 630 caught.getClass().getName(), expected.getName())); in executeAndCatch()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | StackRecorderUtil.java | 74 boolean caught = false; in compareFrame() 78 caught = true; in compareFrame() 80 if (!caught) { in compareFrame()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | SortedMapTestBase.java | 217 boolean caught = false; in testSubMap() 225 caught = true; in testSubMap() 227 assertTrue(caught); in testSubMap() 303 boolean caught = false; in checkSubMap() 307 caught = true; in checkSubMap() 309 caught = false; in checkSubMap() 313 caught = true; in checkSubMap() 315 assertTrue(caught); in checkSubMap()
|
/libcore/ojluni/src/test/java/io/InputStream/ |
D | TransferTo.java | 308 } catch (Throwable caught) { 309 thrown = caught; 313 String caught = thrown == null ? 317 throwable, caught), thrown);
|
/libcore/ojluni/src/test/java/io/Reader/ |
D | TransferTo.java | 332 } catch (Throwable caught) { 333 thrown = caught; 337 String caught = thrown == null ? 341 throwable, caught), thrown);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | URLTest.java | 59 boolean caught = false; field in URLTest 212 caught = false; in test_ConstructorLjava_lang_String() 217 caught = true; in test_ConstructorLjava_lang_String() 219 assertTrue("Should have throw MalformedURLException", caught); in test_ConstructorLjava_lang_String() 225 caught = true; in test_ConstructorLjava_lang_String() 227 assertTrue("3 Failed to throw MalformedURLException", caught); in test_ConstructorLjava_lang_String() 229 caught = false; in test_ConstructorLjava_lang_String() 234 caught = true; in test_ConstructorLjava_lang_String() 236 assertTrue("4 Failed to throw MalformedURLException", caught); in test_ConstructorLjava_lang_String() 238 caught = false; in test_ConstructorLjava_lang_String()
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 617 Exception caught = null; in executeAndCatch() local 622 caught = e; in executeAndCatch() 625 assertNotNull(caught, in executeAndCatch() 628 assertTrue(expected.isInstance(caught), in executeAndCatch() 630 caught.getClass().getName(), expected.getName())); in executeAndCatch()
|
/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BasicShort.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
D | BasicInt.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
D | BasicLong.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
D | BasicDouble.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
D | BasicFloat.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
D | BasicChar.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
D | BasicByte.java | 586 boolean caught = false; in tryCatch() 591 caught = true; in tryCatch() 599 if (!caught) { in tryCatch()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | ArraysEqCmpTest.java | 1113 Throwable caught = null; in testThrowable() local 1118 caught = t; in testThrowable() 1120 Assert.assertNotNull(caught); in testThrowable() 1121 Assert.assertTrue(expected.isInstance(caught)); in testThrowable()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURLTest.java | 565 boolean caught = false; field in OldURLTest
|