- Sort Score
- Num 10 results
- Language All
Results 2371 - 2380 of 3,804 for throws (0.15 seconds)
-
compat/maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java
sb.append("</tr>"); sb.append(LS); } sb.append("</table>"); return sb.toString(); } @Test void testOptionsAsHtml() throws IOException { Path options = Paths.get("target/test-classes/options.html"); Files.writeString(options, getOptionsAsHtml(), StandardCharsets.UTF_8); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/AccessTokenHelperTest.java
public class AccessTokenHelperTest extends UnitFessTestCase { protected static final int NUM = 20; private AccessTokenHelper accessTokenHelper; @Override protected void setUp(TestInfo testInfo) throws Exception { super.setUp(testInfo); accessTokenHelper = new AccessTokenHelper(); } @Test public void test_generateAccessToken() { List<String> tokens = new ArrayList<String>();Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 6.7K bytes - Click Count (0) -
guava/src/com/google/common/base/MoreObjects.java
* @throws NullPointerException if both {@code first} and {@code second} are null * @since 18.0 (since 3.0 as {@code Objects.firstNonNull}). */ public static <T> T firstNonNull(@Nullable T first, @Nullable T second) { if (first != null) { return first; } if (second != null) { return second; } throw new NullPointerException("Both parameters are null"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 05 17:38:41 GMT 2026 - 16.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java
.build(); } private static Iterable<Striped<?>> allImplementations() { return concat(strongImplementations(), weakImplementations()); } public void testNull() throws Exception { for (Striped<?> striped : allImplementations()) { new NullPointerTester().testAllPublicInstanceMethods(striped); } } public void testSizes() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/StripedTest.java
.build(); } private static Iterable<Striped<?>> allImplementations() { return concat(strongImplementations(), weakImplementations()); } public void testNull() throws Exception { for (Striped<?> striped : allImplementations()) { new NullPointerTester().testAllPublicInstanceMethods(striped); } } public void testSizes() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 8.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/CoordinatorHelperTest.java
throw new RuntimeException("test error"); }); coordinatorHelper.addEventHandler("test_event", event -> secondCalled.set(true)); final EventInfo event = new EventInfo(); event.name = "test_event"; coordinatorHelper.dispatchEvent(event); // Second handler should still be called even if first throws assertTrue(secondCalled.get()); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 28 06:59:19 GMT 2026 - 58.6K bytes - Click Count (0) -
src/test/java/jcifs/util/StringsTest.java
} @Test @DisplayName("findUNITermination should throw exception when termination not found") void testFindUNITerminationNotFound() { // Given byte[] bufferWithoutTermination = "Hello".getBytes(StandardCharsets.UTF_16LE); // When & Then - the implementation throws ArrayIndexOutOfBoundsException when buffer bounds are exceededCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java
DelegatingInvocationHandler(Object delegate) { this.delegate = checkNotNull(delegate); } @Override protected Object handleInvocation(Object proxy, Method method, Object[] args) throws Throwable { return method.invoke(delegate, args); } @Override public String toString() { return "some arbitrary string"; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 5.8K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java
@TempDir Path tempDir; private final DefaultProfileActivationContext context = new DefaultProfileActivationContext(); @BeforeEach @Override void setUp() throws Exception { activator = new FileProfileActivator() .setProfileActivationFilePathInterpolator(new ProfileActivationFilePathInterpolator() .setPathTranslator(new DefaultPathTranslator())Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 6.2K bytes - Click Count (0) -
okhttp/src/jvmMain/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt
} catch (e: InvocationTargetException) { throw AssertionError("failed to set ALPN", e) } catch (e: IllegalAccessException) { throw AssertionError("failed to set ALPN", e) } } override fun afterHandshake(sslSocket: SSLSocket) { try { removeMethod.invoke(null, sslSocket) } catch (e: IllegalAccessException) { throw AssertionError("failed to remove ALPN", e)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 6.1K bytes - Click Count (0)