Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 2,205 for exceptions (0.07 sec)

  1. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Writer;
    import java.net.URL;
    import java.util.Properties;
    
    import org.codelibs.core.exception.IORuntimeException;
    import org.codelibs.core.exception.NullArgumentException;
    import org.codelibs.core.net.URLUtil;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    import org.junit.rules.TemporaryFolder;
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        assertEquals(null, getResponse(methodName).getResult());
      }
    
      /**
       * Asserts that a prior call that had caused this thread to block or wait has since returned the
       * expected boolean value.
       */
      public void assertPriorCallReturns(boolean expected, @Nullable String methodName)
          throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacUnicodeStringTest.java

            PACDecodingException exception = assertThrows(PACDecodingException.class, () -> {
                pacString.check(testString);
            }, "A PACDecodingException should be thrown for a non-empty string with a zero pointer.");
    
            // Verify the exception message
            assertEquals("Non-empty string", exception.getMessage(), "The exception message is not correct.");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

      public void setUp() throws IOException {
        rootDir = createTempDir();
      }
    
      public void testFileTraverser_emptyDirectory() throws Exception {
        assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
      }
    
      public void testFileTraverser_nonExistingFile() throws Exception {
        File file = new File(rootDir, "file-that-doesnt-exist");
    
        assertThat(Files.fileTraverser().breadthFirst(file)).containsExactly(file);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

          throws Exception {
        try {
          future.get();
          fail("Expected ExecutionException");
        } catch (ExecutionException e) {
          assertThat(e).hasCauseThat().isSameInstanceAs(expectedCause);
        }
      }
    
      /** invokeAny(null) throws NPE */
      public void testInvokeAnyImpl_nullTasks() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbCopyUtilTest.java

        }
    
        // --- Tests for copyFile exception handling branch ---
    
        @Nested
        class CopyFileExceptions {
    
            private SmbTreeHandleImpl newTreeHandle(boolean isSmb2) throws Exception {
                SmbTreeHandleImpl th = mock(SmbTreeHandleImpl.class);
                lenient().when(th.isSMB2()).thenReturn(isSmb2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

         * @throws Exception
         */
        @Test
        public void testCopy_mapToNewBean() throws Exception {
            final BeanMap src = new BeanMap();
            src.put("aaa", "aaa");
            final MyBean dest = BeanUtil.copyMapToNewBean(src, MyBean.class);
            assertThat(dest.aaa, is("aaa"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testCopy_mapToNewMap() throws Exception {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertNotNull(exception);
            assertEquals(SmbOperationException.ErrorCode.FILE_NOT_FOUND, exception.getErrorCode());
            assertTrue(exception.getMessage().contains("FILE_NOT_FOUND"));
            assertTrue(exception.getMessage().contains("test.txt"));
            assertEquals(SmbOperationException.ErrorCategory.FILE_SYSTEM, exception.getErrorCategory());
            assertFalse(exception.isRetryable());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

        void handlesNullDirectory() throws Exception {
            SmbFilenameFilter filter = (dir, name) -> dir == null;
    
            boolean result = filter.accept(null, "anything");
    
            assertTrue(result, "Filter should accept when dir is null as defined");
        }
    
        /**
         * Exception flow: filter throws SmbException and it propagates to caller.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

            }
    
            ContentNotFoundException exception = new ContentNotFoundException(longParentUrl.toString(), longUrl.toString());
    
            assertNotNull(exception);
            assertTrue(exception.getMessage().startsWith("Not Found: http://example.com/"));
            assertTrue(exception.getMessage().contains("Parent: http://example.com/"));
            assertNull(exception.getCause());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top