Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

          this.badLength = badLength;
        }
    
        @Override
        public long length() {
          return badLength;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      public void testToString() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
        assertEquals(ASCII, Files.toString(asciiFile, US_ASCII));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. docs/recipes.md

     [PostStringJava]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PostString.java
     [PostStringKotlin]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt
     [PostStreamingJava]: https://github.com/square/okhttp/blob/master/samples/guide/src/main/java/okhttp3/recipes/PostStreaming.java
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            // Should always return 0
            assertEquals(0, read);
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            trans2SetFileInfo = new Trans2SetFileInformation(config, TEST_FID, mockFileInfo);
    
            String result = trans2SetFileInfo.toString();
    
            assertNotNull(result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        assertEquals(ImmutableSet.of(b), listener.failedServices);
        assertState(manager, Service.State.FAILED, b);
        assertState(manager, Service.State.TERMINATED, a, c);
      }
    
      public void testToString() throws Exception {
        Service a = new NoOpService();
        Service b = new FailStartService();
        ServiceManager manager = new ServiceManager(asList(a, b));
        String toString = manager.toString();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            NegotiateContextResponse unknown = Smb2NegotiateResponse.createContext(0x9999);
            assertNull(unknown);
        }
    
        @Test
        @DisplayName("Should generate correct toString")
        void testToString() throws Exception {
            // Given
            setPrivateField(response, "dialectRevision", 0x0311);
            setPrivateField(response, "securityMode", 0x01);
            setPrivateField(response, "capabilities", 0x7F);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

          assertTrue(valid, InternetDomainName.isValid(valid));
        }
    
        for (String invalid : invalidCases) {
          assertFalse(invalid, InternetDomainName.isValid(invalid));
        }
      }
    
      public void testToString() {
        for (String inputName : SOMEWHERE_UNDER_PS) {
          InternetDomainName domain = InternetDomainName.from(inputName);
    
          /*
           * We would ordinarily use constants for the expected results, but
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            assertTrue(length > 0);
            // andxCommand is private, but we can verify the behavior
            assertNull(testBlock.getAndx());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() {
            when(mockAndxCommand.getCommand()).thenReturn(0x42);
            testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25, mockAndxCommand);
    
            String result = testBlock.toString();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals(12, read);
            assertEquals(0x1234, packet.nameTrnId);
            assertEquals(1, packet.questionCount);
        }
    
        @Test
        void testToString() throws UnknownHostException {
            packet.nameTrnId = 1;
            packet.isResponse = true;
            packet.opCode = NameServicePacket.QUERY;
            packet.isAuthAnswer = true;
            packet.isTruncated = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top