- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 447 for setMessage (0.05 sec)
-
src/test/java/jcifs/smb/SpnegoContextTest.java
// Invalid first byte should be rejected by token parsing CIFSException ex = assertThrows(CIFSException.class, () -> ctx.initSecContext(new byte[] { firstByte }, 0, 1)); assertEquals("Invalid token", ex.getMessage()); // Ensure mechContext was not engaged due to early failure verify(this.mechContext, never()).initSecContext(any(), anyInt(), anyInt()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacMacTest.java
PACDecodingException e = assertThrows(PACDecodingException.class, () -> PacMac.calculateMac(PacSignature.KERB_CHECKSUM_HMAC_MD5, keys, TEST_DATA)); assertEquals("Missing key", e.getMessage()); } /** * Test calculateMac with an invalid algorithm type. */ @Test void testCalculateMacInvalidAlgorithm() { Map<Integer, KerberosKey> keys = new HashMap<>();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java
try { notificationHelper.sendToSlack(null, discloser); } catch (Exception e) { fail("sendToSlack() should not throw an exception with blank URLs: " + e.getMessage()); } } public void test_sendToSlack_withNullWebhookUrls() { // Setup mock configuration with null webhook URLs ComponentUtil.setFessConfig(new MockFessConfig() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 19.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/UnsupportedEncodingRuntimeException.java
* * @param cause * the cause */ public UnsupportedEncodingRuntimeException(final UnsupportedEncodingException cause) { super("ECL0105", new Object[] { cause.getMessage() }, cause); }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 1.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java
void testConstructorWithMessage() { String testMessage = "This is a test message for NdrException."; NdrException exception = new NdrException(testMessage); assertEquals(testMessage, exception.getMessage(), "The exception message should match the input message."); } /** * Test the NO_NULL_REF static field. * Ensures that the static field holds the expected string value. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/validation/DefaultModelValidator.java
} @Override public void add(ModelProblemCollectorRequest req) { if (!ModelProblem.Severity.WARNING.equals(req.getSeverity())) { result.addMessage(req.getMessage()); } } }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java
securityDescriptor = new SecurityDescriptor(); bufferIndex += securityDescriptor.decode(buffer, bufferIndex, len); } catch (final IOException ioe) { throw new RuntimeException(ioe.getMessage()); } return bufferIndex - start; } @Override public String toString() { return ("NtTransQuerySecurityResponse[" + super.toString() + "]"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.3K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java
assertEquals(Problem.Severity.ERROR, problems.get(0).getSeverity(), "First problem should be ERROR"); assertEquals("Error message", problems.get(0).getMessage(), "First problem should have correct message"); assertEquals(Problem.Severity.WARNING, problems.get(1).getSeverity(), "Second problem should be WARNING"); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sun Jul 20 20:19:43 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbCopyUtilTest.java
SmbException ex = assertThrows(SmbException.class, () -> SmbCopyUtil.copyFile(src, dest, buffers, 8, new WriterThread(), sh, dh)); assertTrue(ex.getMessage().contains("smb://src")); assertTrue(ex.getMessage().contains("smb://dest")); } @Test @DisplayName("copyFile swallows when ignoreCopyToException=true")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
dataStoreFactory.add(null, dataStore); fail("Should throw IllegalArgumentException"); } catch (IllegalArgumentException e) { assertEquals("name or dataStore is null.", e.getMessage()); } } // Test add method with null dataStore public void test_add_nullDataStore() { try { dataStoreFactory.add("testName", null);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.8K bytes - Viewed (0)