- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 222 for exactly (0.04 sec)
-
src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java
// Verify that the wrap method was called exactly once verify(dcerpcSecurityProvider, times(1)).wrap(mockNdrBuffer); } @Test void testUnwrapMethodIsCalled() throws DcerpcException { // Test that the unwrap method can be called without throwing an exception dcerpcSecurityProvider.unwrap(mockNdrBuffer); // Verify that the unwrap method was called exactly once with the mockNdrBuffer
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
buffer[26] = 0x00; buffer[27] = 0x00; // Decode int bytesConsumed = response.decode(buffer, 0, 28); // Verify assertEquals(28, bytesConsumed, "Should consume exactly 28 bytes"); byte[] resumeKey = response.getResumeKey(); assertNotNull(resumeKey, "Resume key should not be null"); assertEquals(24, resumeKey.length, "Resume key should be 24 bytes");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java
// Execute decode int bytesDecoded = response.decode(buffer, bufferIndex, 24); // Verify results assertEquals(24, bytesDecoded, "Should decode exactly 24 bytes"); assertEquals(testCapabilities, response.getCapabilities(), "Capabilities should match"); assertArrayEquals(testGuid, response.getServerGuid(), "Server GUID should match");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrHyperTest.java
NdrHyper ndrHyper = new NdrHyper(testValue); // Call the encode method with the mocked NdrBuffer ndrHyper.encode(mockNdrBuffer); // Verify that enc_ndr_hyper was called exactly once with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_hyper(testValue); verifyNoMoreInteractions(mockNdrBuffer); } @Test void testDecode() throws NdrException {
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/smb/StaticJAASConfigurationTest.java
// Act AppConfigurationEntry[] entries = cfg.getAppConfigurationEntry("ignored"); // Assert assertNotNull(entries, "Entries array should not be null"); assertEquals(1, entries.length, "Exactly one entry is expected"); AppConfigurationEntry e = entries[0]; assertNotNull(e, "Entry should not be null"); assertEquals(EXPECTED_LOGIN_MODULE, e.getLoginModuleName(), "Login module should be Kerberos");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/ResolverTypeTest.java
} /** * Tests the total number of enum constants. */ @Test void testNumberOfEnumConstants() { // Ensure there are exactly 4 resolver types assertEquals(4, ResolverType.values().length, "There should be exactly 4 resolver types."); } /** * Tests the names of the enum constants. */ @Test void testEnumNames() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java
int testValue = 98765; NdrLong ndrLong = new NdrLong(testValue); // Call the encode method ndrLong.encode(mockNdrBuffer); // Verify that enc_ndr_long was called exactly once with the correct value verify(mockNdrBuffer, times(1)).enc_ndr_long(testValue); // Verify that no other interactions occurred with the mock buffer verifyNoMoreInteractions(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/smb/RequestParamTest.java
void valuesContainsAllInOrder() { RequestParam[] values = RequestParam.values(); assertNotNull(values, "values() must not return null"); assertEquals(4, values.length, "There must be exactly 4 constants"); assertArrayEquals( new RequestParam[] { RequestParam.NONE, RequestParam.NO_TIMEOUT, RequestParam.NO_RETRY, RequestParam.RETAIN_PAYLOAD },
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
// Arrange & Act SMBProtocolDecodingException ex = new SMBProtocolDecodingException(mockCause); // Assert cause propagation assertSame(mockCause, ex.getCause(), "Cause should be exactly the provided instance"); // Access common Throwable methods to exercise paths without touching the cause assertNotNull(ex.toString(), "toString should be non-null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java
@Test @DisplayName("SMB2 header length should be 64 bytes") void testSmb2HeaderLength() { assertEquals(64, Smb2Constants.SMB2_HEADER_LENGTH, "SMB2 header must be exactly 64 bytes"); } } @Nested @DisplayName("Negotiation Constants") class NegotiationConstants { @Test @DisplayName("Signing enabled flag should be 0x0001")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0)