- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 967 for inrange (0.04 sec)
-
src/test/java/jcifs/smb/NtlmUtilTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
@MethodSource("hexCases") @DisplayName("toString() renders lower-case hex with zero-padding") void toString_rendersHex(byte[] input, String expected) { // Arrange SecurityBlob blob = new SecurityBlob(input); // Act String actual = blob.toString(); // Assert assertEquals(expected, actual, "Hex string should match expected format");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java
// Arrange CIFSContext ctx = mock(CIFSContext.class); SmbTreeConnectionTrace trace = new SmbTreeConnectionTrace(ctx); // Act & Assert assertEquals(-1L, trace.getTreeId()); } @Test @DisplayName("getConfig(): delegates to context") void getConfig_delegatesToContext() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrAliasHandleTest.java
@BeforeEach void setUp() { MockitoAnnotations.openMocks(this); } @Test void constructor_shouldOpenAliasSuccessfully() throws IOException { // Arrange int access = 1; int rid = 100; // Mock the behavior of sendrecv for MsrpcSamrOpenAlias doAnswer(invocation -> { MsrpcSamrOpenAlias rpc = invocation.getArgument(0);
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/dcerpc/msrpc/MsrpcSamrConnect2Test.java
// Arrange SamrPolicyHandle ph = createMockPolicyHandle(); // Act & Assert assertDoesNotThrow(() -> new MsrpcSamrConnect2(null, 0, ph)); } @Test @DisplayName("should accept negative access mask values") void testNegativeAccessMaskAccepted() { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeInternalTest.java
verify(tree).connectLogon(null); } @Test @DisplayName("connectLogon propagates SmbException from implementation") void connectLogon_throws_propagates() throws Exception { // Arrange doThrow(new SmbException("login failed")).when(tree).connectLogon(context); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> tree.connectLogon(context));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
@MethodSource("invalidShareEnumCases") void doShareEnum_invalidPath_throws(String url, String pathSuffix, boolean expectDirSlashMsg) throws Exception { // Arrange SmbFile parent = new SmbFile(url); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
@BeforeEach void setUp() { // Setup is handled by MockitoExtension } @Test void constructor_shouldOpenPolicySuccessfully() throws IOException { // Arrange String server = "testServer"; int access = 123; // Mock the behavior of sendrecv for MsrpcLsarOpenPolicy2 doAnswer(invocation -> {
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/pac/kerberos/KerberosApRequestTest.java
return new DERSequence(v); } @Test @DisplayName("byte[] ctor: empty token throws PACDecodingException with clear message") void byteArrayConstructor_emptyToken_throws() { // Arrange byte[] empty = new byte[0]; // Act + Assert PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(empty, new KerberosKey[0]));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
void setUp() { // MockitoAnnotations.openMocks(this); // Not needed with @ExtendWith(MockitoExtension.class) } @Test void constructor_shouldOpenPolicySuccessfully() throws IOException { // Arrange String server = "testServer"; int access = 123; // Mock the behavior of sendrecv for MsrpcLsarOpenPolicy2 doAnswer(invocation -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0)