Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 158 for testToString (0.08 sec)

  1. guava-tests/test/com/google/common/net/HostAndPortTest.java

        // Non-bracketed IPv6 fails.
        assertThrows(
            IllegalArgumentException.class,
            () -> HostAndPort.fromString("::1").requireBracketsForIPv6());
      }
    
      public void testToString() {
        // With ports.
        assertEquals("foo:101", "" + HostAndPort.fromString("foo:101"));
        assertEquals(":102", HostAndPort.fromString(":102").toString());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            assertEquals(outputBuffer.length, result);
            assertArrayEquals(testData, outputBuffer);
        }
    
        @Test
        void testToString() {
            // Test toString method
            String result = response.toString();
            assertNotNull(result);
            assertTrue(result.startsWith("TransTransactNamedPipeResponse["));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            assertNotEquals(instance1.hashCode(), instance3.hashCode());
        }
    
        /**
         * Test of toString method, of class SmbShareInfo.
         */
        @Test
        void testToString() {
            SmbShareInfo instance = new SmbShareInfo("SHARE", 2, "remark");
            String result = instance.toString();
            assertTrue(result.contains("netName=SHARE"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            assertEquals(0, result, "readBytesWireFormat should always return 0");
        }
    
        /**
         * Test toString contains relevant information
         */
        @Test
        public void testToString() {
            SmbComWrite write = new SmbComWrite();
            write.setParam(0x1234, 100L, 50, new byte[10], 0, 10);
    
            String str = write.toString();
            assertNotNull(str);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  8. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
        getMultiset().add(e0(), 2);
        assertEquals(2, entry.getCount());
      }
    
      public void testToString() {
        assertEquals(getMultiset().entrySet().toString(), getMultiset().toString());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top