- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,808 for Try (0.01 sec)
-
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
final int pos = path.lastIndexOf("/"); final String baseDirectory = path.substring(0, pos); ResourceTraversalUtil.forEach(rootDir, baseDirectory, (ResourceHandler) (path1, is) -> { try { if (count < 10) { System.out.println(path1); } assertThat(path1, is(notNullValue())); assertThat(is, is(notNullValue()));
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
*/ public static String getCanonicalPath(final File file) { assertArgumentNotNull("file", file); try { return file.getCanonicalPath(); } catch (final IOException e) { throw new IORuntimeException(e); } } /**Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
} public void testNullsOnReturnValues_bad() throws Exception { try { tester.forAllPublicStaticMethods(BadNullsFactory.class).thatReturn(Object.class).testNulls(); } catch (AssertionError expected) { return; } fail(); } public void testNullsOnReturnValues_returnTypeFiltered() throws Exception { try { tester .forAllPublicStaticMethods(BadNullsFactory.class)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java
Thread th = new Thread(() -> { try { Thread.sleep(1000); } catch (InterruptedException ignore) {} deferred.reject(new SuggesterException("test")); }); th.start(); try { deferred.promise().getResponse(10, TimeUnit.SECONDS); fail();Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Sat Mar 15 06:51:20 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java
try { labelTypeHelper.refresh(labelTypeList); // Method is protected, so we test it indirectly through refresh } catch (Exception e) { fail("buildLabelTypePatternList() should not throw an exception: " + e.getMessage()); } } public void test_labelTypePattern_constructor() { try {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
/** * Test AutoCloseable behavior with try-with-resources */ @Test void testAutoCloseable() throws CIFSException { // Create a mock that tracks close calls SmbWatchHandle autoCloseableHandle = mock(SmbWatchHandle.class); when(autoCloseableHandle.watch()).thenReturn(mockNotifications); // Use try-with-resources try (SmbWatchHandle handle = autoCloseableHandle) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
for (int i = 0; i < 3; i++) { rateLimiter.checkAttempt(username, ip); rateLimiter.recordFailure(username, ip); } // Try after lockout (will be blocked) try { rateLimiter.checkAttempt(username, ip); } catch (SmbException e) { // Expected } // Block an IP String ip2 = "192.168.1.11";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/PropertiesUtil.java
*/ public static void load(final Properties props, final InputStream in) { assertArgumentNotNull("props", props); assertArgumentNotNull("in", in); try { props.load(in); } catch (final IOException e) { throw new IORuntimeException(e); } } /** * Wraps exception handling for {@link Properties#load(Reader)}.Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 7.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt
postponedRoutes.clear() } return Selection(routes) } /** Prepares the proxy servers to try. */ private fun resetNextProxy( url: HttpUrl, proxy: Proxy?, ) { fun selectProxies(): List<Proxy> { // If the user specifies a proxy, try that and only that. if (proxy != null) return listOf(proxy)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.3K bytes - Viewed (1) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
} } final SmbTreeConnection treeConn = SmbTreeConnection.create(tc); try (SmbTreeHandleImpl th = treeConn.connectHost(locator, locator.getServerWithDfs()); SmbSessionImpl session = th.getSession(); SmbTransportImpl transport = session.getTransport()) { try { entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0)