- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 878 for Verify (0.04 sec)
-
src/test/java/jcifs/dcerpc/msrpc/MsrpcLsarOpenPolicy2Test.java
MsrpcLsarOpenPolicy2 msrpcLsarOpenPolicy2 = new MsrpcLsarOpenPolicy2(server, access, mockPolicyHandle); // Then // Verify that the super constructor is called with correct arguments // Note: Directly verifying super constructor calls is not straightforward in JUnit/Mockito. // We verify the effects of the super constructor by checking the fields of the created object. // Assert object_attributes fields
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
assertNotNull(out); assertTrue(out.length > 0); // Verify interactions: flags and an empty optimistic token are used verify(this.mechContext, times(1)).getFlags(); ArgumentCaptor<byte[]> cap = ArgumentCaptor.forClass(byte[].class); verify(this.mechContext, times(1)).initSecContext(cap.capture(), eq(0), eq(0));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
CIFSContext wrappedContext = context.withCredentials(newCreds); assertNotNull(wrappedContext); assertTrue(wrappedContext instanceof CIFSContextCredentialWrapper); // Verify that the new context uses the provided credentials assertEquals(newCreds, wrappedContext.getCredentials()); } @Test void testWithAnonymousCredentials() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
byte[] dest = new byte[5]; int encodedLen = encodable.encode(dest, 0); // Verify encoded length assertEquals(3, encodedLen, "Encoded length should be equal to the specified length"); // Verify content assertArrayEquals(new byte[] { 0x02, 0x03, 0x04, 0x00, 0x00 }, dest, "Encoded bytes should match the expected subset"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.HashMap; import javax.security.auth.Subject; import javax.security.auth.callback.Callback; import javax.security.auth.callback.NameCallback;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/FileNotifyInformationTest.java
class FilterFlagsTests { @Test @DisplayName("Verify FILE_NOTIFY_CHANGE_FILE_NAME constant value") void testFileNotifyChangeFileName() { assertEquals(0x00000001, FileNotifyInformation.FILE_NOTIFY_CHANGE_FILE_NAME); } @Test @DisplayName("Verify FILE_NOTIFY_CHANGE_DIR_NAME constant value") void testFileNotifyChangeDirName() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpFilterTest.java
filter.doFilter(request, response, filterChain); verify(response).setStatus(HttpServletResponse.SC_UNAUTHORIZED); verify(response).setHeader("WWW-Authenticate", "NTLM"); verify(response).addHeader("WWW-Authenticate", "Basic realm=\"TestRealm\""); verify(filterChain, never()).doFilter(any(), any()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/ResolverTypeTest.java
*/ class ResolverTypeTest { /** * Tests that all expected enum constants exist. */ @Test void testEnumConstants() { // Verify that each enum constant exists and can be referenced assertNotNull(ResolverType.RESOLVER_WINS, "RESOLVER_WINS should not be null."); assertNotNull(ResolverType.RESOLVER_BCAST, "RESOLVER_BCAST should not be null.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/CIFSContextTest.java
// Then assertEquals(mockPipe, pipe); verify(mockContext).getPipe(url, pipeType); } @Test @DisplayName("Should close context") void testClose() throws CIFSException { // When mockContext.close(); // Then verify(mockContext).close(); } @Test @DisplayName("Should get Configuration")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0)