Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 203 for teststring (0.09 sec)

  1. 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)
  2. 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)
  3. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

            assertNull(info.getFile());
    
            Object mockFile = new Object();
            info.setFile(mockFile);
            assertEquals(mockFile, info.getFile());
        }
    
        @Test
        public void testToString() {
            HandleInfo info = new HandleInfo("/test/file.txt", testGuid, testFileId, HandleType.PERSISTENT, 0, testLeaseKey);
    
            String str = info.toString();
            assertTrue(str.contains("/test/file.txt"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      }
    
      public void testCreateEmptyWithoutClassFails() {
        assertThrows(
            IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of()));
      }
    
      public void testToString() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.BLUE, 3);
        ms.add(Color.YELLOW, 1);
        ms.add(Color.RED, 2);
        assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java

            assertEquals(0, cmd.readParametersWireFormat(null, 0, 0));
            assertEquals(0, cmd.readDataWireFormat(null, 0, 0));
        }
    
        @Test
        @DisplayName("toString includes information level in hex")
        void testToString() {
            int level = 0xABC;
            Trans2QueryFSInformation cmd = new Trans2QueryFSInformation(level);
            String str = cmd.toString();
            // toString uses Hexdump.toHexString(informationLevel, 3)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NameQueryRequestTest.java

            byte[] src = new byte[100];
            int srcIndex = 0;
    
            int result = request.readRDataWireFormat(src, srcIndex);
    
            assertEquals(0, result);
        }
    
        @Test
        void testToString() {
            // Test the toString method's output format
            NameQueryRequest request = new NameQueryRequest(mockConfig, mockName);
            String expectedStringPrefix = "NameQueryRequest[";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            assertEquals(firstInstance.getSize(), secondInstance.getSize());
            assertEquals(expectedEndOfFile, secondInstance.getSize());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() throws SMBProtocolDecodingException {
            // Setup test data
            byte[] buffer = new byte[22];
            long expectedAllocationSize = 65536L;
            long expectedEndOfFile = 49152L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            assertEquals(0, response.readBytesWireFormat(buffer, bufferIndex));
        }
    
        /**
         * Test of toString method, of class SmbComQueryInformationResponse.
         */
        @Test
        public void testToString() {
            String result = response.toString();
            assertNotNull(result);
            assertTrue(result.startsWith("SmbComQueryInformationResponse["));
            assertTrue(result.contains("fileAttributes=0x0000"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeTest.java

            byte[] buffer = new byte[100];
    
            int consumed = pipe.readDataWireFormat(buffer, 0, 10);
            assertEquals(0, consumed, "readDataWireFormat should return 0");
        }
    
        @Test
        public void testToString() {
            // Test the toString method
            String pipeName = "\\\\pipe\\testPipe";
            TransWaitNamedPipe pipe = new TransWaitNamedPipe(pipeName);
    
            String result = pipe.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      public void testEquals() {
        boolean unused = create().equals(new HashMap<String, Integer>());
      }
    
      public void testHashCode() {
        int unused = create().hashCode();
      }
    
      public void testToString() {
        String unused = create().toString();
      }
    
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(create());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 19:11:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top