- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for teststring (1.78 sec)
-
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
smb.useUnicode = false; String testString = "Hello World"; byte[] buffer = new byte[testString.length() + 1]; int len = smb.writeString(testString, buffer, 0); assertEquals(testString.length() + 1, len); String readString = smb.readString(buffer, 0); assertEquals(testString, readString); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
testBlock.setUseUnicode(true); byte[] buffer = new byte[100]; String testString = "Test"; int bytesWritten = testBlock.writeString(testString, buffer, 10); // Unicode strings are written as UTF-16LE with null terminator assertTrue(bytesWritten > testString.length()); // First byte should be 'T' in UTF-16LE (0x54)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.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 terminatorRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
String testString = "TEST"; short length = (short) (testString.length() * 2); // Unicode length PacUnicodeString unicodeString = new PacUnicodeString(length, length, 100); // Should validate string length String result = unicodeString.check(testString); assertEquals(testString, result); // Should reject wrong length
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
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 terminatorRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/pool/CrawlerPooledObjectFactoryTest.java
container.singleton("stringComponent", "TestString"); CrawlerPooledObjectFactory<String> stringFactory = new CrawlerPooledObjectFactory<>(); stringFactory.setCrawlerContainer(container); stringFactory.setComponentName("stringComponent"); String stringComponent = stringFactory.create(); assertEquals("TestString", stringComponent);
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Thu Nov 20 13:07:01 UTC 2025 - 36.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/FieldUtil.java
* @throws IllegalAccessRuntimeException {@link IllegalAccessException} if an error occurs * @see #getString(Field, Object) */ public static String getString(final Field field) throws IllegalAccessRuntimeException { assertArgumentNotNull("field", field); return getString(field, null); } /** * Returns the value of a {@link Field} as a {@link String}. *Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 9.8K bytes - Viewed (0)