Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 121 for teststring (1.12 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComWriteAndXResponseTest.java

            int result = instance.readBytesWireFormat(buffer, 0);
    
            // Then
            assertEquals(0, result);
        }
    
        /**
         * Test of toString method
         */
        @Test
        public void testToString() {
            // Given
            SmbComWriteAndXResponse instance = new SmbComWriteAndXResponse(config);
    
            // When
            String result = instance.toString();
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

        @Test
        void testGetResumeKey() {
            // Test the getResumeKey method
            // By default, it should be 0
            assertEquals(0, response.getResumeKey());
        }
    
        @Test
        void testToString() {
            // Test the toString method
            String result = response.toString();
            assertNotNull(result);
            assertTrue(result.contains("Trans2FindFirst2Response"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            }
    
            @Test
            void data() {
                assertEquals(0, cmd.readDataWireFormat(new byte[10], 0, 0));
            }
        }
    
        @Test
        @DisplayName("toString format")
        void testToString() throws Exception {
            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("/bar");
            String s = cmd.toString();
            assertTrue(s.contains("Trans2GetDfsReferral["));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java

            // Then
            assertEquals(0, bytesRead, "Should read 0 bytes.");
        }
    
        /**
         * Tests the toString method.
         */
        @Test
        void testToString() {
            // Given
            String filename = "test.txt";
            int informationLevel = 257; // 0x0101
            Trans2QueryPathInformation trans = new Trans2QueryPathInformation(filename, informationLevel);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java

            // Then
            assertEquals(0, result, "readBytesWireFormat should return 0");
        }
    
        /**
         * Test the toString method.
         */
        @Test
        void testToString() {
            // Given
            SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect();
    
            // When
            String result = smbComTreeDisconnect.toString();
    
            // Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/DfsReferralTest.java

         * Tests the toString method of the DfsReferral class.
         * It verifies that the toString method returns a string representation of the object
         * that accurately reflects its properties.
         */
        @Test
        void testToString() {
            // Given
            DfsReferral referral = new DfsReferral();
            referral.pathConsumed = 20;
            referral.server = "testServer";
            referral.share = "testShare";
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/UnicodeStringTest.java

            assertEquals(0, emptyUnicodeStringFalse.buffer.length, "Buffer length should be 0 for empty string without zterm");
        }
    
        @Test
        void testToString() {
            // Test toString with zterm = true
            String originalStringTrue = "HelloWorld";
            UnicodeString unicodeStringTrue = new UnicodeString(originalStringTrue, true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java

            // This method is expected to do nothing and return 0
            int result = smbComDelete.readBytesWireFormat(new byte[0], 0);
            assertEquals(0, result);
        }
    
        @Test
        public void testToString() {
            // Test the string representation of the object
            String result = smbComDelete.toString();
            assertNotNull(result);
    
            // Verify the result contains expected components
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(firstInstance.getSize(), secondInstance.getSize());
            assertEquals(expectedEndOfFile, secondInstance.getSize());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() throws SMBProtocolDecodingException {
            // Setup test data
            byte[] buffer = new byte[22];
            long expectedAllocationSize = 65536L;
            long expectedEndOfFile = 49152L;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

            assertEquals(2, response.action);
        }
    
        @Test
        void testSetServerFid() {
            response.serverFid = 456;
            assertEquals(456, response.serverFid);
        }
    
        @Test
        void testToString() {
            // Set up the response object with test values
            response.fid = 1;
            response.fileAttributes = 2;
            response.lastWriteTime = 3;
            response.dataSize = 4;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top