- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for roundtrips (1.53 sec)
-
src/test/java/jcifs/smb/SSPContextTest.java
} } @Nested @DisplayName("Happy path behavior") class HappyPath { @Test @DisplayName("All getters return configured values and MIC roundtrips") void testAllMethodsHappyPath() throws Exception { // Arrange ASN1ObjectIdentifier mech1 = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); // Kerberos V5Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
byte[] bytes = original.toByteArray(); NegTokenTarg roundTrip = new NegTokenTarg(bytes); // Assert – all getters match the original values assertEquals(NegTokenTarg.ACCEPT_COMPLETED, roundTrip.getResult(), "result should roundtrip"); assertEquals(mech, roundTrip.getMechanism(), "mechanism should roundtrip"); assertArrayEquals(tokenArray, roundTrip.getMechanismToken(), "mechanism token should roundtrip");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
byte[] bytes = SID.toByteArray(st); // Act: construct from bytes and re-encode SID sid = new SID(bytes, 0); byte[] roundTrip = sid.toByteArray(); // Assert assertArrayEquals(bytes, roundTrip); assertEquals("S-1-5-10-20", sid.toString()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/rpcTest.java
assertArrayEquals(new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF }, uuid.node); } @Test @DisplayName("Should handle encode-decode roundtrip correctly") void testUuidTEncodeDecodeRoundtrip() throws NdrException { // Given: An original UUID with specific values rpc.uuid_t originalUuid = new rpc.uuid_t();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
assertEquals(1, destinationBuffer[dstIndex + 20]); // deletePending assertEquals(0, destinationBuffer[dstIndex + 21]); // directory } @Test @DisplayName("Test encode and decode roundtrip") void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException { // Setup first instance with test data byte[] originalBuffer = new byte[22]; long expectedAllocationSize = 32768L;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java
context.setMaxCacheAge(60000L); context.setNotificationEnabled(true); context.setNotificationFilter(0x1F); // Test encoding and decoding roundtrip byte[] buffer = new byte[context.size()]; int encoded = context.encode(buffer, 0); assertEquals(context.size(), encoded);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 14.2K bytes - Viewed (0) -
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")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
assertEquals(TEST_LAST_WRITE_TIME, fileBasicInfo.getLastWriteTime()); assertEquals(TEST_ATTRIBUTES, fileBasicInfo.getAttributes()); } @Test @DisplayName("Test encode and decode roundtrip") void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException { // Create original instance FileBasicInfo original =
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
setField(transport, "negotiated", smb1); assertFalse(transport.isSMB2()); } @Test @DisplayName("Digest setter/getter roundtrip") void digestRoundtrip() { SMBSigningDigest dg = mock(SMBSigningDigest.class); transport.setDigest(dg); assertSame(dg, transport.getDigest()); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java
assertEquals(TEST_LAST_WRITE_TIME, fileBasicInfo.getLastWriteTime()); assertEquals(TEST_ATTRIBUTES, fileBasicInfo.getAttributes()); } @Test @DisplayName("Test encode and decode roundtrip") void testEncodeDecodeRoundtrip() throws SMBProtocolDecodingException { // Given FileBasicInfo originalInfo =
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13K bytes - Viewed (0)