- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 1,145 for best (0.03 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/TreeConnectResponseTest.java
void testIsValidTid() { // Test valid TID response.setTreeId(100); assertTrue(response.isValidTid(), "Positive tree ID should be valid"); // Test invalid TID response.setTreeId(-1); assertFalse(response.isValidTid(), "Tree ID -1 should be invalid"); } @Test @DisplayName("Should return null service for SMB2")
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
import org.junit.jupiter.api.Test; import jcifs.internal.SMBProtocolDecodingException; import jcifs.internal.util.SMBUtil; /** * Test class for SmbInfoAllocation */ class SmbInfoAllocationTest { private SmbInfoAllocation smbInfoAllocation; @BeforeEach void setUp() { smbInfoAllocation = new SmbInfoAllocation(); } @TestCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/ResponseTest.java
} @Test void testReset() { // Call the method mockResponse.reset(); // Verify that the method was called verify(mockResponse, times(1)).reset(); } @Test void testGetException() { Exception testException = new RuntimeException("Test Exception");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java
} @Test @DisplayName("Test constructor with FILE_INTERNAL_INFO level") void testConstructorWithFileInternalInfo() { response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_INTERNAL_INFO); assertNotNull(response); assertEquals(SmbComTransaction.TRANS2_QUERY_PATH_INFORMATION, response.getSubCommand()); } @Test @DisplayName("Test getInfo when info is null")Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/request/suggest/SuggestResponseTest.java
readings[0] = new String[] { "test" }; items.add(new SuggestItem(new String[] { "test" }, readings, new String[] { "content" }, 1, 0, -1, new String[] { "tag1" }, new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.DOCUMENT)); SuggestResponse response = new SuggestResponse("test-index", 100, words, 10, items); assertNotNull(response); assertEquals("test-index", response.getIndex());
Created: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
assertEquals(0L, info.getSize()); } @Test @DisplayName("Test size method returns correct buffer size") void testSize() { assertEquals(40, fileBasicInfo.size()); } @Test @DisplayName("Test encode method") void testEncode() throws SMBProtocolDecodingException { // Create instance with test values FileBasicInfo info =
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/SmbTreeTest.java
private SmbTree mockWrappedTree; /** * Setup method executed before each test. */ @BeforeEach void setUp() { // Common setup if needed } /** * Test for unwrap() method with matching type. * Verifies that unwrap returns the correct instance when the type matches. */ @Test void testUnwrap_withMatchingType() { // Create a custom SmbTree type for testingCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
response = new NetServerEnum2Response(mockConfig); } @Test @DisplayName("Test constructor with configuration") void testConstructor() { assertNotNull(response); // Response is successfully created with configuration assertTrue(response instanceof NetServerEnum2Response); } @Test @DisplayName("Test writeSetupWireFormat returns 0") void testWriteSetupWireFormat() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java
} @Test @DisplayName("Test with maximum and minimum values") void testWithBoundaryValues() { // Test with minimum values trans2SetFileInfo = new Trans2SetFileInformation(config, 0, 0, 0L, 0L, 0L); assertNotNull(trans2SetFileInfo); // Test with maximum valuesCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.8K bytes - Click Count (0) -
cmd/erasure_test.go
} if err != nil && !test.shouldFail { t.Errorf("Test %d: test should pass but it failed: %v", i, err) } decoded := encoded if !test.shouldFail { if test.reconstructParity { for j := range decoded { if decoded[j] == nil { t.Errorf("Test %d: failed to reconstruct shard %d", i, j) } } } else { for j := range decoded[:test.dataBlocks] {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed Apr 09 14:28:39 GMT 2025 - 4.8K bytes - Click Count (0)