Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for testable (1.05 sec)

  1. src/test/java/jcifs/MsrpcEnumerateAliasesInDomainTest.java

            // The super constructor is called with (domainHandle, 0, acct_flags, null, 0)
            // We can't directly assert these values on the superclass fields without reflection or a testable superclass.
            // For 100% coverage, we'd need to ensure the superclass constructor is indeed called with these values.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            // This is complex due to the class structure. A better approach would be
            // to refactor SmbFile to be more testable (e.g., dependency injection).
            // For now, we test methods that don't require deep mocks.
            return new SmbFile(url, auth);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/config/BaseConfigurationTest.java

            testConfig.disallowCompound = customDisallow;
    
            testConfig.initDefaults();
    
            assertEquals(customDisallow, testConfig.disallowCompound);
        }
    
        /**
         * Testable subclass that exposes the default constructor
         */
        private static class TestableBaseConfiguration extends BaseConfiguration {
            TestableBaseConfiguration() throws CIFSException {
                super(true);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

            // Initial state
            assertNull(testRule.getRuleId());
    
            // Set rule ID
            testRule.setRuleId("testRule1");
            assertEquals("testRule1", testRule.getRuleId());
    
            // Change rule ID
            testRule.setRuleId("changedRule");
            assertEquals("changedRule", testRule.getRuleId());
    
            // Set null rule ID
            testRule.setRuleId(null);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleManagerTest.java

        }
    
        /**
         * Test rule order preservation
         */
        public void test_ruleOrderPreservation() {
            TestRule rule1 = new TestRule("rule1", false);
            TestRule rule2 = new TestRule("rule2", true);
            TestRule rule3 = new TestRule("rule3", false);
            TestRule rule4 = new TestRule("rule4", true);
    
            ruleManager.addRule(rule1);
            ruleManager.addRule(rule2);
            ruleManager.addRule(rule3);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 23.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/RuleTest.java

            TestResponseProcessor sharedProcessor = new TestResponseProcessor("shared");
    
            TestRule rule1 = new TestRule("rule1", sharedProcessor, true);
            TestRule rule2 = new TestRule("rule2", sharedProcessor, false);
            TestRule rule3 = new TestRule("rule3", sharedProcessor, true);
    
            // Same processor instance
            assertSame(sharedProcessor, rule1.getResponseProcessor());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

        void setUp() {
            // Configure the mock to return the OEM encoding which is required for writeString
            when(mockConfig.getOemEncoding()).thenReturn("windows-1252");
            cmd = new SmbComQueryInformation(mockConfig, "testfile.txt");
        }
    
        @Test
        @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string")
        void testWriteBytesWireFormatHappy() throws UnsupportedEncodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

        }
    
        @Test
        @DisplayName("Test decode with replaceIfExists true")
        void testDecodeWithReplaceIfExistsTrue() throws SMBProtocolDecodingException {
            String originalFileName = "testfile.txt";
            byte[] nameBytes = originalFileName.getBytes(StandardCharsets.UTF_16LE);
    
            byte[] buffer = new byte[100];
            buffer[0] = 1; // replaceIfExists = true
            // Skip 7 reserved bytes (1-7)
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    public class SmbComQueryInformationTest {
    
        private static final String TEST_FILE_NAME = "testFile.txt";
        private SmbComQueryInformation smbComQueryInformation;
    
        @BeforeEach
        public void setUp() {
            smbComQueryInformation = new SmbComQueryInformation(TEST_FILE_NAME);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/collection/LruHashMapTest.java

    import java.util.Iterator;
    
    import org.junit.Test;
    
    /**
     * @author taichi
     */
    public class LruHashMapTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testAll() throws Exception {
            final LruHashMap<String, String> lru = new LruHashMap<String, String>(3);
            lru.put("aaa", "111");
            lru.put("bbb", "222");
            lru.put("ccc", "333");
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top