- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,878 for constructor (0.07 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
response = new Trans2SetFileInformationResponse(config); } @Test @DisplayName("Test constructor initializes object correctly") void testConstructor() { // Test that the constructor properly initializes the object assertNotNull(response); // The command is not set in the constructor, defaults to 0 assertEquals(0, response.getCommand());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
} @Test @DisplayName("Test constructor with MAC signing key and bypass flag") void testConstructorWithBypass() { SMB1SigningDigest digest = new SMB1SigningDigest(testMacSigningKey, true); assertNotNull(digest); assertTrue(digest.toString().contains("MacSigningKey=")); } @Test @DisplayName("Test constructor with MAC signing key, bypass flag and initial sequence")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java
} /** * Test constructor DcerpcException(String msg). */ @Test void testConstructorWithMessage() { String message = "Test message for DcerpcException."; DcerpcException exception = new DcerpcException(message); assertEquals(0, exception.getErrorCode(), "Error code should be 0 for message-only constructor.");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/ConstructorDescTest.java
import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.CoreMatchers.sameInstance; import static org.junit.Assert.assertThat; import java.lang.reflect.Constructor; import org.codelibs.core.beans.BeanDesc; import org.codelibs.core.beans.ConstructorDesc; import org.junit.Test; /** * @author koichik * */ public class ConstructorDescTest { /**Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java
@BeforeEach void setUp() { // Reset mocks before each test reset(mockHandle); } @Test void testConstructor_SuccessfulConnect4() throws IOException { // Test case: Constructor with successful MsrpcSamrConnect4 String server = "testServer"; int access = 123; // No exception thrown by sendrecv for MsrpcSamrConnect4Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
// Assert assertEquals(fid, getFieldValue(write, "fid"), "FID should match constructor arg"); assertEquals(offset, getFieldValue(write, "offset"), "Offset should match constructor arg"); assertEquals(remaining, getFieldValue(write, "remaining"), "Remaining should match constructor arg"); assertEquals(buffer, getFieldValue(write, "b"), "Buffer reference should be set");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAliasTest.java
} // Since SamrOpenAlias's constructor parameters are not directly exposed via getters in MsrpcSamrOpenAlias, // we cannot directly verify them here without reflection or extending SamrOpenAlias for testing. // However, the primary responsibility of MsrpcSamrOpenAlias's constructor is to call the super constructor // and set its own specific fields (ptype, flags).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/smb1/smb1/NtlmPasswordAuthenticationTest.java
jcifs.smb1.Config.setProperty("jcifs.smb1.smb.lmCompatibility", originalLmCompatibility); } else { System.clearProperty("jcifs.smb1.smb.lmCompatibility"); } } // Test constructor with domain, username, and password @Test void testConstructorWithDomainUsernamePassword() { NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", "password");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
*/ @ExtendWith(MockitoExtension.class) class SmbComLogoffAndXTest { @Test @DisplayName("constructor accepts null andx") void constructorWithNullAndx() { SmbComLogoffAndX msg = new SmbComLogoffAndX(null); assertNotNull(msg, "Message must not be null after construction"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5, -1, 10 })Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
verify(mockConfig).getTransactionBufferSize(); } @Test @DisplayName("Test constructor with output buffer") void testConstructorWithOutputBuffer() { // This constructor doesn't use getTransactionBufferSize() Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE, TEST_FILE_ID, TEST_OUTPUT_BUFFER); assertNotNull(request);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0)