Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 254 for teststring (0.48 seconds)

  1. android/guava-tests/test/com/google/common/io/CharSinkTester.java

      static TestSuite tests(String name, CharSinkFactory factory) {
        TestSuite suite = new TestSuite(name);
        for (Entry<String, String> entry : TEST_STRINGS.entrySet()) {
          String desc = entry.getKey();
          TestSuite stringSuite = suiteForString(name, factory, entry.getValue(), desc);
          suite.addTest(stringSuite);
        }
        return suite;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  2. 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)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> control(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      public void testToString() {
        assertThat(entry("foo", 1).toString()).isEqualTo("foo=1");
      }
    
      public void testToStringNull() {
        assertThat(entry(NK, 1).toString()).isEqualTo("null=1");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java

        }
    
        /**
         * Test the toString method.
         * It should return a string representation of the SmbComNegotiate object.
         */
        @Test
        void testToString() {
            String result = smbComNegotiate.toString();
            assertTrue(result.startsWith("SmbComNegotiate["), "String should start with SmbComNegotiate[");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4K bytes
    - Click Count (0)
  5. 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();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  6. 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"));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  7. 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"));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  8. 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["));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  9. 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);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  10. 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);
        assertThat(ms.toString()).isEqualTo("[BLUE x 3, RED x 2, YELLOW]");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.1K bytes
    - Click Count (0)
Back to Top