Search Options

Results per page
Sort
Preferred Languages
Advance

Results 641 - 650 of 667 for assertNotNull (0.05 sec)

  1. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

                assertEquals(origin, handler.getLastOrigin());
            }
        }
    
        // Test constructor
        public void test_constructor() {
            CorsFilter filter = new CorsFilter();
            assertNotNull(filter);
        }
    
        // Test OPTIONS constant
        public void test_optionsConstant() {
            assertEquals("OPTIONS", CorsFilter.OPTIONS);
        }
    
        // Helper classes for testing
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                SystemUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
            } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
                fail("Should be able to access private constructor: " + e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/mylasta/action/FessHtmlPathTest.java

                    if (field.getType().equals(HtmlNext.class)) {
                        Object value = field.get(null);
                        assertNotNull("Field " + field.getName() + " should not be null", value);
                        assertTrue("Field " + field.getName() + " should be HtmlNext instance", value instanceof HtmlNext);
                    }
                }
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigImplTest.java

                invalidConfig.get("some.property");
                fail("Should throw exception for non-existent property");
            } catch (ConfigPropertyNotFoundException e) {
                // Expected exception
                assertNotNull(e);
            }
        }
    
        // Test special characters in property values
        public void test_get_specialCharacters() {
            String testKey = "special.chars";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

            User loadedUser = createTestUser("loadeduser", "Loaded User");
            chain.loadResult = loadedUser;
    
            User result = chain.load(inputUser);
    
            assertNotNull(result);
            assertEquals(loadedUser, result);
            assertEquals(1, chain.loadCalls.size());
            assertEquals(inputUser, chain.loadCalls.get(0));
        }
    
        // Test load with null user
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java

                // Test that constructor is accessible when made accessible
                constructor.setAccessible(true);
                ThreadDumpUtil instance = constructor.newInstance();
                assertNotNull(instance);
    
            } catch (NoSuchMethodException | InstantiationException | IllegalAccessException | InvocationTargetException e) {
                fail("Should be able to access protected constructor: " + e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  7. docs/smb3-features/02-persistent-handles-design.md

            manager.shutdown();
            
            PersistentHandleManager manager2 = new PersistentHandleManager(context);
            HandleInfo recovered = manager2.getHandleForReconnect("/test/file.txt");
            
            assertNotNull(recovered);
            assertEquals(HandleType.PERSISTENT, recovered.type);
            assertArrayEquals(fileId, recovered.fileId);
        }
    }
    ```
    
    ### 8.2 Integration Tests
    ```java
    @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java

                Artifact artifact = new Artifact("invalid-prefix-simple", "1.0.0");
                String result = themeHelper.getThemeName(artifact);
                // May not throw exception but return unexpected result
                assertNotNull(result);
            } catch (Exception e) {
                assertTrue(true); // Expected exception
            }
        }
    
        public void test_getJarFile_exists() throws IOException {
            // Create a mock jar file
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/script/ScriptEngineTest.java

            String template = "return object";
            Map<String, Object> paramMap = new HashMap<>();
    
            Object result = scriptEngine.evaluate(template, paramMap);
            assertNotNull(result);
            assertTrue(result instanceof TestUser);
            assertEquals("TestUser", ((TestUser) result).name);
        }
    
        // Test evaluate method with error handling
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. docs/smb3-features/06-witness-protocol-design.md

        WitnessRegistration registration = new WitnessRegistration(
            "\\\\server\\share", 
            InetAddress.getByName("192.168.1.100"),
            WitnessServiceType.FILE_SERVER_WITNESS
        );
        
        assertNotNull(registration.getRegistrationId());
        assertEquals(WitnessRegistrationState.REGISTERING, registration.getState());
        assertFalse(registration.isExpired(60000));
        
        // Test sequence numbers
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
Back to top