- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 163 for act (0.01 sec)
-
src/test/java/jcifs/internal/smb1/trans/TransWaitNamedPipeTest.java
// Act transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, null); // Assert assertNotNull(transWaitNamedPipe); assertNull(transWaitNamedPipe.name); } @Test @DisplayName("Constructor with empty pipe name should handle gracefully") void testConstructorWithEmptyPipeName() { // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
@Test @DisplayName("release(): verifies it is invoked exactly once") void release_invokedOnce() throws Exception { // Arrange: no setup needed; we verify interaction only // Act: call release handle.release(); // Assert: verify one invocation and no more verify(handle, times(1)).release(); verifyNoMoreInteractions(handle); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
int dstIndex = 50; // Act int result = response.writeSetupWireFormat(dst, dstIndex); // Assert assertEquals(0, result); } @Test @DisplayName("writeParametersWireFormat should return 0") void testWriteParametersWireFormat() { // Arrange byte[] dst = new byte[100]; int dstIndex = 0; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
@Mock Throwable mockCause; @Test @DisplayName("No-arg constructor: null message and cause; can be thrown") void defaultConstructor_behavesAsExpected() { // Arrange & Act SMBProtocolDecodingException ex = new SMBProtocolDecodingException(); // Assert state assertNull(ex.getMessage(), "Default constructor should have null message");
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/nego/NegotiateContextResponseTest.java
} @Test @DisplayName("Should create context with constructor parameters") void testConstructorWithParameters() { // Act context = new PreauthIntegrityNegotiateContext(mockConfig, testHashAlgos, testSalt); // Assert assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, context.getContextType());
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/netbios/NodeStatusRequestTest.java
// Act & Assert assertEquals(0, nodeStatusRequest.readRDataWireFormat(src, 0)); assertEquals(0, nodeStatusRequest.readRDataWireFormat(src, 50)); assertEquals(0, nodeStatusRequest.readRDataWireFormat(src, 99)); } @Test void toString_shouldReturnFormattedString() { // Arrange nodeStatusRequest = new NodeStatusRequest(mockConfig, mockName); // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
boolean guest = flags[1]; // Arrange Subject subject = new Subject(); TestCredentials creds = new TestCredentials("DOMAIN", anonymous, guest, subject, false); // Act & Assert // unwrap to interface itself should return same instance CredentialsInternal unwrapped = creds.unwrap(CredentialsInternal.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
rpcUuid.clock_seq_hi_and_reserved = CLOCK_SEQ_HI_AND_RESERVED; rpcUuid.clock_seq_low = CLOCK_SEQ_LOW; rpcUuid.node = NODE; // Act UUID uuid = new UUID(rpcUuid); // Assert assertEquals(TIME_LOW, uuid.time_low, "time_low should match"); assertEquals(TIME_MID, uuid.time_mid, "time_mid should match");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/SMBSigningDigestTest.java
} @Test @DisplayName("Test sign method with valid parameters") void testSignWithValidParameters() { // Arrange int offset = 0; int length = testData.length; // Act signingDigest.sign(testData, offset, length, request, response); // Assert verify(signingDigest, times(1)).sign(testData, offset, length, request, response); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java
testSids = new jcifs.SID[] { mockSid }; // Act & Assert - Constructor accepts null, no exception thrown assertDoesNotThrow(() -> { new MsrpcLookupSids(null, testSids); }); } @Test void constructor_shouldThrowExceptionWithNullSids() { // Act & Assert - Null SID array causes NPE when accessing length
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.6K bytes - Viewed (0)