Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_throwAndCatch (0.06 sec)

  1. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            assertEquals(middleCause, topException.getCause());
            assertEquals(rootCause, topException.getCause().getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String componentName = "cacheManager";
            try {
                throw new ContainerNotAvailableException(componentName);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java

            assertTrue(exception instanceof RuntimeException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedType = "OAuth";
            String expectedMessage = "OAuth token is invalid";
    
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            assertEquals(original.getCause().getClass(), deserialized.getCause().getClass());
        }
    
        /**
         * Test throwing and catching the exception
         */
        public void test_throwAndCatch() {
            try {
                throw new CrawlerSystemException("Test throw");
            } catch (CrawlerSystemException e) {
                assertEquals("Test throw", e.getMessage());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
Back to top