- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,628 for constructors (0.08 sec)
-
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)");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
s.sub_authority = Arrays.copyOf(subs, subs.length); return s; } @Nested @DisplayName("Basic Constructor and Utility Tests") class BasicTests { @Test @DisplayName("Textual constructor happy path and toString consistency") void testTextualConstructorAndToString() throws Exception { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (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)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java
assertEquals(name, request.getRemoteUser()); verify(mockPrincipal, times(1)).getName(); } @Test @DisplayName("constructor accepts null principal") void testConstructorWithNullPrincipal(@Mock HttpServletRequest mockRequest) { // Constructor accepts null principal without throwing exception NtlmHttpServletRequest request = new NtlmHttpServletRequest(mockRequest, null);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
// We cannot directly access private fields of MsrpcSamrOpenAlias or its superclass // Instead, we verify the interaction with the DcerpcHandle and the return value. // The fact that the constructor completes without exception and sets 'opened' to true // implies the correct parameters were used internally. } @Test void constructor_shouldThrowSmbExceptionOnOpenFailure() throws IOException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.2K bytes - Viewed (0) -
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 }; UniAddress dc = mock(UniAddress.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
HMACT64 hmac = new HMACT64(TEST_KEY); hmac.engineReset(); verify(mockMd5, times(2)).reset(); // Once in constructor, once in reset verify(mockMd5, times(2)).update(any(byte[].class)); // Once in constructor, once in reset } } @Test void testEngineGetDigestLength() throws NoSuchAlgorithmException { // Test engineGetDigestLength()
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvChannelBindingsTest.java
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import org.junit.jupiter.api.Test; class AvChannelBindingsTest { /** * Test that the constructor correctly initializes with a valid channel binding hash. */ @Test void testConstructorWithValidHash() { byte[] testHash = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java
// Test constructor with null message CommandExecutionException exception = new CommandExecutionException(null); assertNotNull(exception); assertNull(exception.getMessage()); assertNull(exception.getCause()); } public void test_constructor_withNullMessageAndCause() { // Test constructor with null message and null cause
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java
// Assert assertSame(handle, got, "getHandle should expose the same instance passed to constructor"); } @Test @DisplayName("close does nothing and does not touch handle") void close_doesNothing() throws Exception { // Arrange SmbPipeOutputStream out = newStream(); // constructor already calls handle.getPipe(); clear interactions to focus on close() clearInvocations(handle);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0)