- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 46 for constructorTest (0.14 seconds)
-
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
import jcifs.smb1.UniAddress; /** * Unit tests for {@link NtlmChallenge}. */ class NtlmChallengeTest { @Nested @DisplayName("Constructor and Field Tests") class ConstructorTests { @Test @DisplayName("Constructor sets fields correctly") void testConstructorSetsFields() { byte[] challenge = new byte[] { 1, 2, 3 };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
void setUp() { response = new Trans2QueryPathInformationResponse(Trans2QueryPathInformationResponse.SMB_QUERY_FILE_BASIC_INFO); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should initialize with SMB_QUERY_FILE_BASIC_INFO level") void testConstructorWithBasicInfo() throws Exception { Trans2QueryPathInformationResponse resp =
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/MimeMapTest.java
assertNotNull(customResult); } } @Nested @DisplayName("Constructor and initialization") class ConstructorTests { @Test @DisplayName("Should create MimeMap instance successfully") void testConstructor() { assertDoesNotThrow(() -> new MimeMap()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
@ExtendWith(MockitoExtension.class) @DisplayName("NdrShort Test Suite") class NdrShortTest { @Mock private NdrBuffer mockBuffer; @Nested @DisplayName("Constructor Tests") class ConstructorTests { @ParameterizedTest @DisplayName("Should mask input values with 0xFF correctly") @ValueSource(ints = { 0, 1, 127, 128, 255, 256, -1, -128, -255, -256, 32767, -32768, 65535, 65536 })Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
private Smb2Lock lock; private byte[] buffer; @BeforeEach void setUp() { buffer = new byte[128]; } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create lock with valid parameters") void testConstructorWithValidParameters() { long offset = 1024L; long length = 2048L;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
import org.junit.jupiter.api.Test; /** * Unit tests for TransportException class */ public class TransportExceptionTest { @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create exception with no arguments") void testDefaultConstructor() { TransportException exception = new TransportException();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java
when(mockContext.getConfig()).thenReturn(mockConfig); echoRequest = new Smb2EchoRequest(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create echo request with correct command") void testConstructor() throws Exception { Smb2EchoRequest request = new Smb2EchoRequest(mockConfig);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.3K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbFileTest.java
public void setUp() { // Static mocks or initializations can be done here if necessary // For now, we rely on instance mocks provided by MockitoExtension } @Nested class ConstructorTests { @Test public void testConstructorWithValidUrl() throws MalformedURLException { // Test basic constructor with a valid SMB URL String url = "smb1://server/share/file.txt";
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java
void setUp() { MockitoAnnotations.openMocks(this); testRequest = new TestServerMessageBlock2Request(mockConfig); } @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create request with configuration only") void testConstructorWithConfig() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.7K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
private static final byte[] NODE = { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF }; @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Constructor with rpc.uuid_t should copy all fields correctly") void testConstructorWithRpcUuidT() { // Arrange
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.2K bytes - Click Count (0)