- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 170 for testConstructor (0.12 seconds)
-
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create request with configuration and file ID") void testConstructor() { Smb2WriteRequest writeRequest = new Smb2WriteRequest(mockConfig, testFileId); assertNotNull(writeRequest); assertTrue(writeRequest instanceof ServerMessageBlock2Request);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java
} @Nested @DisplayName("Constructor Tests") class ConstructorTests { @Test @DisplayName("Should create request with all parameters") void testConstructor() { Smb2Lock[] locks = new Smb2Lock[] { new Smb2Lock(0L, 1024L, Smb2Lock.SMB2_LOCKFLAG_SHARED_LOCK) }; Smb2LockRequest lockRequest = new Smb2LockRequest(mockConfig, testFileId, locks);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.3K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.4K bytes - Click Count (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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
public void testPrivateClass() { NullPointerTester tester = new NullPointerTester(); for (Constructor<?> constructor : PrivateClassWithPrivateConstructor.class.getDeclaredConstructors()) { tester.testConstructor(constructor); } } private interface Foo<T> { void doSomething(T bar, Integer baz); } private static class StringFoo implements Foo<String> { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 47.9K bytes - Click Count (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 noneCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.1K bytes - Click Count (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());Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Thu Nov 13 00:40:54 GMT 2025 - 3.4K bytes - Click Count (0)