- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 360 for trip (0.3 seconds)
-
src/test/java/jcifs/util/StringsTest.java
assertTrue(result.length > 0, "Result should not be empty"); // Verify round-trip conversion String roundTrip = new String(result, StandardCharsets.UTF_16LE); assertEquals(UNICODE_STRING, roundTrip, "Round-trip conversion should preserve Unicode"); } @Test @DisplayName("getASCIIBytes should encode string as ASCII")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
assertArrayEquals(mechs, parsed.getMechanisms(), "Mechanism OIDs should round-trip"); assertEquals(flags, parsed.getContextFlags(), "Flags should round-trip"); assertArrayEquals(mechToken, parsed.getMechanismToken(), "Mechanism token should round-trip"); assertArrayEquals(mic, parsed.getMechanismListMIC(), "MIC should round-trip"); assertTrue(parsed.getContextFlag(NegTokenInit.DELEGATION));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
assertEquals(largeValue, ndrShort.value); } } @Nested @DisplayName("Round-trip Tests") class RoundTripTests { @Test @DisplayName("Should handle encode-decode round-trip correctly") void testEncodeDecodeRoundTrip() throws NdrException { // Given: Original value that fits in byte range
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileInformationTest.java
assertTrue(str.contains("1024")); } /** * Test FileEndOfFileInformation encode/decode round trip */ @Test @DisplayName("Test FileEndOfFileInformation encode/decode round trip") void testFileEndOfFileInformationEncodeDecodeRoundTrip() throws SMBProtocolDecodingException { long originalValue = 0x123456789ABCDEFL;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
int bytesRead = info.decode(buffer, startIndex, buffer.length - startIndex); assertEquals(20 + nameBytes.length, bytesRead); } @Test @DisplayName("Test encode and decode round trip") void testEncodeDecodeRoundTrip() throws SMBProtocolDecodingException { String fileName = "roundtrip_test.txt"; boolean replaceIfExists = true;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
assertEquals(4 + (2 * cipherCount), context.size()); } } @Nested @DisplayName("Round-trip Tests") class RoundTripTests { @Test @DisplayName("Should encode and decode correctly with single cipher") void testRoundTripSingleCipher() throws SMBProtocolDecodingException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
long initialTime = circuitBreaker.getTimeSinceLastStateChange(); assertTrue(initialTime >= 0, "Should have initial timestamp"); // Trip circuit circuitBreaker.trip(); Thread.sleep(100); long afterTripTime = circuitBreaker.getTimeSinceLastStateChange(); assertTrue(afterTripTime >= 100, "Time should have advanced");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
FileBasicInfo decoded = new FileBasicInfo(); decoded.decode(buffer, startIndex, 36); // decode only reads 36 bytes // Verify the values match after round-trip assertEquals(TEST_CREATE_TIME, decoded.getCreateTime()); assertEquals(TEST_LAST_ACCESS_TIME, decoded.getLastAccessTime()); assertEquals(TEST_LAST_WRITE_TIME, decoded.getLastWriteTime());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
} public void testToByteArrayAndFromByteArrayRoundTrip() { for (PairedStats pairedStats : ALL_PAIRED_STATS) { byte[] pairedStatsByteArray = pairedStats.toByteArray(); // Round trip to byte array and back assertThat(PairedStats.fromByteArray(pairedStatsByteArray)).isEqualTo(pairedStats); } } public void testFromByteArray_withNullInputThrowsNullPointerException() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 14.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
} public void testToByteArrayAndFromByteArrayRoundTrip() { for (PairedStats pairedStats : ALL_PAIRED_STATS) { byte[] pairedStatsByteArray = pairedStats.toByteArray(); // Round trip to byte array and back assertThat(PairedStats.fromByteArray(pairedStatsByteArray)).isEqualTo(pairedStats); } } public void testFromByteArray_withNullInputThrowsNullPointerException() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 14.1K bytes - Click Count (0)