Home
last modified time | relevance | path

Searched refs:caught (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/invoke/
DArrayConstructorTest.java48 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()
DSpreadCollectTest.java81 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()
DJavaDocExamplesTest.java525 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 …]
DLoopCombinatorTest.java221 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 …]
DTryFinallyTest.java152 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/
DStreamCloseTest.java116 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 …]
DToArrayOpTest.java134 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);
DSortedOpTest.java110 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/
DThrowableHelper.java31 Exception caught = null; in checkException() local
35 caught = e; in checkException()
38 assertNotNull(caught); in checkException()
39 assertTrue(ce.isInstance(caught)); in checkException()
DSpliteratorTestHelper.java617 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/
DStackRecorderUtil.java74 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/
DSortedMapTestBase.java217 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/
DTransferTo.java308 } catch (Throwable caught) {
309 thrown = caught;
313 String caught = thrown == null ?
317 throwable, caught), thrown);
/libcore/ojluni/src/test/java/io/Reader/
DTransferTo.java332 } 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/
DURLTest.java59 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/
DSpliteratorTestHelper.java617 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/
DBasicShort.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
DBasicInt.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
DBasicLong.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
DBasicDouble.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
DBasicFloat.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
DBasicChar.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
DBasicByte.java586 boolean caught = false; in tryCatch()
591 caught = true; in tryCatch()
599 if (!caught) { in tryCatch()
/libcore/ojluni/src/test/java/util/Arrays/
DArraysEqCmpTest.java1113 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/
DOldURLTest.java565 boolean caught = false; field in OldURLTest

12