- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 105 for testConstructors (0.07 seconds)
-
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
wrapper = new CIFSContextCredentialWrapper(mockDelegate, mockCredentials); } @Test @DisplayName("Should construct with delegate and credentials") void testConstructor() { // Verify that the constructor correctly sets the delegate (inherited from CIFSContextWrapper) // and the credentials. The delegate is tested implicitly by calling super's methods.
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/MimeMapTest.java
} @Nested @DisplayName("Constructor and initialization") class ConstructorTests { @Test @DisplayName("Should create MimeMap instance successfully") void testConstructor() { assertDoesNotThrow(() -> new MimeMap()); } @Test @DisplayName("Should load mime.map resource properly") void testResourceLoading() throws IOException {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
void setUp() { MockitoAnnotations.openMocks(this); outputBuffer = new byte[1024]; response = new TransCallNamedPipeResponse(mockConfig, outputBuffer); } @Test void testConstructor() { assertNotNull(response); // Verify that the outputBuffer is stored properly byte[] testData = new byte[] { 1, 2, 3, 4, 5 };
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java
* * @throws IOException if an I/O error occurs * @throws PACDecodingException if a PAC decoding error occurs * @throws UnknownHostException if the IP address is not found */ @Test void testConstructor() throws IOException, PACDecodingException, UnknownHostException { // Build a sample Kerberos EncData structure ASN1EncodableVector vector = new ASN1EncodableVector();Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/LogStreamTest.java
Field instanceField = LogStream.class.getDeclaredField("inst"); instanceField.setAccessible(true); instanceField.set(null, null); } @Test void testConstructor() { // Test constructor creates a LogStream that extends PrintStream LogStream logStream = new LogStream(testStream); assertNotNull(logStream); assertTrue(logStream instanceof PrintStream);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java
response = new NtTransQuerySecurityDescResponse(mockConfig); } @Test @DisplayName("Test constructor creates instance with null security descriptor") void testConstructor() { assertNotNull(response); assertNull(response.getSecurityDescriptor()); } @Test @DisplayName("Test writeSetupWireFormat returns 0") void testWriteSetupWireFormat() {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
session.transport = transport; // Setup session to return transport via method call when(session.transport()).thenReturn(transport); } @Test void testConstructor() { // Test constructor with a specific service SmbTree tree = new SmbTree(session, "testShare", "testService"); assertEquals("TESTSHARE", tree.share);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer); } @Test @DisplayName("Constructor should properly initialize all fields") void testConstructor() { // Verify all fields are properly initialized assertNotNull(negotiation); assertSame(mockRequest, negotiation.getRequest()); assertSame(mockResponse, negotiation.getResponse());
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test @DisplayName("Test constructor initializes fields correctly") void testConstructor() { // Act TransTransactNamedPipe trans = new TransTransactNamedPipe(mockConfig, TEST_FID, TEST_DATA, TEST_OFFSET, TEST_LENGTH); // Assert assertNotNull(trans);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create echo request with correct command") void testConstructor() throws Exception { Smb2EchoRequest request = new Smb2EchoRequest(mockConfig); assertNotNull(request); // Verify command is set to SMB2_ECHO (0x000D)Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0)