Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 220 for teststring (0.05 sec)

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

        assertEquals(STRING.length(), source.copyTo(sink));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testToString() {
        Multiset<String> ms = TreeMultiset.create();
        ms.add("a", 3);
        ms.add("c", 1);
        ms.add("b", 2);
    
        assertEquals("[a x 3, b x 2, c]", ms.toString());
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> hasher.hash());
      }
    
      public void testToString() {
        byte[] keyData = "secret key".getBytes(UTF_8);
    
        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(MD5_KEY).toString());
        assertEquals(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            assertThrows(Exception.class, () -> {
                transformHeader.encode(shortBuffer, 0);
            });
        }
    
        @Test
        @DisplayName("Should create string representation")
        void testToString() {
            // Given
            transformHeader.setSessionId(testSessionId);
            transformHeader.setOriginalMessageSize(1024);
            transformHeader.setFlags(0x0001);
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            assertNotNull(response);
            assertTrue(response instanceof Smb2CreateResponse);
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            request = new Smb2CreateRequest(mockConfig, "test\\file.txt");
            request.setResolveInDfs(true);
    
            String str = request.toString();
            assertNotNull(str);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            long expectedFree = (long) free * sectPerAlloc * bytesPerSect;
            assertEquals(expectedFree, smbInfoAllocation.getFree());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[22];
            int idFileSystem = 0xABCDEF00;
            int sectPerAlloc = 4;
            long alloc = 500000L;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                // Then: Should complete without errors
                assertDoesNotThrow(() -> handle.close());
            }
    
            @Test
            @DisplayName("Should return string representation")
            void testToString() {
                // Given: Mock binding with toString
                when(mockBinding.toString()).thenReturn("mockBindingString");
    
                // When: Getting string representation
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java

            assertEquals(0, fileBothDirectoryInfo.length());
            assertEquals(0, fileBothDirectoryInfo.getAttributes());
        }
    
        @Test
        @DisplayName("Test toString method contains all fields")
        void testToString() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = createValidBuffer("tostring.txt", "TOSTRI~1.TXT", true);
            long testTime = System.currentTimeMillis();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NbtAddressTest.java

            assertFalse(nbtAddress1.equals(nbtAddress3));
            assertFalse(nbtAddress1.equals(null));
            assertFalse(nbtAddress1.equals("some string"));
        }
    
        @Test
        void testToString() {
            // Test toString method
            mockName = new Name(mockConfig, "TESTHOST", 0x00, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        try {
          List<Callable<String>> l = new ArrayList<>();
          l.add(new StringTask());
          l.add(new StringTask());
          String result = invokeAnyImpl(e, l, false, 0, NANOSECONDS);
          assertSame(TEST_STRING, result);
        } finally {
          joinPool(e);
        }
      }
    
      private static void assertListenerRunImmediately(ListenableFuture<?> future) {
        CountingRunnable listener = new CountingRunnable();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 12 00:25:21 UTC 2025
    - 26.5K bytes
    - Viewed (0)
Back to top