Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 160 for TestToString (0.23 sec)

  1. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. 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)
  4. android/guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(System.getProperty(property.key()), property.value());
        }
      }
    
      public void testToString() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(property.key() + "=" + property.value(), property.toString());
        }
      }
    
      public void testNoNullValues() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java

        }
    
        /**
         * Test for the toString method.
         * It should return a string containing the class name.
         */
        @Test
        void testToString() {
            String toString = response.toString();
            assertTrue(toString.contains("SmbComBlankResponse"), "toString should contain the class name");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

        new EqualsTester()
            .addEqualityGroup(testTable)
            .addEqualityGroup(ArrayTable.create(ImmutableSet.of('A'), ImmutableSet.of(1)))
            .testEquals();
      }
    
      public void testToString() {
        assertEquals("{a={1=blah}}", testTable.toString());
      }
    
      public void testContains() {
        assertTrue(testTable.contains('a', 1));
        assertFalse(testTable.contains('a', 2));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java

            verify(mockPipeIn, times(1)).receive(buffer, bufferIndex, len);
        }
    
        /**
         * Tests the toString method.
         */
        @Test
        void testToString() {
            String result = response.toString();
            assertNotNull(result, "toString() should not return null.");
        }
    
        // Helper method to access the super.toString() for verification,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. 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)
Back to top