- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 469 for getMessage (0.04 sec)
-
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
assertThrows(SMBProtocolDecodingException.class, () -> echoResponse.readBytesWireFormat(buffer, bufferIndex)); assertEquals("Expected structureSize = 4", exception.getMessage()); } @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 100, 65535 }) @DisplayName("Should throw exception for various invalid structure sizes")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java
}; try { stopwordsFile.reload(null, failingStream); fail("Should throw DictionaryException"); } catch (DictionaryException e) { assertTrue(e.getMessage().contains("Failed to parse")); } } // Test update with InputStream public void test_update_withInputStream() throws IOException { String content = "new1\n" + "new2\n" + "new3\n";Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
assertArrayEquals(ciphers, decoded.getCiphers()); } catch (SMBProtocolDecodingException e) { fail("Should not throw exception: " + e.getMessage()); } } @Test @DisplayName("Should verify cipher constants") void testCipherConstants() { // Verify the cipher constants are correctly defined
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type1Message.java
writeSecurityBuffer(type1, 24, 32 + domain.length, workstation); } return type1; } catch (final IOException ex) { throw new IllegalStateException(ex.getMessage()); } } @Override public String toString() { final String suppliedDomain = getSuppliedDomain(); final String suppliedWorkstation = getSuppliedWorkstation();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
} private static void assertErrorMessage(Throwable e, String message) { // TODO(kevinb): use a Truth assertion here if (!e.getMessage().contains(message)) { fail("expected <" + e.getMessage() + "> to contain <" + message + ">"); } } /** * Test class with valid equals and hashCode methods. Testers created with instances of this class
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleImplTest.java
when(treeConnection.hasCapability(999)).thenThrow(new SmbException("Not connected")); SmbException ex = assertThrows(SmbException.class, () -> handle.hasCapability(999)); assertTrue(ex.getMessage().contains("Not connected")); } @Test @DisplayName("getTreeId delegates") void getTreeIdDelegates() { // Ensures tree id is forwarded from connection
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
SmbException ex1 = assertThrows(SmbException.class, h::getFid); assertEquals("Descriptor is no longer valid", ex1.getMessage()); SmbException ex2 = assertThrows(SmbException.class, h::getFileId); assertEquals("Descriptor is no longer valid", ex2.getMessage()); } @Test @DisplayName("close(long) sends SMB2 close request and releases tree when SMB2")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java
// Expected assertTrue(e.getMessage().contains("INVALID")); } try { CrawlerStatus.valueOf("initializing"); // lowercase fail("Should throw IllegalArgumentException for lowercase value"); } catch (IllegalArgumentException e) { // Expected assertTrue(e.getMessage().contains("initializing")); } try {Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java
} assertImageSize(outputFile, 100, 100); } catch (IllegalStateException e) { // Expected when container is not initialized if (e.getMessage().contains("Not initialized")) { // Skip test when container is not available return; } throw e; } }Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
"Should throw when structure size != 4"); // Assert: message is meaningful assertEquals("Structure size is not 4", ex.getMessage()); } @Test @DisplayName("Null buffer leads to NullPointerException from readInt2") void nullBuffer_throwsNPE() { // ArrangeRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0)