- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 288 for arrange (0.03 sec)
-
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
@Mock SmbTreeHandleImpl tree; @Mock SmbNamedPipe pipe; @Mock SmbFileHandleImpl fileHandle; private SmbPipeOutputStream newStream() throws CIFSException { // Arrange common constructor collaborators to avoid touching network/state when(handle.getPipe()).thenReturn(pipe); when(tree.isSMB2()).thenReturn(true); when(tree.getSendBufferSize()).thenReturn(4096);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java
void constructor_shouldSetHandleCorrectly() { // Arrange short level = 1; // Act queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject); // Assert assertSame(mockPolicyHandle, queryPolicy.handle); } @Test void constructor_shouldSetLevelCorrectly() { // Arrange short level = 7; // Act
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Arrange SamrPolicyHandle ph = createMockPolicyHandle(); // Act & Assert assertDoesNotThrow(() -> new MsrpcSamrConnect2(null, 0, ph)); } @Test @DisplayName("should accept negative access mask values") void testNegativeAccessMaskAccepted() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
verify(tree).connectLogon(null); } @Test @DisplayName("connectLogon propagates SmbException from implementation") void connectLogon_throws_propagates() throws Exception { // Arrange doThrow(new SmbException("login failed")).when(tree).connectLogon(context); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> tree.connectLogon(context));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
void setUp() { // MockitoAnnotations.openMocks(this); // Not needed with @ExtendWith(MockitoExtension.class) } @Test void constructor_shouldOpenPolicySuccessfully() throws IOException { // Arrange String server = "testServer"; int access = 123; // Mock the behavior of sendrecv for MsrpcLsarOpenPolicy2 doAnswer(invocation -> {
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/session/Smb2LogoffRequestTest.java
// Arrange Smb2LogoffRequest req = newRequest(); // Act/Assert assertThrows(NullPointerException.class, () -> req.createResponse(null, req)); } @Test @DisplayName("createResponse tolerates null request parameter") void createResponse_nullRequest_ok() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
closeHandleCaptor = ArgumentCaptor.forClass(MsrpcSamrCloseHandle.class); } @Test void constructor_shouldOpenDomainSuccessfully() throws IOException { // Arrange int access = 0x01; // Example access value // Simulate successful RPC call doAnswer(invocation -> { MsrpcSamrOpenDomain rpc = invocation.getArgument(0);
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/session/Smb2LogoffResponseTest.java
return new Smb2LogoffResponse(cfg); } @Test @DisplayName("Constructor accepts a Configuration and creates instance") void constructor_happyPath() { // Arrange Configuration cfg = Mockito.mock(Configuration.class); // Act Smb2LogoffResponse resp = new Smb2LogoffResponse(cfg); // Assert
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K 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/smb/SMBProtocolDowngradeExceptionTest.java
} @Test @DisplayName("Default ctor: null message/cause; toString is class name; type hierarchy") void defaultConstructor_hasNullMessageAndCause_andTypeHierarchy() { // Arrange & Act SMBProtocolDowngradeException ex = new SMBProtocolDowngradeException(); // Assert - message and cause are null 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.4K bytes - Viewed (0)