Search Options

Results per page
Sort
Preferred Languages
Advance

Results 751 - 760 of 3,054 for throws (0.19 sec)

  1. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        void finalize_logsWhenNotClosed() throws Throwable {
            when(cfg.isTraceResourceUsage()).thenReturn(true); // exercise backtrace branch
            stubValidTree(2L, true, true);
            SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, 1, tree, "//host/share", 0, 0, 0, 0, 0L);
            // Calling finalize directly to execute the logic; should not throw
            h.finalize();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/lang/ThreadUtilTest.java

     *
     */
    public class ThreadUtilTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void test_sleep() throws Exception {
            ThreadUtil.sleep(1L);
            assertTrue(true);
            ThreadUtil.sleepQuietly(1L);
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void test_sleepQuietly() throws Exception {
            ThreadUtil.sleepQuietly(1L);
            assertTrue(true);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java

    /**
     * @author shinsuke
     *
     */
    public class FtpClientTest extends PlainTestCase {
        private static final int FTP_PORT = 10021;
    
        public FtpClient ftpClient;
    
        @Override
        protected void setUp() throws Exception {
            super.setUp();
            StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("mimeTypeHelper", MimeTypeHelperImpl.class)//
                    .singleton("ftpClient", FtpClient.class);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 18K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/HandlerTest.java

        }
    
        @Test
        @DisplayName("openConnection throws NPE for null URL")
        void testOpenConnectionWithNullUrl() {
            // Act & Assert
            assertThrows(NullPointerException.class, () -> handler.openConnection(null));
        }
    
        @Test
        @DisplayName("URL created with handler parses SMB URL correctly")
        void testUrlCreationWithHandler() throws Exception {
            // Act - Create various SMB URLs using the handler
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/BigIntegerMath.java

        }
        throw new AssertionError();
      }
    
      private static final double LN_10 = Math.log(10);
      private static final double LN_2 = Math.log(2);
    
      /**
       * Returns the square root of {@code x}, rounded with the specified rounding mode.
       *
       * @throws IllegalArgumentException if {@code x < 0}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/PacTest.java

            byte[] pacData = baos.toByteArray();
    
            // This currently throws ArrayIndexOutOfBoundsException
            // but should be wrapped in PACDecodingException
            assertThrows(Exception.class, () -> new Pac(pacData, keys));
        }
    
        @Test
        void testZeroBufferCount() throws IOException {
            // Test PAC with zero buffers (missing required buffers)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java

            } else {
                // Windows
                return scriptFile.getAbsolutePath() + " $INPUT_FILE";
            }
        }
    
        public void test_getText() throws IOException {
            final File scriptFile = createScriptTempFile(3);
            final String content = "TEST";
            final File contentFile = createContentFile(".txt", content.getBytes());
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/LmhostsTest.java

            NbtAddress result = lmhosts.getByName("TEST_HOST", mockContext);
    
            assertNull(result);
        }
    
        @Test
        void testGetByNameWithValidEntry() throws IOException {
            // Create a temporary lmhosts file
            File lmhostsFile = tempDir.resolve("lmhosts").toFile();
            try (FileWriter writer = new FileWriter(lmhostsFile)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            "retry:".encodeUtf8(),
          )
    
        private val CRLF = "\r\n".encodeUtf8()
    
        @Throws(IOException::class)
        private fun BufferedSource.readData(data: Buffer) {
          data.writeByte('\n'.code)
          readFully(data, indexOfElement(CRLF))
          select(options) // Skip the newline bytes.
        }
    
        @Throws(IOException::class)
        private fun BufferedSource.readRetryMs(): Long {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/ModelInterpolator.java

         */
        @Deprecated
        Model interpolate(Model project, Map<String, ?> context) throws ModelInterpolationException;
    
        /**
         * @deprecated Use {@link ModelInterpolator#interpolate(Model, File, ProjectBuilderConfiguration, boolean)} instead.
         */
        @Deprecated
        Model interpolate(Model model, Map<String, ?> context, boolean strict) throws ModelInterpolationException;
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top