- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,541 for throwIt (0.03 sec)
-
src/test/java/jcifs/dcerpc/DcerpcBindingTest.java
DcerpcException thrown = assertThrows(DcerpcException.class, () -> { dcerpcBinding.setOption("endpoint", endpoint); }, "Should throw DcerpcException for invalid endpoint format."); assertTrue(thrown.getMessage().contains("Bad endpoint"), "Exception message should indicate a bad endpoint."); } @Test void testSetOptionOtherKey() throws DcerpcException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
public void testToString_misbehaving() throws Exception { assertThat( new AbstractFuture<Object>() { @Override public String pendingToString() { throw new RuntimeException("I'm a misbehaving implementation"); } }.toString()) .matches( "[^\\[]+\\[status=PENDING, info=\\[Exception thrown from implementation: "
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 46.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/DosFileFilterTest.java
* {@link SmbFile#getAttributes()} throws it. * @throws SmbException if an SMB error occurs. */ @Test void testAccept_ThrowsSmbException() throws SmbException { // Given a filter dosFileFilter = new DosFileFilter("*.*", SmbFile.ATTR_ARCHIVE); // and a mock file that throws an exception when getAttributes is calledRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/UnicodeEscaper.java
* performance for unescaped strings (as measured by {@code CharEscapersBenchmark}). * * @param string the literal string to be escaped * @return the escaped form of {@code string} * @throws NullPointerException if {@code string} is null * @throws IllegalArgumentException if invalid surrogate characters are encountered */ @Override public String escape(String string) { checkNotNull(string); int end = string.length();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
CIFSException thrown = assertThrows(CIFSException.class, () -> { watchHandle.close(); }); assertEquals("Failed to close handle", thrown.getMessage()); verify(watchHandle, times(1)).close(); } /** * Test AutoCloseable behavior with try-with-resources */ @Test void testAutoCloseable() throws CIFSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
void connectWrapException_wrapsToSmbException(SmbResourceLocatorImpl loc, Exception thrown) throws Exception { // Arrange: spy on instance to force connect() failure with specific exception CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = Mockito.spy(new SmbTreeConnectionTrace(ctx)); doThrow(thrown).when(trace).connect(loc);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers // When/Then: Should throw exception NdrException thrown = assertThrows(NdrException.class, () -> entry.decode(mockNdrBuffer)); assertEquals(NdrException.INVALID_CONFORMANCE, thrown.getMessage()); } } @Nested @DisplayName("SamrSamArray Tests") class SamrSamArrayTests {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get); assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause()); assertEquals("boom", thrown.getCause().getMessage()); verify(supplier, times(1)).get(); verifyNoMoreInteractions(supplier); } @Test @DisplayName("No collaborator interaction occurs if exception is thrown beforehand")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
* * @return the NTLM challenge from the domain controller * @throws SmbException if an SMB error occurs * @throws UnknownHostException if the domain controller cannot be resolved */ public static NtlmChallenge getChallengeForDomain() throws SmbException, UnknownHostException { if (DOMAIN == null) { throw new SmbException("A domain was not specified"); } synchronized (DOMAIN) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
// Should either throw exception or fail gracefully after close try { digest.sign(data, 0, data.length, request, response); // If no exception is thrown, the operation should have been no-op or handled gracefully assertTrue(true, "Sign operation after close should either throw exception or handle gracefully");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0)