- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 1,976 for throws (0.05 seconds)
-
impl/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java
} @Test void testLifecyclePluginsRetrievalForDefaultLifecycle() throws Exception { List<Plugin> plugins = new ArrayList<>(lifecycleExecutor.getPluginsBoundByDefaultToAllLifecycles("jar")); assertEquals(8, plugins.size(), plugins.toString()); } @Test void testPluginConfigurationCreation() throws Exception { File pom = getProject("project-with-additional-lifecycle-elements");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 22.9K bytes - Click Count (0) -
guava/src/com/google/common/util/concurrent/FuturesGetChecked.java
private static <X extends Exception> void wrapAndThrowExceptionOrError( Throwable cause, Class<X> exceptionClass) throws X { if (cause instanceof Error) { throw new ExecutionError((Error) cause); } if (cause instanceof RuntimeException) { throw new UncheckedExecutionException(cause); } throw newWithCause(exceptionClass, cause); } /*
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 11.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
@Override public Integer call() throws Exception { runLatch.countDown(); taskLatch.await(); if (throwException) { throw new IllegalStateException("Fail"); } return 25; } }); @Override protected void setUp() throws Exception { super.setUp(); exec = newCachedThreadPool();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 21:00:51 GMT 2025 - 4.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
* sees an Error? */ @AndroidIncompatible public void testTaskThrowsError() throws Exception { class MyError extends Error {} CyclicBarrier barrier = new CyclicBarrier(2); // we need to make sure the error gets thrown on a different thread. ExecutorService service = newSingleThreadExecutor(); try {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Jul 11 18:52:30 GMT 2025 - 11.4K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/HelpTest.java
@Test void testHelpExecuteReturnsZero() throws Exception { UpgradeContext context = createMockContext(); int result = help.execute(context); assertEquals(0, result, "Help goal should return 0 (success)"); } @Test void testHelpExecuteDoesNotThrow() throws Exception { UpgradeContext context = createMockContext(); // Should not throw any exceptionsCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Aug 29 12:46:51 GMT 2025 - 3.4K bytes - Click Count (0) -
guava/src/com/google/common/base/Suppliers.java
* exception. * * <p>When the underlying delegate throws an exception then this memoizing supplier will keep * delegating calls until it returns valid data. * * @param duration the length of time after a value is created that it should stop being returned * by subsequent {@code get()} callsCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 16.5K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java
} @Override public MediaType contentType() { return MEDIA_TYPE_MARKDOWN; } @Override public void writeTo(BufferedSink sink) throws IOException { sink.writeAll(pipe.source()); } } public static void main(String... args) throws Exception { new PostStreamingWithPipe().run(); }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Jul 06 03:18:15 GMT 2018 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/io/TempFileCreator.java
+ " see the Javadoc for Files.createTempDir()."; @Override File createTempDir() { throw new IllegalStateException(MESSAGE); } @Override File createTempFile(String prefix) throws IOException { throw new IOException(MESSAGE); } } private TempFileCreator() {}
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 29 18:50:14 GMT 2025 - 11.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java
throw new ComponentConfigurationException(configuration, "Cannot set default", e); } } } /** * Sets a property in the bean using cached lookups for improved performance. */ public void setProperty(Object bean, String propertyName, Class<?> valueType, PlexusConfiguration configuration) throws ComponentConfigurationException {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Nov 12 14:59:46 GMT 2025 - 12.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java
@Override public Integer call() throws Exception { runLatch.countDown(); taskLatch.await(); if (throwException) { throw new IllegalStateException("Fail"); } return 25; } }); @Override protected void setUp() throws Exception { super.setUp(); exec = newCachedThreadPool();Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 21:00:51 GMT 2025 - 4.8K bytes - Click Count (0)