Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 248 for TearDown (0.13 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/FileOperatorTest.kt

      private var randomAccessFile: RandomAccessFile? = null
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
        randomAccessFile = RandomAccessFile(file, "rw")
      }
    
      @AfterEach
      fun tearDown() {
        randomAccessFile!!.close()
      }
    
      @Test
      fun read() {
        write("Hello, World".encodeUtf8())
        val operator =
          FileOperator(
            randomAccessFile!!.getChannel(),
          )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

    import org.junit.Test;
    
    /**
     * Test class for ContentCache.
     * Tests memory-based and file-based content caching.
     */
    public class ContentCacheTest {
    
        private File tempFile;
    
        @After
        public void tearDown() {
            if (tempFile != null && tempFile.exists()) {
                tempFile.delete();
            }
        }
    
        @Test
        public void testMemoryBasedCacheConstructor() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. mockwebserver/README.md

      // Shut down the server. Instances cannot be reused.
      server.close()
    }
    ```
    
    Your unit tests might move the `server` into a field so you can shut it down
    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    You can set a custom body with a string, input stream or byte array. Also
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:40:52 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            secureRandom = new SecureRandom();
            preauthService = new PreauthIntegrityService(secureRandom, PreauthIntegrityService.HASH_ALGO_SHA512, true);
        }
    
        @AfterEach
        public void tearDown() {
            if (preauthService != null) {
                preauthService.cleanup();
            }
        }
    
        @Test
        @DisplayName("Test preauth salt generation")
        public void testPreauthSaltGeneration() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java

            lenient().when(mockConfig.getWitnessReconnectDelay()).thenReturn(1000L);
            lenient().when(mockConfig.isWitnessServiceDiscovery()).thenReturn(true);
        }
    
        @AfterEach
        void tearDown() {
            if (mockService != null) {
                mockService.close();
            }
        }
    
        @Test
        void testMockServiceLifecycle() throws Exception {
            assertNotNull(mockService.getAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java

        }
    
        @Override
        public void tearDown() throws Exception {
            if (tempDir != null && tempDir.exists()) {
                deleteDirectory(tempDir);
            }
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    
        private void deleteDirectory(File dir) {
            if (dir.isDirectory()) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

      @RegisterExtension
      var platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      @StartStop
      private val server = MockWebServer()
    
      @AfterEach fun tearDown() {
        ProxySelector.setDefault(DEFAULT_PROXY_SELECTOR)
        CookieManager.setDefault(DEFAULT_COOKIE_HANDLER)
        ResponseCache.setDefault(DEFAULT_RESPONSE_CACHE)
      }
    
      @Test fun durationDefaults() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  8. okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt

      private var serverSocket: ServerSocket? = null
    
      @BeforeEach fun setUp() {
        executorService = Executors.newCachedThreadPool(threadFactory("HandshakeCertificatesTest"))
      }
    
      @AfterEach fun tearDown() {
        executorService.shutdown()
        serverSocket?.closeQuietly()
      }
    
      @Test fun clientAndServer() {
        platform.assumeNotConscrypt()
        platform.assumeNotBouncyCastle()
    
        val clientRoot =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        // Create a latch and a future that waits on the latch.
        latch = new CountDownLatch(1);
        future = createListenableFuture(Boolean.TRUE, null, latch);
      }
    
      @Override
      protected void tearDown() throws Exception {
    
        // Make sure we have no waiting threads.
        latch.countDown();
      }
    
      /** Constructs a listenable future with a value available after the latch has counted down. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/job/PythonJobTest.java

            ComponentUtil.register(testServletContext, ServletContext.class.getCanonicalName());
        }
    
        @Override
        public void tearDown() throws Exception {
            ComponentUtil.setFessConfig(null);
            super.tearDown();
        }
    
        // Test filename setter
        public void test_filename() {
            assertNull(pythonJob.filename);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top