- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 2,907 for Shouldn (0.06 sec)
-
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
// Assert assertNotNull(entries, "Entries array should not be null"); assertEquals(1, entries.length, "Exactly one entry is expected"); AppConfigurationEntry e = entries[0]; assertNotNull(e, "Entry should not be null"); assertEquals(EXPECTED_LOGIN_MODULE, e.getLoginModuleName(), "Login module should be Kerberos");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/script/ScriptEngineFactoryTest.java
fail("Should throw IllegalArgumentException for null engine"); } catch (IllegalArgumentException e) { assertEquals("name or scriptEngine is null.", e.getMessage()); } } // Test add method with both null parameters public void test_add_bothNull() { try { scriptEngineFactory.add(null, null);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoExceptionTest.java
@Test @DisplayName("Should create SpnegoException with default constructor") void testDefaultConstructor() { // When SpnegoException ex = new SpnegoException(); // Then assertNotNull(ex, "Exception should be created"); assertNull(ex.getMessage(), "Default message should be null"); assertNull(ex.getCause(), "Default cause should be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/spnego/SpnegoTokenTest.java
assertTrue(t.isParsed(), "parse should mark parsed"); assertArrayEquals(raw, t.getMechanismToken(), "parse should set mechanismToken"); } @Test @DisplayName("parse throws IOException on null input") void parseThrowsOnNull() { TestSpnegoToken t = new TestSpnegoToken(); IOException ex = assertThrows(IOException.class, () -> t.parse(null), "parse should throw IOException on null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/query/BooleanQueryCommandTest.java
} // Test execute method with non-BooleanQuery (should throw exception) public void test_execute_withNonBooleanQuery() { TermQuery termQuery = new TermQuery(new Term("field", "value")); QueryContext context = new QueryContext("test", false); try { booleanQueryCommand.execute(context, termQuery, 1.0f); fail("Should throw InvalidQueryException");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
assertNotNull(authorizations, "The authorizations list should not be null."); assertEquals(2, authorizations.size(), "The authorizations list should contain two elements."); assertTrue(authorizations.contains(mockAuthData1), "The list should contain the first mocked auth data."); assertTrue(authorizations.contains(mockAuthData2), "The list should contain the second mocked auth data."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
// Manually unblock assertTrue(rateLimiter.unblockIp(ip), "Manual unblock should succeed"); // Should be allowed again assertTrue(rateLimiter.checkAttempt("user7", ip), "Should be allowed after manual unblock"); } @Test public void testNullUsername() throws Exception { // Null username should be handled gracefully
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
validator.addToBlacklist("\\share\\forbidden"); // Should block blacklisted path try { validator.validatePath("\\share\\forbidden\\file.txt"); fail("Should block blacklisted path"); } catch (SmbException e) { assertTrue(e.getMessage().contains("not allowed")); } // Should allow other paths
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
assertTrue(resp instanceof ServerMessageBlock2); } @Test @DisplayName("Should return correct OVERHEAD constant value") void testOverheadConstant() { // Then assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 16, Smb2ReadResponse.OVERHEAD); } @Test @DisplayName("Should initially have zero data length") void testInitialDataLength() { // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
assertNotNull(dfsRootEnum, "The MsrpcDfsRootEnum object should not be null."); // The server name is stored in a protected field without a public getter, so we cannot directly test it. // We can test the public fields that are set. assertEquals(200, dfsRootEnum.level, "The level should be initialized to 200."); assertNotNull(dfsRootEnum.info, "The info struct should not be null.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0)