Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 167 for minimal (1.05 sec)

  1. src/test/java/jcifs/smb/SmbNamedPipeTest.java

    import jcifs.internal.smb1.com.SmbComNTCreateAndX;
    import jcifs.internal.smb1.com.SmbComNTCreateAndXResponse;
    
    @ExtendWith(MockitoExtension.class)
    class SmbNamedPipeTest {
    
        // Creates a minimal valid CIFS context that does not perform I/O by itself
        private CIFSContext ctx() {
            return SingletonContext.getInstance();
        }
    
        @Nested
        @DisplayName("Constructor behavior")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

                Mockito.when(mock.getServerSignature()).thenReturn(mockServerSig);
                Mockito.when(mock.getKdcSignature()).thenReturn(mockKdcSig);
            })) {
    
                // Create minimal PAC data
                byte[] pacData = createMinimalPacData();
    
                // Test constructor
                KerberosPacAuthData authData = new KerberosPacAuthData(pacData, keys);
                assertNotNull(authData.getPac());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrConnect2Test.java

     * These tests verify that the constructor accepts various parameters
     * without throwing exceptions.
     */
    @ExtendWith(MockitoExtension.class)
    class MsrpcSamrConnect2Test {
    
        // Helper method to create a minimal SamrPolicyHandle instance.
        private static SamrPolicyHandle createMockPolicyHandle() {
            return mock(SamrPolicyHandle.class);
        }
    
        @Nested
        @DisplayName("Constructor parameter handling")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            assertTrue(keywords.size() > 0);
        }
    
        @Test
        public void testCreateBulkLineWithMinimalItem() {
            // Test with minimal SuggestItem
            SuggestItem item = new SuggestItem(new String[] { "minimal" }, new String[0][0], new String[0], 0, // queryFreq
                    0, // docFreq
                    1.0f, // userBoost
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

    import jcifs.internal.util.SMBUtil;
    
    @ExtendWith(MockitoExtension.class)
    class Smb2CreateResponseTest {
    
        // SMB2 header size in bytes
        private static final int SMB2_HEADER_LENGTH = 64;
    
        /**
         * Build a minimal SMB2 header for a response.
         */
        private static byte[] buildSmb2Header() {
            byte[] header = Arrays.copyOf(SMBUtil.SMB2_HEADER, SMBUtil.SMB2_HEADER.length);
            // Mark as server->client response for realism
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NetworkExplorerTest.java

        /**
         * Test doFile method directly - simplified test
         */
        @Test
        void testDoFile() throws Exception {
            initializeNetworkExplorer(false, "jCIFS");
    
            // Setup mock file with minimal required behavior
            String content = "File content for testing";
            byte[] contentBytes = content.getBytes();
    
            when(smbFile.length()).thenReturn((long) contentBytes.length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            SMBUtil.writeInt2(dataOffset, buffer, bufferIndex + 2);
            // Set buffer length
            SMBUtil.writeInt4(104, buffer, bufferIndex + 4); // Minimal FileBothDirectoryInfo
    
            response = spy(response);
            when(response.getHeaderStart()).thenReturn(0);
    
            // Write minimal FileBothDirectoryInfo at dataOffset
            // NextEntryOffset (0 = last entry)
            SMBUtil.writeInt4(0, buffer, dataOffset);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/CredentialsInternalTest.java

                // These methods do not throw and allow interaction checks.
                tc.getConfig();
                tc.getCredentials();
    
                // Minimal behavior: return a mock SSPContext with lenient stubbing
                SSPContext ctx = mock(SSPContext.class);
                lenient().when(ctx.isEstablished()).thenReturn(false);
                return ctx;
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

    class Kerb5AuthenticatorTest {
    
        @Mock
        CIFSContext tc;
    
        @Mock
        Configuration config;
    
        private static byte[] spnegoInitWithMechs(ASN1ObjectIdentifier... mechs) {
            // Build a minimal SPNEGO NegTokenInit containing the provided mechanisms
            NegTokenInit tok = new NegTokenInit(mechs, 0, null, null);
            return tok.toByteArray();
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

        }
    
        @Test
        void readBodyWireFormat_shouldDelegateToReadResourceRecordWireFormat() throws Exception {
            // Prepare test data with minimal valid resource record
            byte[] src = new byte[100];
            int srcIndex = 10;
    
            // Set up a minimal resource record response
            // Name pointer (0xC00C)
            src[srcIndex] = (byte) 0xC0;
            src[srcIndex + 1] = 0x0C;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top