Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 160 for tearDown (0.22 sec)

  1. okhttp/src/test/java/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(),
          )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

            // TODO set up opensearch and dictionaryManager
            synonymFile = new SynonymFile("1", file1.getAbsolutePath(), new Date());
        }
    
        @Override
        public void tearDown() throws Exception {
            file1.delete();
        }
        */
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            synonymFile = new SynonymFile("1", "dummy", new Date());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

      private val metadata: ByteString = "great metadata!".encodeUtf8()
      private lateinit var file: File
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
      }
    
      @AfterEach
      fun tearDown() {
        executor.shutdown()
      }
    
      @Test
      fun singleSource() {
        val upstream = Buffer()
        upstream.writeUtf8("abcdefghijklm")
        val relay = edit(file, upstream, metadata, 1024)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

                    "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3"
                            .getBytes(Constants.UTF_8));
        }
    
        @Override
        protected void tearDown() throws Exception {
            file1.delete();
        }
        */
    
        @Override
        public void setUp() throws Exception {
            super.setUp();
            kuromojiFile = new KuromojiFile("1", "dummy", new Date());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/it/CrudTestBase.java

        protected static void initAll() {
            RestAssured.baseURI = getFessUrl();
            settingTestToken();
        }
    
        @BeforeEach
        protected void init() {
        }
    
        @AfterEach
        protected void tearDown() {
            final Map<String, Object> searchBody = createSearchBody(SEARCH_ALL_NUM);
            int count = 0;
            List<String> idList = getIdList(searchBody);
            while (idList.size() > 0 && count < NUM) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java

        tearDownStack.addTearDown(thread1 = new TestThread<>(monitor, "TestThread #1"));
        tearDownStack.addTearDown(thread2 = new TestThread<>(monitor, "TestThread #2"));
      }
    
      @Override
      protected final void tearDown() {
        tearDownStack.runTearDown();
      }
    
      private String enter() {
        return interruptible ? "enterInterruptibly" : "enter";
      }
    
      private String tryEnter() {
        return "tryEnter";
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        if (hung) {
          assertEquals(expectedOutcome, Outcome.HANG);
        } else {
          assertNull(task.get(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
        }
      }
    
      @Override
      protected void tearDown() throws Exception {
        // We don't want to leave stray threads running after each test. At this point, every thread
        // launched by this test is either:
        //
        // (a) Blocked attempting to enter the monitor.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 26.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        if (hung) {
          assertEquals(expectedOutcome, Outcome.HANG);
        } else {
          assertNull(task.get(UNEXPECTED_HANG_DELAY_MILLIS, TimeUnit.MILLISECONDS));
        }
      }
    
      @Override
      protected void tearDown() throws Exception {
        // We don't want to leave stray threads running after each test. At this point, every thread
        // launched by this test is either:
        //
        // (a) Blocked attempting to enter the monitor.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
  9. maven-api-impl/src/test/java/org/apache/maven/internal/impl/DefaultSettingsValidatorTest.java

    class DefaultSettingsValidatorTest {
    
        private SettingsBuilder validator;
    
        @BeforeEach
        void setUp() throws Exception {
            validator = new DefaultSettingsBuilder();
        }
    
        @AfterEach
        void tearDown() throws Exception {
            validator = null;
        }
    
        private void assertContains(String msg, String substring) {
            assertTrue(msg.contains(substring), "\"" + substring + "\" was not found in: " + msg);
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       defined this way, but enough to live with.
     *   <li>If you override {@link #setUp} or {@link #tearDown}, make sure to invoke {@code
     *       super.setUp} and {@code super.tearDown} within them. These methods are used to clear and
     *       check for thread assertion failures.
     *   <li>All delays and timeouts must use one of the constants {@code SHORT_DELAY_MS}, {@code
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
Back to top