- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 103 for TestConstructor (0.93 sec)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnumTest.java
*/ class MsrpcDfsRootEnumTest { /** * Test the constructor of MsrpcDfsRootEnum. * Verifies that the object is initialized with the correct default values. */ @Test void testConstructor() { // Given String serverName = "test-server"; // When MsrpcDfsRootEnum dfsRootEnum = new MsrpcDfsRootEnum(serverName); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java
import org.junit.jupiter.api.Test; /** * Test class for SmbComTreeDisconnect. */ class SmbComTreeDisconnectTest { /** * Test the constructor of SmbComTreeDisconnect. */ @Test void testConstructor() { // When SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect(); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacGroupTest.java
pacGroup = new PacGroup(mockSid, attributes); } /** * Test method for {@link jcifs.pac.PacGroup#PacGroup(jcifs.smb.SID, int)}. */ @Test void testConstructor() { // Verify that the constructor correctly sets the id and attributes assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteTest.java
private SmbComDelete smbComDelete; @BeforeEach public void setUp() { smbComDelete = new SmbComDelete(TEST_FILE_NAME); } @Test public void testConstructor() { // Test if the constructor sets the file name and command correctly assertEquals(TEST_FILE_NAME, smbComDelete.path); assertEquals(ServerMessageBlock.SMB_COM_DELETE, smbComDelete.command); }
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/internal/smb1/com/SmbComCreateDirectoryTest.java
// Define behavior for the OEM encoding, which is used by writeString when(mockConfig.getOemEncoding()).thenReturn(StandardCharsets.UTF_8.name()); } @Test void testConstructor() { // Test that the constructor correctly sets the command and path String directoryName = "testDir"; SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, directoryName);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComDeleteDirectoryTest.java
import org.junit.jupiter.api.Test; /** * Tests for the SmbComDeleteDirectory class. */ class SmbComDeleteDirectoryTest { /** * Test constructor. */ @Test void testConstructor() { SmbComDeleteDirectory sdd = new SmbComDeleteDirectory("testDir"); assertEquals("testDir", sdd.path); assertEquals(ServerMessageBlock.SMB_COM_DELETE_DIRECTORY, sdd.command); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/TransTransactNamedPipeResponseTest.java
response = new TransTransactNamedPipeResponse(mockPipe); } /** * Tests the constructor of {@link TransTransactNamedPipeResponse}. */ @Test void testConstructor() { // The constructor is called in setUp(), so we just verify the result. assertNotNull(response, "The response object should not be null."); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComReadAndXResponseTest.java
private SmbComReadAndXResponse response; @BeforeEach public void setUp() { response = new SmbComReadAndXResponse(); } @Test public void testConstructor() { assertNotNull(response); } @Test public void testConstructorWithParameters() { byte[] b = new byte[0]; response = new SmbComReadAndXResponse(b, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameQueryRequestTest.java
@Mock private Configuration mockConfig; @Mock private Name mockName; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test void testConstructor() { // Test that the constructor correctly initializes questionName and questionType NameQueryRequest request = new NameQueryRequest(mockConfig, mockName); assertNotNull(request);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
} /** * Runs {@link #testConstructor} on every constructor in class {@code c} that has at least {@code * minimalVisibility}. */ public void testConstructors(Class<?> c, Visibility minimalVisibility) { for (Constructor<?> constructor : c.getDeclaredConstructors()) { if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) { testConstructor(constructor); } } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0)