Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 185 for testToString (0.09 seconds)

  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["));
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 2.4K bytes
    - Click Count (0)
  2. 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";
    
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 1.6K bytes
    - Click Count (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();
    Created: 2026-04-03 20:58
    - Last Modified: 2025-05-10 01:32
    - 1.6K bytes
    - Click Count (0)
  4. 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"));
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 3K bytes
    - Click Count (0)
  5. 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();
    Created: 2026-04-03 12:43
    - Last Modified: 2025-05-13 17:27
    - 9.1K bytes
    - Click Count (0)
  6. 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["));
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 3.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/collect/MultisetsImmutableEntryTest.java

      }
    
      private static <E extends @Nullable Object> Entry<E> control(E element, int count) {
        return HashMultiset.create(nCopies(count, element)).entrySet().iterator().next();
      }
    
      public void testToString() {
        assertThat(entry("foo", 1).toString()).isEqualTo("foo");
        assertThat(entry("bar", 2).toString()).isEqualTo("bar x 2");
      }
    
      public void testToStringNull() {
    Created: 2026-04-03 12:43
    - Last Modified: 2026-03-12 17:47
    - 2.9K bytes
    - Click Count (0)
  8. 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();
    
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 2.4K bytes
    - Click Count (0)
  9. 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="));
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 18.1K bytes
    - Click Count (0)
  10. 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";
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-14 05:31
    - 2.8K bytes
    - Click Count (0)
Back to Top