Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 158 for TestToString (0.21 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        assertEquals(a.length(), b.length());
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(a.get(i), b.get(i));
        }
      }
    
      /** toString returns current value */
      public void testToString() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES);
        assertEquals(Arrays.toString(VALUES), aa.toString());
        assertEquals("[]", new AtomicDoubleArray(0).toString());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

     *
     * @author Chris Nokleberg
     */
    @NullUnmarked
    public class CharStreamsTest extends IoTestCase {
    
      private static final String TEXT = "The quick brown fox jumped over the lazy dog.";
    
      public void testToString() throws IOException {
        assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT)));
      }
    
      public void testReadLines() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharStreamsTest.java

     *
     * @author Chris Nokleberg
     */
    @NullUnmarked
    public class CharStreamsTest extends IoTestCase {
    
      private static final String TEXT = "The quick brown fox jumped over the lazy dog.";
    
      public void testToString() throws IOException {
        assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT)));
      }
    
      public void testReadLines() throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                assertFalse(testBlock.equals(null));
                assertFalse(testBlock.equals("not a ServerMessageBlock"));
            }
    
            @Test
            @DisplayName("Test toString method")
            void testToString() {
                testBlock.setCommand(ServerMessageBlock.SMB_COM_NEGOTIATE);
                testBlock.setErrorCode(0);
                testBlock.setFlags((byte) 0x12);
                testBlock.setFlags2(0x3456);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertTrue(unc2.contains("dfs/path") || unc2.contains("dfs\\path"));
        }
    
        @Test
        @DisplayName("toString includes URL and cached fields")
        void testToString() {
            SmbResourceLocatorImpl l = locator("smb://server/share");
            String s = l.toString();
            assertTrue(s.startsWith("smb://server/share"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            ndrBuffer.enc_ndr_referent(null, 1);
            assertEquals(4, ndrBuffer.getIndex());
            assertEquals(0, Encdec.dec_uint32le(buffer, 0)); // Should encode 0 for null
        }
    
        @Test
        void testToString() {
            ndrBuffer.setIndex(10);
            ndrBuffer.setLength(20); // Set length directly for toString test
            String expected = "start=0,index=10,length=20";
            assertEquals(expected, ndrBuffer.toString());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.9K bytes
    - Viewed (0)
Back to top