Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 143 for getClass (1.45 sec)

  1. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            // Load both resources
            try (InputStream is1 = getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest/mappings-default.json")) {
                assertNotNull("Mappings resource should exist", is1);
                mappings = new String(is1.readAllBytes(), StandardCharsets.UTF_8);
            }
    
            try (InputStream is2 = getClass().getClassLoader().getResourceAsStream("suggest_indices/suggest.json")) {
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/admin/suggest/AdminSuggestAction.java

            }
            saveInfo(messages -> messages.addSuccessDeleteDocFromIndex(GLOBAL));
            verifyToken(() -> asHtml(path_AdminSuggest_AdminSuggestJsp).useForm(SuggestForm.class));
            return redirect(getClass());
        }
    
        /**
         * Deletes document-based suggest words from the suggest index.
         *
         * @return HTML response redirecting to the index page
         */
        @Execute
        @Secured({ ROLE })
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/lang/FieldUtilTest.java

            final Field field = getClass().getField("objectField");
            final Integer testData = Integer.valueOf(123);
            FieldUtil.set(field, this, testData);
            assertThat((Integer) FieldUtil.get(field, this), is(testData));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetIntField() throws Exception {
            final Field field = getClass().getField("intField");
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/MethodUtilTest.java

         */
        @Test
        public void testIsEqualsMethod() throws Exception {
            final Method equalsMethod = ClassUtil.getMethod(getClass(), "equals", Object.class);
            assertThat(MethodUtil.isEqualsMethod(equalsMethod), is(true));
            final Method hashCodeMethod = ClassUtil.getMethod(getClass(), "hashCode");
            assertThat(MethodUtil.isEqualsMethod(hashCodeMethod), is(not(true)));
        }
    
        /**
         *
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

            final String contentType = MimeTypeUtil.guessContentType(path);
            assertEquals("text/html", contentType);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetFromStream_gif() throws Exception {
            final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/ccc.gif";
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

        public void testGetField_EmptyName() throws Exception {
            ClassUtil.getField(getClass(), "");
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = EmptyArgumentException.class)
        public void testGetMethod_EmptyName() throws Exception {
            ClassUtil.getMethod(getClass(), "");
        }
    
        /**
         *
         */
        @Test
        public void testGetPrimitiveClass() {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/BaseTest.java

     */
    @ExtendWith(MockitoExtension.class)
    public abstract class BaseTest {
    
        protected final Logger logger = LoggerFactory.getLogger(getClass());
    
        @BeforeEach
        void baseSetUp() {
            // Common setup for all tests
            logger.debug("Setting up test: {}", getClass().getSimpleName());
        }
    
        /**
         * Create a test byte array with specified size and pattern
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

        }
    
        // --- reflection helpers --------------------------------------------
        private static Object getField(Object target, String name) {
            try {
                var f = target.getClass().getDeclaredField(name);
                f.setAccessible(true);
                return f.get(target);
            } catch (Exception e) {
                fail("access field " + name, e);
                return null;
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/log/LoggerTest.java

        public ExpectedException exception = ExpectedException.none();
    
        private final Logger logger = Logger.getLogger(getClass());
    
        /**
         * @throws Exception
         */
        @Test
        public void testGetLogger() throws Exception {
            assertThat(Logger.getLogger(getClass()), is(sameInstance(Logger.getLogger(getClass()))));
        }
    
        /**
         * @throws Exception
         */
        @Test
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java

            final ClassLoader context = Thread.currentThread().getContextClassLoader();
            try {
                final ClassLoader cl = new URLClassLoader(new URL[0], getClass().getClassLoader());
                Thread.currentThread().setContextClassLoader(cl);
                assertThat(ClassLoaderUtil.getClassLoader(TestCase.class), is(sameInstance(cl)));
            } finally {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top