- Sort Score
- Result 10 results
- Languages All
Results 941 - 950 of 3,054 for throws (0.09 sec)
-
src/test/java/org/codelibs/fess/validation/UriTypeTest.java
// Test payload for validation private static class TestPayload implements Payload { } private static class AnotherTestPayload implements Payload { } @Override public void setUp() throws Exception { super.setUp(); } // Test annotation presence and structure public void test_annotationPresence() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 21K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
public Integer computeNext() { if (haveBeenCalled) { throw new AssertionError("Should not have been called again"); } else { haveBeenCalled = true; throw sneakyThrow(new SomeCheckedException()); } } }; // The first time, the sneakily-thrown exception comes out assertThrows(SomeCheckedException.class, iter::hasNext);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
.build(); }) .build(); } public void run() throws Exception { Request request = new Request.Builder() .url("http://publicobject.com/secrets/hellosecret.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println(response.body().string());
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
return suite; } public void testToString() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertEquals(I18N, Resources.toString(resource, UTF_8)); assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 6.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
@Test void testLevelParameter() throws Exception { // Verify that level is set to 1 as per the constructor Field levelField = srvsvc.ShareEnumAll.class.getDeclaredField("level"); levelField.setAccessible(true); int level = (int) levelField.get(msrpcShareEnum); assertEquals(1, level); } @Test void testShareTypeTransformation() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/GcFinalization.java
} while (System.nanoTime() - deadline < 0); throw formatRuntimeException( "Predicate did not become true within %d second timeout", timeoutSeconds); } /** * Waits until the given latch has {@linkplain CountDownLatch#countDown counted down} to zero, * invoking the garbage collector as necessary to try to ensure that this will happen. * * @throws RuntimeException if timed out or interrupted while waiting
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TestLogHandler.java
* * <pre> * TestLogHandler handler; * * protected void setUp() throws Exception { * super.setUp(); * handler = new TestLogHandler(); * SomeClass.logger.addHandler(handler); * addTearDown(new TearDown() { * public void tearDown() throws Exception { * SomeClass.logger.removeHandler(handler); * } * }); * } *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/ProjectDependenciesResolverTest.java
@Override protected String getProjectsDirectory() { return "src/test/projects/project-dependencies-resolver"; } @Test void testSystemScopeDependencies() throws Exception { MavenSession session = createMavenSession(null); MavenProject project = session.getCurrentProject(); new ProjectBuilder(project) .addDependency(
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Ints.java
* Math#toIntExact(long)} instead, but be aware that that method throws {@link * ArithmeticException} rather than {@link IllegalArgumentException}. * * @param value any value in the range of the {@code int} type * @return the {@code int} value that equals {@code value} * @throws IllegalArgumentException if {@code value} is greater than {@link Integer#MAX_VALUE} or
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 31.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
@DisplayName("Test size method returns correct buffer size") void testSize() { assertEquals(40, fileBasicInfo.size()); } @Test @DisplayName("Test encode method") void testEncode() throws SMBProtocolDecodingException { // Create instance with test values FileBasicInfo info =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)