- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 2,371 for Try (0.02 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
public void testContainsKey() { Map<K, V> map; K unmappedKey; try { map = makePopulatedMap(); unmappedKey = getKeyNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsKey(unmappedKey)); try { assertFalse(map.containsKey(new IncompatibleKeyType())); } catch (ClassCastException tolerated) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
public void testContainsKey() { Map<K, V> map; K unmappedKey; try { map = makePopulatedMap(); unmappedKey = getKeyNotInPopulatedMap(); } catch (UnsupportedOperationException e) { return; } assertFalse(map.containsKey(unmappedKey)); try { assertFalse(map.containsKey(new IncompatibleKeyType())); } catch (ClassCastException tolerated) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 43.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/crawler/helper/FessMimeTypeHelperTest.java
} }); mimeTypeHelper.init(); try (InputStream is = new ByteArrayInputStream(SQL_REM_CONTENT.getBytes(StandardCharsets.UTF_8))) { assertEquals("text/x-sql", mimeTypeHelper.getContentType(is, "test.sql")); } try (InputStream is = new ByteArrayInputStream(SQL_REM_CONTENT.getBytes(StandardCharsets.UTF_8))) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Jan 24 09:06:33 GMT 2026 - 12.1K bytes - Click Count (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
try { circuitBreaker.executeWithCircuitBreaker(() -> { throw new RuntimeException("Test failure"); }); } catch (CIFSException e) { // Expected } } assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should be OPEN"); // Try to execute - should be blocked with CIFSExceptionCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java
// We skip it when container is not initialized try { HtmlTagBasedGenerator generator = new HtmlTagBasedGenerator(); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); File outputFile = File.createTempFile("generator_", ".png"); String imagePath = "thumbnail/600x400.png";Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
try (SmbSessionImpl session = getSession()) { if (session == null) { return; } try (SmbTransportImpl transport = session.getTransport()) { synchronized (transport) { final SmbTreeImpl t = getTreeInternal(); if (t != null) { try {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 30.4K bytes - Click Count (1) -
src/test/java/org/codelibs/fess/helper/SuggestHelperTest.java
@Test public void test_init() { SuggestHelper helper = new SuggestHelper(); try { helper.init(); assertNotNull(helper.suggester()); } catch (Exception e) { assertTrue(true); } } @Test public void test_suggester() { try { assertNull(suggestHelper.suggester()); } catch (Exception e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 16.3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
Collection<E> copy = new ArrayList<>(); copy.addAll(collection); try { collection.add(sampleElement); fail("add succeeded on unmodifiable collection"); } catch (UnsupportedOperationException expected) { } assertCollectionsAreEquivalent(copy, collection); try { collection.addAll(siblingCollection); fail("addAll succeeded on unmodifiable collection");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 14.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
// This should not throw exception, just do nothing try { WebApiUtil.setObject("testKey", "testValue"); } catch (Exception e) { fail("setObject should handle missing request gracefully: " + e.getMessage()); } } @Test public void test_setObject_withNullName() { // Test setObject with null name try { WebApiUtil.setObject(null, "testValue");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
try { handshake(); } catch (final IOException ex) {} return connection.getDate(); } @Override public long getLastModified() { try { handshake(); } catch (final IOException ex) {} return connection.getLastModified(); } @Override public String getHeaderField(final String header) { try {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 22.1K bytes - Click Count (0)