Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for TestToString (1.53 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java

            // This method is expected to do nothing and return 0
            int result = smbComQueryInformation.readBytesWireFormat(new byte[0], 0);
            assertEquals(0, result);
        }
    
        @Test
        public void testToString() {
            // Test the string representation of the object
            String result = smbComQueryInformation.toString();
            assertTrue(result.startsWith("SmbComQueryInformation["));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/netbios/NbtExceptionTest.java

            assertEquals(e.getMessage(), NbtException.getErrorString(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED));
        }
    
        @Test
        @DisplayName("toString includes class, code and error string")
        void testToString() {
            NbtException e = new NbtException(NbtException.ERR_SSN_SRVC, NbtException.NO_RESOURCES);
            String str = e.toString();
            assertTrue(str.contains("errorClass=2"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java

            // When
            int result = trans2SetFileInformation.readDataWireFormat(new byte[0], 0, 0);
    
            // Then
            assertEquals(0, result);
        }
    
        @Test
        void testToString() {
            // When
            String result = trans2SetFileInformation.toString();
    
            // Then
            assertTrue(result.startsWith("Trans2SetFileInformation["));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                assertEquals(0, smbInfoAllocation.getFree());
            }
    
            @Test
            @DisplayName("Should provide string representation")
            void testToString() {
                String result = smbInfoAllocation.toString();
    
                assertNotNull(result);
                assertTrue(result.contains("SmbInfoAllocation"));
                assertTrue(result.contains("alloc="));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java

            // This method does nothing and should return 0.
            assertEquals(0, bytesRead);
        }
    
        /**
         * Test the toString method.
         */
        @Test
        void testToString() {
            SmbComWriteAndXResponse response = new SmbComWriteAndXResponse();
            response.count = 12345L;
    
            String result = response.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            byte[] buffer = new byte[10];
            int result = smbCom.readBytesWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testToString() {
            // Test the string representation of the object
            String directoryName = "myDir";
            SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

                assertNull(ex3.getCause());
                assertNull(ex3.getMessage());
            });
        }
    
        @Test
        @DisplayName("toString should include class name and message")
        void testToString() {
            // Given
            SpnegoException ex = new SpnegoException("hello");
    
            // When
            String s = ex.toString();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/DfsReferralTest.java

            assertEquals(mockData, dfsReferral.getData(), "getData() should return the DfsReferralData object passed to the constructor.");
        }
    
        /**
         * Test the toString method.
         */
        @Test
        void testToString() {
            // Create a mock DfsReferralData object
            DfsReferralData mockData = mock(DfsReferralData.class);
            String expectedToString = "Mock DfsReferralData";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java

            byte[] buffer = new byte[10];
            int result = sdd.readBytesWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
        /**
         * Test toString method.
         */
        @Test
        void testToString() {
            SmbComDeleteDirectory sdd = new SmbComDeleteDirectory("testDir");
            String result = sdd.toString();
            assertTrue(result.contains("SmbComDeleteDirectory"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java

                assertEquals(dataLength, response.dataLength);
                assertEquals(dataOffset, response.dataOffset);
            }
        }
    
        @Test
        public void testToString() {
            response.dataCompactionMode = 1;
            response.dataLength = 1024;
            response.dataOffset = 54;
    
            String result = response.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
Back to top