- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 112 for testConstructor (0.79 sec)
-
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
when(mockConfig.getMaximumBufferSize()).thenReturn(65536); } @Test @DisplayName("Test constructor initializes with config and expectInfoClass") void testConstructor() { byte expectInfoClass = Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO; response = new Smb2QueryDirectoryResponse(mockConfig, expectInfoClass); assertNotNull(response);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
} @Test void testReadNameTrnId() { byte[] src = { (byte) 0xAB, (byte) 0xCD }; assertEquals(0xABCD, NameServicePacket.readNameTrnId(src, 0)); } @Test void testConstructor() { assertTrue(packet.isRecurDesired); assertTrue(packet.isBroadcast); assertEquals(1, packet.questionCount); assertEquals(NameServicePacket.IN, packet.questionClass);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlRequestTest.java
import org.junit.Test; /** * Test class for CurlRequest. * Tests the fluent API, parameter handling, and request configuration. */ public class CurlRequestTest { @Test public void testConstructor() { String url = "https://example.com"; CurlRequest request = new CurlRequest(Method.GET, url); assertEquals(Method.GET, request.method()); assertEquals("UTF-8", request.encoding());Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create request with all parameters") void testConstructor() { byte[] buffer = new byte[1024]; Smb2ReadRequest readRequest = new Smb2ReadRequest(mockConfig, testFileId, buffer, 100); assertNotNull(readRequest);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
when(mockConfig.getSendBufferSize()).thenReturn(65536); when(mockContext.getConfig()).thenReturn(mockConfig); } @Test @DisplayName("Should create response with configuration") void testConstructor() { // When Smb2NegotiateResponse resp = new Smb2NegotiateResponse(mockConfig); // Then assertNotNull(resp); assertTrue(resp instanceof ServerMessageBlock2Response);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
@BeforeEach void setUp() { mockConfig = mock(Configuration.class); } @Test @DisplayName("Test constructor initializes with config and info type/class") void testConstructor() { byte infoType = Smb2Constants.SMB2_0_INFO_FILE; byte infoClass = FileInformation.FILE_INTERNAL_INFO; response = new Smb2QueryInfoResponse(mockConfig, infoType, infoClass);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
mockConfig = new BaseConfiguration(false); response = new NetServerEnum2Response(mockConfig); } @Test @DisplayName("Test constructor with configuration") void testConstructor() { assertNotNull(response); // Response is successfully created with configuration assertTrue(response instanceof NetServerEnum2Response); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
encryptionContext = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey); } @Test @DisplayName("Should create encryption context with valid parameters") void testConstructor() { // When Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey); // Then
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/normalizer/FullWidthToHalfWidthAlphabetNormalizerTest.java
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import org.junit.Test; public class FullWidthToHalfWidthAlphabetNormalizerTest { @Test public void test_constructor() throws Exception { FullWidthToHalfWidthAlphabetNormalizer normalizer = new FullWidthToHalfWidthAlphabetNormalizer(); assertNotNull(normalizer); } @TestRegistered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 17 14:23:01 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/contents/querylog/QueryLogTest.java
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import org.junit.Test; public class QueryLogTest { @Test public void test_constructor() throws Exception { QueryLog queryLog = new QueryLog("test query", "test filter"); assertNotNull(queryLog); assertEquals("test query", queryLog.getQueryString());Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Thu Nov 13 00:40:54 UTC 2025 - 3.4K bytes - Viewed (0)