- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 119 for test_constructor (0.71 sec)
-
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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java
// Show that dir is ignored assertTrue(filter.accept(null, "a")); } public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testConstructors(PatternFilenameFilter.class, Visibility.PACKAGE); tester.testStaticMethods(PatternFilenameFilter.class, Visibility.PACKAGE); // currently noneRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.1K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; class SmbShareInfoTest { /** * Test of constructor, of class SmbShareInfo. */ @Test void testConstructor() { // Test no-argument constructor SmbShareInfo instance = new SmbShareInfo(); assertNotNull(instance); // Test constructor with arguments String netName = "SHARE";Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K 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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java
*/ class SmbComOpenAndXResponseTest { private SmbComOpenAndXResponse response; @BeforeEach void setUp() { response = new SmbComOpenAndXResponse(); } @Test void testConstructor() { assertNotNull(response); // Default values from constructor assertEquals(0, response.fid); assertEquals(0, response.fileAttributes); assertEquals(0L, response.lastWriteTime);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
when(mockAuth.getDomain()).thenReturn("TESTDOMAIN"); setupAndX = new SmbComSessionSetupAndX(mockSession, mockAndx, mockAuth); } @Test void testConstructor() { assertNotNull(setupAndX); assertEquals(ServerMessageBlock.SMB_COM_SESSION_SETUP_ANDX, setupAndX.command); assertEquals(mockSession, setupAndX.session);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
} /** * Test the constructor of SmbComNegotiate. * It should initialize the command and flags2 with default values. */ @Test void testConstructor() { // Verify that the command is set to SMB_COM_NEGOTIATE assertEquals(ServerMessageBlock.SMB_COM_NEGOTIATE, smbComNegotiate.command, "Constructor should set the command to SMB_COM_NEGOTIATE.");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationResponseTest.java
} /** * Test for the constructor of {@link Trans2SetFileInformationResponse}. * It should initialize the subCommand correctly. */ @Test void testConstructor() { // Verify that the subCommand is set to TRANS2_SET_FILE_INFORMATION assertEquals(SmbComTransaction.TRANS2_SET_FILE_INFORMATION, response.subCommand,Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.8K bytes - Viewed (0)