- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 3,054 for throws (0.51 sec)
-
src/test/java/org/codelibs/fess/job/PurgeDocJobTest.java
} public void test_execute_withException() { // Create mock SearchEngineClient that throws exception searchEngineClient = new SearchEngineClient() { @Override public long deleteByQuery(String index, QueryBuilder query) { throw new RuntimeException("Delete operation failed"); } };
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
} @Test @DisplayName("Should throw UnknownHostException for empty address list") void testUnknownHostException() throws Exception { // Given: No addresses returned when(nameSvc.getAllByName(eq("unknown.host"), eq(true))).thenReturn(new Address[0]); // When/Then: Should throw UnknownHostException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java
* @return the information * @throws CIFSException * if the information cannot be cast to the specified type */ @SuppressWarnings("unchecked") public <T extends Decodable> T getInfo(final Class<T> clazz) throws CIFSException { if (!clazz.isAssignableFrom(this.info.getClass())) { throw new CIFSException("Incompatible file information class"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.8K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java
} @Override public void write(byte[] b, int off, int len) throws IOException { // Override slow FilterOutputStream impl out.write(b, off, len); } @Override public void writeBoolean(boolean v) throws IOException { ((DataOutputStream) out).writeBoolean(v); } @Override public void writeByte(int v) throws IOException { ((DataOutputStream) out).writeByte(v); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 5.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
*/ @Override public int read() throws IOException { return fileInputStream.read(); } @Override public int available() throws IOException { return fileInputStream.available(); } /** * Closes this input stream and releases any system resources associated with the stream. * @throws IOException if an I/O error occurs. */ @Override
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java
@Override public void init() throws IOException { if (throwExceptionOnInit) { throw new IOException("Init failed"); } } @Override public List<String> convert(String text, String field, String... langs) throws IOException { if (throwExceptionOnConvert) { throw new IOException("Convert failed"); }
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 13.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Files.java
* * @param file the file to read from * @return a byte array containing all the bytes from file * @throws IllegalArgumentException if the file is bigger than the largest possible byte array * (2^31 - 1) * @throws IOException if an I/O error occurs */ public static byte[] toByteArray(File file) throws IOException { return asByteSource(file).read(); } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 32.9K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
when(mockInetAddress.getHostName()).thenReturn("myhost.domain.com"); UniAddress uniAddress = new UniAddress(mockInetAddress); assertEquals("MYHOST", uniAddress.firstCalledName()); } @Test void shouldReturnSmbServerNameWhenInetAddressHostnameLengthGreaterThan15() throws UnknownHostException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/DfsImplTest.java
} @Test void testIsTrustedDomain_NoUserDomain() throws SmbAuthException { // Scenario: The user credentials do not specify a domain. when(mockCredentials.getUserDomain()).thenReturn(null); assertFalse(dfsImpl.isTrustedDomain(mockContext, "anydomain.com")); } @Test void testIsTrustedDomain_ConnectionFails() throws SmbAuthException { // Scenario: Transport connection fails
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
// Then assertEquals(0, bytesWritten); } @Test @DisplayName("Should read valid single notification from wire format") void testReadSingleNotification() throws Exception { // Given byte[] buffer = new byte[512]; int offset = 0; // Set header start position for the response setHeaderStart(response, 64);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0)