- Sort Score
- Num 10 results
- Language All
Results 51 - 60 of 3,282 for throwIt (0.04 seconds)
-
guava/src/com/google/common/util/concurrent/Service.java
* * @param timeout the maximum time to wait * @throws TimeoutException if the service has not reached the given state within the deadline * @throws IllegalStateException if the service {@linkplain State#FAILED fails}. * @since 28.0 */ default void awaitTerminated(Duration timeout) throws TimeoutException { awaitTerminated(toNanosSaturated(timeout), TimeUnit.NANOSECONDS); } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 12.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
public void testToString_misbehaving() throws Exception { assertThat( new AbstractFuture<Object>() { @Override public String pendingToString() { throw new RuntimeException("I'm a misbehaving implementation"); } }.toString()) .matches( "[^\\[]+\\[status=PENDING, info=\\[Exception thrown from implementation: "
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 46.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
public Integer computeNext() { if (haveBeenCalled) { throw new AssertionError("Should not have been called again"); } else { haveBeenCalled = true; throw sneakyThrow(new SomeCheckedException()); } } }; // The first time, the sneakily-thrown exception comes out assertThrows(SomeCheckedException.class, iter::hasNext);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7.8K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java
public void testSingleTearDown() throws Exception { TearDownStack stack = buildTearDownStack(); SimpleTearDown tearDown = new SimpleTearDown(); stack.addTearDown(tearDown); assertEquals(false, tearDown.ran); stack.runTearDown(); assertEquals("tearDown should have run", true, tearDown.ran); } public void testMultipleTearDownsHappenInOrder() throws Exception {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 01 13:14:50 GMT 2025 - 4.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
* null will be returned. * * @throws ParameterNotInstantiableException if the static methods cannot be invoked because the * default value of a parameter cannot be determined. * @throws IllegalAccessException if the class isn't public or is nested inside a non-public * class, preventing its methods from being accessible. * @throws InvocationTargetException if a static method threw exception. */
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 32.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/Service.java
* @param unit the time unit of the timeout argument * @throws TimeoutException if the service has not reached the given state within the deadline * @throws IllegalStateException if the service {@linkplain State#FAILED fails}. * @since 15.0 */ @SuppressWarnings("GoodTime") // should accept a java.time.Duration void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException; /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 10.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/converter/AnalyzerConverterTest.java
} @AfterClass public static void afterClass() throws Exception { runner.close(); runner.clean(); } @Before public void setUp() throws Exception { converter = new AnalyzerConverter(client, settings); } private static void createTestIndex() throws Exception { // Create index with custom analyzersCreated: Sat Dec 20 13:04:59 GMT 2025 - Last Modified: Mon Sep 01 13:33:03 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbTreeTest.java
// Execute and verify exception is thrown assertThrows(SmbException.class, () -> tree.send(request, response)); // After network name deleted error, tree should be disconnected assertEquals(0, tree.connectionState); } @Test void testSendInvalidOperationForNonDiskService() throws SmbException { SmbTree tree = new SmbTree(session, "testShare", "PRINT");Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java
* * @return Never returns, always throws UnsupportedOperationException * @throws UnsupportedOperationException Always thrown as this operation is not supported */ @Override public ServletContext getServletContext() { throw new UnsupportedOperationException("getServletContext() is not supported in SpnegoFilterConfig"); }Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 17.8K bytes - Click Count (3) -
guava/src/com/google/common/io/ByteStreams.java
* @param len an int specifying the number of bytes to read. * @throws EOFException if this stream reaches the end before reading all the bytes. * @throws IOException if an I/O error occurs. */ public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException { int read = read(in, b, off, len); if (read != len) { throw new EOFException(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 31.1K bytes - Click Count (0)