Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 3,743 for shield (0.04 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                assertNotNull(bindWithParams, "Constructor should create instance");
                assertEquals(0, bindWithParams.getOpnum(), "Opnum should be 0");
                assertEquals(11, bindWithParams.getPtype(), "Ptype should be 11 for bind message");
                assertEquals(DcerpcConstants.DCERPC_FIRST_FRAG | DcerpcConstants.DCERPC_LAST_FRAG, bindWithParams.getFlags(),
                        "Flags should be set for first and last fragment");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SMBSignatureValidationExceptionTest.java

            assertNull(ex.getMessage(), "Default ctor should not set a message");
            assertNull(ex.getCause(), "Default ctor should not set a cause");
            assertTrue(ex instanceof SmbException, "Should be an SmbException subtype");
            // SmbException default ctor leaves status 0, which equals NT_STATUS_SUCCESS
            assertEquals(NtStatus.NT_STATUS_SUCCESS, ex.getNtStatus(), "Default status should be success (0)");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/https/HandlerTest.java

                var field = Handler.class.getField("DEFAULT_HTTPS_PORT");
    
                // Then
                assertTrue(Modifier.isPublic(field.getModifiers()));
                assertTrue(Modifier.isStatic(field.getModifiers()));
                assertTrue(Modifier.isFinal(field.getModifiers()));
                assertEquals(int.class, field.getType());
            }
        }
    
        @Nested
        @DisplayName("Integration Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessJsonResourceProviderTest.java

            assertNotNull("Mapping option should not be null", mappingOption);
            OptionalThing<JsonFieldNaming> fieldNamingOpt = mappingOption.getFieldNaming();
            assertTrue("Field naming should be present", fieldNamingOpt.isPresent());
            assertEquals("Field naming should be CAMEL_TO_LOWER_SNAKE", JsonFieldNaming.CAMEL_TO_LOWER_SNAKE, fieldNamingOpt.get());
        }
    
        public void test_instanceCreation() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

            }
    
            @Test
            @DisplayName("Should handle null data buffer in verify method")
            void testVerifyNullDataBuffer() {
                boolean result = digest.verify(null, 0, 100, 0, response);
                assertFalse(result, "Should return false for null data buffer");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            // Set max_recv field using reflection (default is 4280 in parent class)
            Field maxRecvField = DcerpcHandle.class.getDeclaredField("max_recv");
            maxRecvField.setAccessible(true);
            maxRecvField.set(handle, 4280);
    
            // Inject mocks using reflection
            Field pipeField = DcerpcPipeHandle.class.getDeclaredField("pipe");
            pipeField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            );
        }
    
        // Helper methods
    
        private void setPrivateField(Object target, String fieldName, Object value) throws Exception {
            Field field = target.getClass().getDeclaredField(fieldName);
            field.setAccessible(true);
            field.set(target, value);
        }
    
        private void setResponseAsReceived(Smb2NegotiateResponse resp) throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java

            assertEquals(testMessage, exception.getMessage(), "The exception message should match the input message.");
        }
    
        /**
         * Test the NO_NULL_REF static field.
         * Ensures that the static field holds the expected string value.
         */
        @Test
        void testNoNullRefConstant() {
            assertNotNull(NdrException.NO_NULL_REF, "NO_NULL_REF constant should not be null.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // When: Request with different port
            SmbTransportImpl second = testPool.getSmbTransport(ctx, address, 139, false);
    
            // Then: Should create new connection for different port
            assertNotSame(first, second, "Should create new connection for different port");
        }
    
        @Test
        @DisplayName("Should not reuse connection when session limit reached")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/msrpc/MsrpcGetMembersInAliasTest.java

            // Assert that the public 'sids' field is initialized as expected
            assertEquals(sids, request.sids, "The 'sids' field should be initialized by the constructor.");
    
            // Use reflection to access and verify protected fields from the parent class DcerpcMessage
            Field ptypeField = DcerpcMessage.class.getDeclaredField("ptype");
            ptypeField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top