- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 215 for test_string (0.38 sec)
-
src/test/java/jcifs/dcerpc/UnicodeStringTest.java
assertEquals(0, emptyUnicodeStringFalse.buffer.length, "Buffer length should be 0 for empty string without zterm"); } @Test void testToString() { // Test toString with zterm = true String originalStringTrue = "HelloWorld"; UnicodeString unicodeStringTrue = new UnicodeString(originalStringTrue, true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/EnumMultisetTest.java
} public void testCreateEmptyWithoutClassFails() { assertThrows( IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of())); } public void testToString() { Multiset<Color> ms = EnumMultiset.create(Color.class); ms.add(Color.BLUE, 3); ms.add(Color.YELLOW, 1); ms.add(Color.RED, 2); assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6K bytes - Viewed (0) -
utils/utils_test.go
if out := AssertEqual(test.src, test.dst); test.out != out { t.Errorf("AssertEqual(%v, %v) want: %t, got: %t", test.src, test.dst, test.out, out) } }) } } func TestToString(t *testing.T) { tests := []struct { name string in interface{} out string }{ {"int", math.MaxInt64, "9223372036854775807"}, {"int8", int8(math.MaxInt8), "127"},
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java
// The exception should be serializable as it extends RuntimeException assertTrue(exception instanceof java.io.Serializable); } public void test_toString() { // Test toString method String message = "Thumbnail generation failed for file.jpg"; ThumbnailGenerationException exception = new ThumbnailGenerationException(message);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 6.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
} /** * Tests the toString method for a meaningful representation. */ @Test void testToString() { NetShareEnumResponse response = new NetShareEnumResponse(); response.status = 0; response.numEntries = 2; byte[] buffer = { 0x00, 0x00, 0x12, 0x34, 0x02, 0x00, 0x05, 0x00 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
// Assert assertEquals(0, result); } @Test @DisplayName("toString should return formatted string with pipe name") void testToString() { // Arrange transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName); // Act String result = transWaitNamedPipe.toString(); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
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) -
src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java
StackTraceElement[] causeStackTrace = exception.getCause().getStackTrace(); assertNotNull(causeStackTrace); assertTrue(causeStackTrace.length > 0); } public void test_toString() { // Test toString method String message = "Script engine test error"; ScriptEngineException exception = new ScriptEngineException(message); String result = exception.toString();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
assertEquals(firstInstance.getSize(), secondInstance.getSize()); assertEquals(expectedEndOfFile, secondInstance.getSize()); } @Test @DisplayName("Test toString method") void testToString() throws SMBProtocolDecodingException { // Setup test data byte[] buffer = new byte[22]; long expectedAllocationSize = 65536L; long expectedEndOfFile = 49152L;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryRequestTest.java
byte[] src = new byte[100]; int srcIndex = 0; int result = request.readRDataWireFormat(src, srcIndex); assertEquals(0, result); } @Test void testToString() { // Test the toString method's output format NameQueryRequest request = new NameQueryRequest(mockConfig, mockName); String expectedStringPrefix = "NameQueryRequest[";
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0)