Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 203 for teststring (1.01 sec)

  1. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

        }
    
        @Test
        void testEncDecNdrString() throws NdrException {
            String testString = "Hello World";
            ndrBuffer.enc_ndr_string(testString);
    
            // Expected length: 4 (actual_count) + 4 (offset) + 4 (max_count) + len*2 (unicode) + 2 (null terminator)
            int expectedLength = 4 + 4 + 4 + (testString.length() * 2) + 2;
            assertEquals(expectedLength, ndrBuffer.getIndex());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

      }
    
      public void testSkipFully() throws IOException {
        String testString = "abcdef";
        Reader reader = new StringReader(testString);
    
        assertEquals(testString.charAt(0), reader.read());
        CharStreams.skipFully(reader, 1);
        assertEquals(testString.charAt(2), reader.read());
        CharStreams.skipFully(reader, 2);
        assertEquals(testString.charAt(5), reader.read());
    
        assertEquals(-1, reader.read());
      }
    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

      }
    
      public void testSkipFully() throws IOException {
        String testString = "abcdef";
        Reader reader = new StringReader(testString);
    
        assertEquals(testString.charAt(0), reader.read());
        CharStreams.skipFully(reader, 1);
        assertEquals(testString.charAt(2), reader.read());
        CharStreams.skipFully(reader, 2);
        assertEquals(testString.charAt(5), reader.read());
    
        assertEquals(-1, reader.read());
      }
    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/util/StringsTest.java

                byte[] result = Strings.getUNIBytes(TEST_STRING);
    
                // Then
                assertNotNull(result, "Result should not be null");
                assertTrue(result.length > 0, "Result should not be empty");
                assertEquals(TEST_STRING.getBytes(StandardCharsets.UTF_16LE).length, result.length, "Length should match UTF-16LE encoding");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

        }
    
        @Test
        @DisplayName("Test readString with ASCII encoding")
        void testReadStringAscii() throws Exception {
            String testString = "TestString";
            byte[] buffer = new byte[128];
            byte[] stringBytes = testString.getBytes(StandardCharsets.US_ASCII);
            System.arraycopy(stringBytes, 0, buffer, 10, stringBytes.length);
            buffer[10 + stringBytes.length] = 0; // null terminator
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/InputValidatorTest.java

            assertEquals("teststring", InputValidator.sanitizeForLogging("test\0string"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\nstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\rstring"));
            assertEquals("teststring", InputValidator.sanitizeForLogging("test\tstring"));
    
            // Test long string truncation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

      }
    
      public void testChar() {
        TestHasher hasher = new TestHasher();
        hasher.putChar((char) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testString() {
        Random random = new Random();
        for (int i = 0; i < 100; i++) {
          byte[] bytes = new byte[64];
          random.nextBytes(bytes);
          String s = new String(bytes, UTF_16LE); // so all random strings are valid
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        Sink sink = new Sink(4);
        sink.putChar((char) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
      }
    
      public void testString() {
        Random random = new Random();
        for (int i = 0; i < 100; i++) {
          byte[] bytes = new byte[64];
          random.nextBytes(bytes);
          String s = new String(bytes, UTF_16LE); // so all random strings are valid
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        Sink sink = new Sink(4);
        sink.putChar((char) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
      }
    
      public void testString() {
        Random random = new Random();
        for (int i = 0; i < 100; i++) {
          byte[] bytes = new byte[64];
          random.nextBytes(bytes);
          String s = new String(bytes, UTF_16LE); // so all random strings are valid
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

            // Test generic type safety of getObject method
            // Since we're in test environment without request context, this will return null
            String stringResult = WebApiUtil.getObject("testString");
            assertNull("Should return null in test environment", stringResult);
    
            Integer intResult = WebApiUtil.getObject("testInteger");
            assertNull("Should return null in test environment", intResult);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top