Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 158 for TestToString (0.39 sec)

  1. 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)
  2. 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)
  3. src/test/java/org/codelibs/core/xml/DomUtilTest.java

            assertNotNull("1", DomUtil.getContentsAsStream(contents, "UTF-8"));
        }
    
        /**
         * @throws Exception
         */
        public void testToString() throws Exception {
            final DocumentBuilder builder = DocumentBuilderFactoryUtil.newDocumentBuilder();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. 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)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

          testExceptionPropagation(interfaceType, method, wrapperFunction);
        }
        if (testsEquals) {
          testEquals(interfaceType, wrapperFunction);
        }
        testToString(interfaceType, wrapperFunction);
      }
    
      /** Returns the most concrete public methods from {@code type}. */
      private static Method[] getMostConcreteMethods(Class<?> type) {
        Method[] methods = type.getMethods();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java

        }
    
        /**
         * Test for the toString method.
         * It should return a string representation of the object.
         */
        @Test
        void testToString() {
            // The actual toString() method uses super.toString(), so we mimic that for the check.
            // A direct string comparison might be brittle, so we check for the class name and brackets.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/StopwatchTest.java

        ticker.advance(1);
        assertEquals(1, stopwatch.elapsed(MILLISECONDS));
      }
    
      @J2ktIncompatible // TODO(b/259213718): Switch J2kt to String.format("%.4g") once that's supported
      public void testToString() {
        stopwatch.start();
        assertEquals("0.000 ns", stopwatch.toString());
        ticker.advance(1);
        assertEquals("1.000 ns", stopwatch.toString());
        ticker.advance(998);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top