Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 785 for EXPECTED (0.18 seconds)

  1. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

                    throw new RuntimeException("Repository error");
                }
            };
    
            try {
                errorHelper.getAvailableArtifacts(ArtifactType.DATA_STORE);
                fail("Expected PluginException");
            } catch (PluginException e) {
                assertTrue(e.getMessage().contains("Failed to access"));
            }
        }
    
        @Test
        public void test_getInstalledArtifacts_unknown() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 22.6K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        /** Awaits the latch and asserts that operation completed in the expected timeframe. */
        final void awaitSuccessfully() {
          awaitLatchUninterruptibly();
          completed.assertCompletionExpected();
          assertEquals(0, getCount());
        }
    
        /**
         * Awaits the latch with a timeout and asserts that operation completed in the expected
         * timeframe.
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/job/CrawlJobTest.java

        private void assertArrayEquals(String[] expected, String[] actual) {
            if (expected == null && actual == null) {
                return;
            }
            if (expected == null || actual == null) {
                fail("Arrays are not equal: one is null");
            }
            assertEquals("Array lengths differ", expected.length, actual.length);
            for (int i = 0; i < expected.length; i++) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        ValueAndCloser<?> valueAndCloser = finishToValueAndCloser(closingFuture);
        try {
          valueAndCloser.get();
          fail();
        } catch (ExecutionException expected) {
          assertThat(expected).hasCauseThat().isSameInstanceAs(exception);
        }
        valueAndCloser.closeAsync();
      }
    
      @Override
      void assertBecomesCanceled(ClosingFuture<?> closingFuture) throws ExecutionException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testReplace_unsupportedPresent() {
        try {
          getMap().replace(k0(), v3());
          fail("Expected UnsupportedOperationException");
        } catch (UnsupportedOperationException expected) {
        } catch (ClassCastException tolerated) {
          // for ClassToInstanceMap
        }
    
        expectUnchanged();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 4K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/io/MoreFilesTest.java

                } catch (FileAlreadyExistsException expected) {
                  // if a file already exists, that's fine... just continue
                }
    
                try {
                  method.delete(dirToDelete);
                } catch (FileSystemException expected) {
                  // the delete method may or may not throw an exception, but if it does that's fine
                  // and expected
                }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  7. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

      }
    
      private static void assertValueAndTypeEquals(Object expected, Object actual) {
        assertEquals(expected, actual);
        assertEquals(expected.getClass(), actual.getClass());
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        private boolean expectCall = false;
        private final CountDownLatch calledCountDown = new CountDownLatch(1);
    
        @Override
        public void run() {
          assertTrue("Listener called before it was expected", expectCall);
          assertFalse("Listener called more than once", wasCalled());
          calledCountDown.countDown();
        }
    
        void expectCall() {
          assertFalse("expectCall is already true", expectCall);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/base/Function.java

     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
     * <p>To use an existing function (say, named {@code function}) in a context where the <i>other
     * type</i> of function is expected, use the method reference {@code function::apply}. A future
     * version of {@code com.google.common.base.Function} will be made to <i>extend</i> {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

                      sink.flush()
                      sleep(100)
                    }
                    fail("Expected connection to be closed")
                  }
                },
            ),
          )
        cancelLater(call, 500)
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          assertEquals(cancelMode == INTERRUPT, Thread.interrupted())
        }
      }
    
      @Test
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
Back to Top