- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,508 for should (0.09 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/jcifs/smb/SmbOperationExceptionTest.java
} @Test @DisplayName("Should handle retry policy correctly") void testRetryPolicy() { // Given SmbOperationException.RetryPolicy policy = new SmbOperationException.RetryPolicy(3, 1000, 10000, 2.0, true); exception = new SmbOperationException(SmbOperationException.ErrorCode.CONNECTION_TIMEOUT, "Timeout occurred", null, policy, null); // When/Then - Should retry for attempts 1 and 2Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
assertEquals((byte) 0xFF, buffer[startIndex + SOURCE_KEY_SIZE + 4 + i], "Reserved byte at position " + i + " should remain unchanged"); } } @Test @DisplayName("Should encode single chunk data correctly") void testEncodeSingleChunk() { // Given SrvCopychunk chunk = new SrvCopychunk(1024, 2048, 4096);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
assertEquals(message, ex.getMessage(), "Message should be preserved as provided"); assertNull(ex.getCause(), "Cause should be null when only message is provided"); // toString should include the class name and (if non-null) the message String ts = ex.toString(); assertTrue(ts.contains("SMBProtocolDecodingException"), "toString should include class name"); if (message != null && !message.isEmpty()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
cancel = constructor.newInstance(mockConfig, 1); } @Test @DisplayName("isCancel should return true") void testIsCancelReturnsTrue() { assertTrue(cancel.isCancel()); } @Test @DisplayName("writeParameterWordsWireFormat should return 0") void testWriteParameterWordsReturnsZero() throws Exception { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
tests/migrate_test.go
} // RelationModel3 should be existed _, err = findColumnType(&RelationModel3{}, "id") AssertEqual(t, nil, err) // RelationModel1 should not be existed _, err = findColumnType(&RelationModel1{}, "id") if err == nil { t.Errorf("RelationModel1 should not be migrated") } // RelationModel2 should not be existed _, err = findColumnType(&RelationModel2{}, "id")
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Wed Aug 20 04:51:17 UTC 2025 - 65.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
assertTrue(s.startsWith("Trans2FindNext2["), "toString should start with class name"); assertTrue(s.contains(",sid=" + sid), "toString should include sid in decimal"); assertTrue(s.contains(",searchCount=" + Trans2FindFirst2.LIST_SIZE), "toString should include searchCount using LIST_SIZE"); assertTrue(s.contains(",informationLevel=0x104"), "toString should include information level 0x104");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.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/jcifs/SmbResourceTest.java
assertNotNull(clazz.getMethod("createNewFile"), "Should have createNewFile method"); assertNotNull(clazz.getMethod("mkdir"), "Should have mkdir method"); assertNotNull(clazz.getMethod("mkdirs"), "Should have mkdirs method"); assertNotNull(clazz.getMethod("delete"), "Should have delete method"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
assertTrue(session.isInUse(), "Session should be in use initially"); try (SmbSessionImpl autoSession = session) { // Session is already in use due to transport acquisition assertTrue(autoSession.isInUse(), "Session should be in use"); } // Session should be automatically released assertFalse(session.isInUse(), "Session should be released after try-with-resources"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0)