- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 3,282 for throwIt (0.06 seconds)
-
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());Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.2K bytes - Click Count (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)Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java
throw t; } } /** Calls threadFail with message "should throw exception". */ public void threadShouldThrow() { threadFail("should throw exception"); } /** Calls threadFail with message "should throw" + exceptionName. */ public void threadShouldThrow(String exceptionName) { threadFail("should throw " + exceptionName); } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:07:52 GMT 2025 - 37.8K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java
} /** * Test that getText throws exception when null stream is provided. * Note: validateInputStream throws the exception, so the validateCalled flag * is never set to true (exception is thrown before flag assignment). */ public void test_getText_throwsExceptionForNullStream() { try {Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 8.4K bytes - Click Count (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 {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (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);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
try (InputStream is = null) { if (is == null) { throw new IOException("Resource is null"); } fail("Should not reach this point"); } catch (IOException e) { assertEquals("Resource is null", e.getMessage()); // No NullPointerException should be thrown when exiting try-with-resources } } /**
Created: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (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];
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.7K bytes - Click Count (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 {
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Jul 05 00:11:05 GMT 2025 - 13.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
verifyNoMoreInteractions(smbFile); } @Test @DisplayName("accept: propagates SmbException thrown by dependency") void accept_propagatesSmbException() throws Exception { // Arrange: filter delegates to isDirectory which may throw SmbException SmbFileFilter filter = f -> f.isDirectory(); SmbException boom = new SmbException("io error");
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0)