Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DStreamCloseTest.java108 boolean caught = false; in testCascadedExceptions()
120 caught = true; in testCascadedExceptions()
122 assertTrue(caught); in testCascadedExceptions()
125 caught = false; in testCascadedExceptions()
132 caught = true; in testCascadedExceptions()
134 assertTrue(caught); in testCascadedExceptions()
136 caught = false; in testCascadedExceptions()
144 caught = true; in testCascadedExceptions()
146 assertTrue(caught); in testCascadedExceptions()
148 caught = false; in testCascadedExceptions()
[all …]
DToArrayOpTest.java131 Exception caught = null; in testDistinctAndSortedPermutations() local
135 caught = e; in testDistinctAndSortedPermutations()
137 assertTrue(caught != null); in testDistinctAndSortedPermutations()
138 assertEquals(caught.getClass(), ArrayStoreException.class); in testDistinctAndSortedPermutations()
199 Exception caught = null;
203 caught = e;
205 assertTrue(caught != null);
206 assertEquals(caught.getClass(), ArrayStoreException.class);
DStreamBuilderTest.java58 Exception caught = null; in checkException() local
62 caught = e; in checkException()
65 assertNotNull(caught); in checkException()
66 assertTrue(ce.isInstance(caught)); in checkException()
DSortedOpTest.java107 RuntimeException caught = null; in testStreamTooLarge() local
111 caught = e; in testStreamTooLarge()
113 …assertNotNull(caught, "Expected an instance of exception IllegalArgumentException but no exception… in testStreamTooLarge()
114 assertTrue(caught instanceof IllegalArgumentException, in testStreamTooLarge()
115 … String.format("Expected an instance of exception IllegalArgumentException but got %s", caught)); in testStreamTooLarge()
/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/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/util/stream/testlib/org/openjdk/testlib/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/luni/src/test/java/libcore/java/net/
DOldURLTest.java565 boolean caught = false; field in OldURLTest