- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 2,867 for exception (0.04 sec)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
jcifs.SID mockSid = mock(jcifs.SID.class); when(mockSid.unwrap(sid_t.class)).thenReturn(mockSidT); testSids = new jcifs.SID[] { mockSid }; // Act & Assert - Constructor accepts null, no exception thrown assertDoesNotThrow(() -> { new MsrpcLookupSids(null, testSids); }); } @Test void constructor_shouldThrowExceptionWithNullSids() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
verify(fd, never()).markClosed(); } @Test @DisplayName("available() wraps SmbException to IOException") void available_wrapsException() throws Exception { // Verify exceptions from th.send are converted to IOException via seToIoe SmbPipeInputStream stream = newStreamWithMinimalStubs(true); when(handle.ensureOpen()).thenReturn(fd);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
throws IOException { MyServerExampleWithFrq myServer = MyServerExampleWithFrq.create(finalizeReferentRan); assertThat(myServer.serverSocket.isClosed()).isFalse(); return myServer.serverSocket; } @Test public void testMyServerExampleWithFrq() throws Exception { AtomicBoolean finalizeReferentRan = new AtomicBoolean(false);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:07:52 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
*/ @org.junit.jupiter.api.extension.ExtendWith(MockitoExtension.class) class Trans2GetDfsReferralTest { private static Object getPrivateField(Object target, String fieldName) throws Exception { Class<?> clazz = target.getClass(); while (clazz != null) { try { Field f = clazz.getDeclaredField(fieldName); f.setAccessible(true);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupContext.java
} } } if (causes != null) { InvokerException exception = new InvokerException("Unable to close context"); causes.forEach(exception::addSuppressed); throw exception; } } public final void closeContainer() throws Exception { if (containerCapsuleManaged) { doCloseContainer(); } }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 5.7K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/PostForm.java
* limitations under the License. */ package okhttp3.recipes; import java.io.IOException; import okhttp3.FormBody; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; public final class PostForm { private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { RequestBody formBody = new FormBody.Builder()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.4K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/root/DefaultRootLocator.java
} } catch (IOException | XMLStreamException e) { // The root locator can be used very early during the setup of Maven, // even before the arguments from the command line are parsed. Any exception // that would happen here should cause the build to fail at a later stage // (when actually parsing the POM) and will lead to a better exception beingRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java
*/ @NullUnmarked public class ChecksumHashFunctionTest extends TestCase { public void testCrc32_equalsChecksumValue() throws Exception { assertChecksum(CRC_32, ""); assertChecksum(CRC_32, "Z"); assertChecksum(CRC_32, "foobar"); } public void testAdler32_equalsChecksumValue() throws Exception { assertChecksum(ADLER_32, ""); assertChecksum(ADLER_32, "Z"); assertChecksum(ADLER_32, "foobar"); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 3.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Streams.java
Exception exception = null; for (BaseStream<?, ?> stream : toClose) { try { stream.close(); } catch (Exception e) { // sneaky checked exception if (exception == null) { exception = e; } else { exception.addSuppressed(e); } } } if (exception != null) { // Normally this is a RuntimeException that doesn't need sneakyThrow.Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 21 15:40:45 UTC 2025 - 36.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
int dataLen = outputBuffer.length + 100; // Exceeds outputBuffer size SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.readDataWireFormat(buffer, 0, dataLen)); assertEquals("Payload exceeds buffer size", exception.getMessage()); } @ParameterizedTest @ValueSource(ints = { 0, 1, 10, 100, 500, 1024 })Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0)