Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 406 for minimal (7.84 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            @Override
            public String getHeader(String name) {
                if ("Origin".equals(name)) {
                    return originHeader;
                }
                return null;
            }
    
            // Minimal implementations for other required methods
            @Override
            public String getAuthType() {
                return null;
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            assertTrue(str.contains("filename=testfile.txt"), "toString must contain the supplied filename");
        }
    
        @Test
        @DisplayName("writeBytesWireFormat with null path returns minimal bytes")
        void testWriteWhenPathIsNull() {
            // When path is null, Strings.getOEMBytes returns empty array, not NPE
            when(mockConfig.getOemEncoding()).thenReturn("windows-1252");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. CONTRIBUTING.md

    + Respect the original code style: by using the same [codestyle][code-style],
      patches should only highlight the actual difference, not being disturbed by any formatting issues:
      + Only use spaces for indentation.
      + Create minimal diffs - disable on save actions like reformat source code or organize imports.
        If you feel the source code should be reformatted, create a separate PR for this change.
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sat Jun 07 09:55:33 UTC 2025
    - 4.2K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

    class SmbTreeConnectionTraceTest {
    
        // Helper to build a minimal smb URL
        private static URL smbUrl(String spec) {
            try {
                return new URL(null, spec, new Handler());
            } catch (MalformedURLException e) {
                throw new AssertionError("Failed to create SMB URL: " + spec, e);
            }
        }
    
        // Utility to build a minimal locator for connect tests
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/ShareEnumIteratorTest.java

            // Valid share URL with trailing slash; constructing does not perform I/O
            return new SmbFile("smb://test-server/share/");
        }
    
        // Helper to create a minimal FileEntry mock
        private FileEntry entry(String name, int type) {
            FileEntry e = mock(FileEntry.class);
            when(e.getName()).thenReturn(name);
            when(e.getType()).thenReturn(type);
            return e;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top