- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for expectedStrings (0.09 sec)
-
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
testBlock.setCommand(commands[i]); String result = testBlock.toString(); assertTrue(result.contains("command=" + expectedStrings[i]), "Expected: " + expectedStrings[i] + " in result: " + result); } } } @Nested @DisplayName("Edge Case Tests") class EdgeCaseTests { @BeforeEach
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
cmd/server_test.go
c.Assert(err, nil) response, err = s.client.Do(request) c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK) } testCases := []struct { getURL string expectedStrings []string }{ {getListObjectsV1URL(s.endPoint, bucketName, "", "1000", ""), []string{"<Key>foo bar 1</Key>", "<Key>foo bar 2</Key>"}},
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118.1K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
assertEquals(expectedString, packet.toString()); // Test other opCode, resultCode, questionType, recordType branches packet.opCode = NameServicePacket.WACK; packet.resultCode = NameServicePacket.SRV_ERR; packet.questionType = NameServicePacket.NBSTAT; packet.recordType = NameServicePacket.NBSTAT; expectedString =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
// Verify that the string part ends with the null terminator assertArrayEquals(expectedString, subArray(buffer, 1, expectedString.length)); assertEquals(0, buffer[1 + expectedString.length], "String must be null terminated"); } @Test @DisplayName("toString includes command name and filename") void testToStringIncludesInformation() { String str = cmd.toString();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MultiReaderTest.java
String testString = "abcdefgh"; CharSource source = newCharSource(testString); Reader joinedReader = CharSource.concat(source, source).openStream(); String expectedString = testString + testString; assertEquals(expectedString, CharStreams.toString(joinedReader)); } private static CharSource newCharSource(String text) { return new CharSource() { @Override public Reader openStream() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/DfsReferralTest.java
referral.resolveHashes = true; // When String expectedString = "DfsReferral[pathConsumed=20,server=testServer,share=testShare,link=testLink,path=/test/path,ttl=300,expiration=1234567890,resolveHashes=true]"; String actualString = referral.toString(); // Then assertEquals(expectedString, actualString, "The toString method should return the expected string representation."); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0)