- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 1,596 for construction (0.06 seconds)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java
@BeforeEach void setUp() { // Create mock objects for the constructor parameters aliasHandle = mock(SamrAliasHandle.class); sids = mock(LsarSidArray.class); } /** * Test method for {@link jcifs.dcerpc.msrpc.MsrpcGetMembersInAlias#MsrpcGetMembersInAlias(SamrAliasHandle, LsarSidArray)}. * Verifies that the constructor correctly initializes the object's fields using reflection for protected members.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java
} /** * Test constructor with O_CREAT flag. */ @Test void testConstructor_CreateAndOpen() { int flags = SmbFile.O_CREAT; smbComOpenAndX = new SmbComOpenAndX(fileName, access, flags, andx); assertEquals(0x11, smbComOpenAndX.openFunction); // OPEN_FN_CREATE | OPEN_FN_OPEN } /** * Test constructor with no special flags. */ @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
import org.junit.jupiter.api.Test; public class InvalidAccessTokenExceptionTest extends UnitFessTestCase { @Test public void test_constructor_withTypeAndMessage() { // Test constructor with type and message String type = "Bearer"; String message = "Invalid access token provided"; InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message);Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0) -
src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java
// Although we cannot directly verify the super constructor call with Mockito for a real class, // we can infer its correct behavior if the object is successfully constructed and its own fields are correct. // The super constructor is called with (domainHandle, 0, acct_flags, null, 0)Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
ByteBuffer buffer = ByteBuffer.allocate(4); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putInt(value); baos.write(buffer.array(), 0, 4); } /** * Test constructor with KERB_CHECKSUM_HMAC_MD5 type. * * @throws IOException if an I/O error occurs * @throws PACDecodingException if the PAC is malformed */ @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/LdapOperationExceptionTest.java
// Test constructor with message only String message = "LDAP operation failed"; LdapOperationException exception = new LdapOperationException(message); assertEquals(message, exception.getMessage()); assertNull(exception.getCause()); } @Test public void test_constructor_withMessageAndCause() { // Test constructor with message and causeCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 8.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java
public void test_constructor_withNullMessage() { // Test constructor with null message ScriptEngineException exception = new ScriptEngineException(null); assertNull(exception.getMessage()); assertNull(exception.getCause()); } @Test public void test_constructor_withNullMessageAndCause() { // Test constructor with null message and null cause
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java
@MethodSource("messages") @DisplayName("Message constructor preserves provided messages, including null/edge cases") void messageConstructor_preservesMessage(String msg) { // Arrange & Act SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException(msg); // Assert assertEquals(msg, ex.getMessage(), "Constructor should preserve the provided message (including null)");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbNamedPipeTest.java
// Creates a minimal valid CIFS context that does not perform I/O by itself private CIFSContext ctx() { return SingletonContext.getInstance(); } @Nested @DisplayName("Constructor behavior") class ConstructorTests { @ParameterizedTest @DisplayName("Accepts IPC$ URLs (happy path)") @ValueSource(strings = { "smb://server/IPC$/foo", "smb://server/IPC$/PIPE/foo" })Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.2K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacGroupTest.java
*/ @Test void testConstructor() { // Verify that the constructor correctly sets the id and attributes assertEquals(mockSid, pacGroup.getId(), "The SID should be correctly set in the constructor."); assertEquals(attributes, pacGroup.getAttributes(), "The attributes should be correctly set in the constructor."); } /** * Test method for {@link jcifs.pac.PacGroup#getId()}. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.5K bytes - Click Count (0)