- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for test_encode (0.05 sec)
-
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
} } @Nested @DisplayName("SamrSamEntry Tests") class SamrSamEntryTests { @Test @DisplayName("Should encode entry with non-null buffer") void testEncode() throws NdrException { // Given: SAM entry with data samr.SamrSamEntry entry = new samr.SamrSamEntry(); entry.idx = 1; entry.name = new rpc.unicode_string();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
NdrHyper ndrHyper = new NdrHyper(expectedValue); assertEquals(expectedValue, ndrHyper.value, "Constructor should set the correct value."); } @Test void testEncode() throws NdrException { // Test the encode method long testValue = 987654321098765L; NdrHyper ndrHyper = new NdrHyper(testValue); // Call the encode method with the mocked NdrBuffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
} } @Nested @DisplayName("SamrSamEntry Tests") class SamrSamEntryTests { @Test @DisplayName("Should encode entry with non-null buffer") void testEncode() throws NdrException { // Given: SAM entry with data samr.SamrSamEntry entry = new samr.SamrSamEntry(); entry.idx = 1; entry.name = new rpc.unicode_string();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrObjectTest.java
* Verifies that the encode method of a concrete implementation is called * and interacts with the NdrBuffer as expected. * @throws NdrException if encoding fails. */ @Test void testEncode() throws NdrException { // When ndrObject.encode(mockBuffer); // Then // Verify that our mock buffer had the expected method called. verify(mockBuffer).enc_ndr_long(123);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
ndrSmall = new NdrSmall(511); // 511 & 0xFF = 255 assertEquals(255, ndrSmall.value, "Value exceeding byte range should be masked correctly."); } @Test void testEncode() throws NdrException { // Create an NdrSmall object with a specific value NdrSmall ndrSmall = new NdrSmall(100); // Call the encode method ndrSmall.encode(mockNdrBuffer);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/Base64Test.java
; } @ParameterizedTest(name = "encode({1}) -> {2}") @MethodSource("encodeProvider") void testEncode(byte[] input, String expected) { // Arrange & Act String actual = Base64.encode(input); // Assert assertEquals(expected, actual, "Base64.encode should match expected string"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertNull(context.getHashAlgos()); assertNull(context.getSalt()); } @Test @DisplayName("Should encode context correctly") void testEncode() { // Arrange context = new PreauthIntegrityNegotiateContext(mockConfig, testHashAlgos, testSalt); byte[] buffer = new byte[100]; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java
@Test @DisplayName("Test size method returns correct buffer size") void testSize() { assertEquals(40, fileBasicInfo.size()); } @Test @DisplayName("Test encode method") void testEncode() throws SMBProtocolDecodingException { // Create instance with test values FileBasicInfo info =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
FileEndOfFileInformation info = new FileEndOfFileInformation(999L); assertEquals(8, info.size()); } @Test @DisplayName("Test encode method with valid buffer") void testEncode() { // Create instance with known value long endOfFile = 0x123456789ABCDEFL; FileEndOfFileInformation info = new FileEndOfFileInformation(endOfFile); // Create buffer for encoding
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0)