- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 2,976 for throwIt (0.03 sec)
-
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
try { customCb.executeWithCircuitBreaker(() -> { throw new RuntimeException("non-critical error"); }, isFailure); fail("Should have thrown exception"); } catch (CIFSException e) { // Expected - exception is thrown but not counted as failure } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true); doClose(mockCloseable, true); } public void testClose_closeableWithThrownException() throws IOException { // make sure that the exception is thrown if 'swallowException' is false // when the mock does throw an exception.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacUnicodeStringTest.java
} /** * Tests the {@link PacUnicodeString#check(String)} method with a valid string. * * @throws PACDecodingException if the check fails, which is not expected in this test. */ @Test void testCheck_withValidString() throws PACDecodingException { // Corresponds to a string of length 5 (10 bytes for UTF-16)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
assertTrue(thrown.getCause() instanceof MalformedURLException); } @Test void testGetPipe() throws CIFSException, MalformedURLException { // Test getPipe(String url, int pipeType) method String url = "smb://server/IPC$/pipeName"; // Corrected URL for named pipe int pipeType = 1; SmbPipeResource mockSmbPipeResource = mock(SmbNamedPipe.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/SmbFileHandleTest.java
* * @throws CIFSException */ @Test void testClose_success() throws CIFSException { smbFileHandle.close(); verify(smbFileHandle, times(1)).close(); } /** * Test close() when a CIFSException is thrown. * * @throws CIFSException */ @Test void testClose_throwsCIFSException() throws CIFSException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/DynamicProperties.java
getProperties().store(out, comments); } @Override public void store(final Writer writer, final String comments) throws IOException { getProperties().store(writer, comments); } @Override public void storeToXML(final OutputStream os, final String comment, final String encoding) throws IOException {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
// Now, mock the behavior for MsrpcLsarClose to throw IOException doThrow(new IOException("Close network error")).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class)); // Act & Assert IOException thrown = assertThrows(IOException.class, () -> { handle.close(); }); assertEquals("Close network error", thrown.getMessage());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.2K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* * @throws X if {@code get} throws any checked exception except for an {@code ExecutionException} * whose cause is not itself a checked exception * @throws UncheckedExecutionException if {@code get} throws an {@code ExecutionException} with a * {@code RuntimeException} as its cause * @throws ExecutionError if {@code get} throws an {@code ExecutionException} with an {@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 64.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/naming/InitialContextUtil.java
* @return The object bound to <code>jndiName</code>. * @throws NamingRuntimeException * Thrown if the initial context cannot be created. */ public static Object lookup(final InitialContext ctx, final String jndiName) throws NamingRuntimeException { assertArgumentNotNull("ctx", ctx); assertArgumentNotEmpty("jndiName", jndiName);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java
private Map<Integer, KerberosKey> mockKeys; /** * Test parsing with an unknown auth type. * Expects an empty list of authorizations. * @throws PACDecodingException should not be thrown */ @Test void testParseUnknownAuthType() throws PACDecodingException { // GIVEN an unknown auth type int unknownAuthType = -1; byte[] emptyToken = new byte[0];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0)