Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for testLeak (0.04 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureLeakTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Tests for {@link ClosingFuture} leaks. */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class ClosingFutureLeakTest extends TestCase {
      public void testLeak() {
        TestCloseable closeable = new TestCloseable("closeable");
        awaitClear(leakClosingFuture(closeable));
        assertThat(closeable.awaitClosed()).isTrue();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ClosingFutureLeakTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /** Tests for {@link ClosingFuture} leaks. */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class ClosingFutureLeakTest extends TestCase {
      public void testLeak() {
        TestCloseable closeable = new TestCloseable("closeable");
        awaitClear(leakClosingFuture(closeable));
        assertThat(closeable.awaitClosed()).isTrue();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/validation/CronExpressionTest.java

        }
    
        // Test validation with valid cron expressions
        @Test
        public void test_validCronExpressions() {
            TestBean bean = new TestBean();
    
            // Test null value (should be valid)
            bean.setCronExpression(null);
            Set<ConstraintViolation<TestBean>> violations = validator.validate(bean);
            assertTrue(violations.isEmpty());
    
            // Test empty string (should be valid)
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/it/admin/SchedulerTests.java

            final Map<String, Object> updateMap = new HashMap<>();
            updateMap.put("target", "new_target");
            return updateMap;
        }
    
        @Test
        void crudTest() {
            testCreate();
            testRead();
            testUpdate();
            testDelete();
        }
    
        @Test
        void testStartJob_notFound() {
            // Try to start a non-existent job
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTester.java

        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testRead() throws IOException {
        byte[] readBytes = source.read();
        assertExpectedBytes(readBytes);
      }
    
      public void testCopyTo_outputStream() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testRead() throws IOException {
        byte[] readBytes = source.read();
        assertExpectedBytes(readBytes);
      }
    
      public void testCopyTo_outputStream() throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 8.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(LONG_MANY_VALUES_STATS_ITERATOR.count()).isEqualTo(LONG_MANY_VALUES_COUNT);
        assertThat(LONG_MANY_VALUES_STATS_SNAPSHOT.count()).isEqualTo(LONG_MANY_VALUES_COUNT);
      }
    
      public void testMean() {
        assertThrows(IllegalStateException.class, EMPTY_STATS_VARARGS::mean);
        assertThrows(IllegalStateException.class, EMPTY_STATS_ITERABLE::mean);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 33.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testMean() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.mean());
        assertThrows(IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.mean());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        }
        // Should overflow without throwing.
        accumulator.addAll(accumulator.snapshot());
        assertThat(accumulator.count()).isLessThan(0L);
      }
    
      public void testMean() {
        assertThrows(IllegalStateException.class, () -> emptyAccumulator.mean());
        assertThrows(IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyIterable.mean());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
Back to Top