Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,907 for SHOULD (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            @Test
            @DisplayName("Should create with configuration only")
            void testConstructorWithConfig() {
                ServerMessageBlock2 msg = new TestServerMessageBlock2(mockConfig);
                assertNotNull(msg);
                assertEquals(mockConfig, msg.getConfig());
                assertEquals(0, msg.getCommand());
            }
    
            @Test
            @DisplayName("Should create with configuration and command")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            assertEquals(2, trans.maxParameterCount, "The maxParameterCount should be 2.");
            assertEquals(40, trans.maxDataCount, "The maxDataCount should be 40.");
            assertEquals((byte) 0x00, trans.maxSetupCount, "The maxSetupCount should be 0.");
        }
    
        /**
         * Tests the writeSetupWireFormat method.
         */
        @Test
        void testWriteSetupWireFormat() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
            // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS
            assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertFalse(file.exists(), "File should not exist initially");
    
            file.createNewFile();
            assertTrue(file.exists(), "File should exist after creation");
            assertTrue(file.isFile(), "Should be identified as a file");
            assertFalse(file.isDirectory(), "Should not be identified as a directory");
            assertEquals(0, file.length(), "New file should have zero length");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/util/StringUtilTest.java

    /**
     * Test class for StringUtil utility methods
     */
    class StringUtilTest {
    
        @Test
        @DisplayName("Should join single element without delimiter")
        void testJoinSingleElement() {
            String result = StringUtil.join(",", "hello");
            assertEquals("hello", result);
        }
    
        @Test
        @DisplayName("Should join two elements with delimiter")
        void testJoinTwoElements() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
  6. tests/multi_primary_keys_test.go

    		t.Fatalf("Should find 1 tags after Delete")
    	}
    
    	if DB.Model(&blog).Association("Tags").Count() != 1 {
    		t.Fatalf("Blog should has three tags after Delete")
    	}
    
    	DB.Model(&blog).Association("Tags").Delete(tag3)
    	var tags4 []Tag
    	DB.Model(&blog).Association("Tags").Find(&tags4)
    	if !compareTags(tags4, []string{"tag6"}) {
    		t.Fatalf("Tag should not be deleted when Delete with a unrelated tag")
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 02:46:58 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            }
    
            @Test
            @DisplayName("Should initialize with SMB2_WRITE command")
            void testCommandInitialization() {
                Smb2WriteRequest writeRequest = new Smb2WriteRequest(mockConfig, testFileId);
                // Command is set in parent constructor
                assertNotNull(writeRequest);
            }
    
            @Test
            @DisplayName("Should accept null file ID in constructor")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponseTest.java

            assertTrue(infoString.contains("alloc=1000"), "toString should contain alloc");
            assertTrue(infoString.contains("free=500"), "toString should contain free");
            assertTrue(infoString.contains("sectPerAlloc=100"), "toString should contain sectPerAlloc");
            assertTrue(infoString.contains("bytesPerSect=512"), "toString should contain bytesPerSect");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java

            assertTrue(iterator.hasNext(), "Should have first element");
            SmbResource first = iterator.next();
            assertNotNull(first, "First element should not be null");
            assertEquals("file1.txt", first.getName());
    
            assertTrue(iterator.hasNext(), "Should have second element");
            SmbResource second = iterator.next();
            assertNotNull(second, "Second element should not be null");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            assertEquals((int) offset, getFieldValue(write, "offset"), "Offset should be updated");
            assertEquals(remaining, getFieldValue(write, "remaining"), "Remaining should be updated");
            assertEquals(buffer, getFieldValue(write, "b"), "Buffer should be updated");
            assertEquals(off, getFieldValue(write, "off"), "Off should be updated");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top