- Sort Score
- Result 10 results
- Languages All
Results 1841 - 1850 of 2,652 for throw (0.05 sec)
-
guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java
private TestCallable firstCallable; @Override public void setUp() throws Exception { executor = Executors.newCachedThreadPool(); serializer = ExecutionSequencer.create(); firstFuture = SettableFuture.create(); firstCallable = new TestCallable(firstFuture); } @Override public void tearDown() throws Exception { executor.shutdown(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/MethodUtilTest.java
import java.util.List; import java.util.Map; import org.junit.Test; /** * @author higa */ public class MethodUtilTest { /** * @throws Exception */ @Test public void testIsEqualsMethod() throws Exception { final Method equalsMethod = ClassUtil.getMethod(getClass(), "equals", Object.class); assertThat(MethodUtil.isEqualsMethod(equalsMethod), is(true));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java
@Override protected void tearDown() throws Exception { super.tearDown(); assertWithMessage("finishToValueAndCloserExecutor was shut down") .that(shutdownAndAwaitTermination(finishToValueAndCloserExecutor, 10, SECONDS)) .isTrue(); } public void testFinishToValueAndCloser_throwsIfCalledTwice() throws Exception { ClosingFuture<Closeable> closingFuture =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5.7K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CurrentDateHeader.java
import okhttp3.Response; public final class CurrentDateHeader { private final OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new CurrentDateInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); try (Response response = client.newCall(request).execute()) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Oct 31 15:32:50 UTC 2018 - 1.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java
enum ReadStrategy { TO_BYTE_ARRAY_NEW_STRING { @Override String read(ByteSource byteSource, Charset cs) throws IOException { return new String(byteSource.read(), cs); } }, USING_CHARSTREAMS_COPY { @Override String read(ByteSource byteSource, Charset cs) throws IOException { StringBuilder sb = new StringBuilder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/converter/ReadingConverter.java
import java.io.IOException; import java.util.List; public interface ReadingConverter { default int getMaxReadingNum() { return 10; } void init() throws IOException; List<String> convert(String text, final String field, String... langs) throws IOException;
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 952 bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java
import junit.framework.TestCase; import org.junit.Test; /** * @author koichik */ public class ClassLoaderUtilTest { /** * @throws Exception */ @Test public void testGetClassLoader() throws Exception { assertThat(ClassLoaderUtil.getClassLoader(Object.class), is(sameInstance(ClassLoaderUtil.class.getClassLoader())));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java
throws InterruptedException { lastMethodCalled = "invokeAll"; assertTaskWrapped(tasks); return inline.invokeAll(tasks); } @Override public <T> List<Future<T>> invokeAll( Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException { assertTaskWrapped(tasks);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 9.9K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java
} public String getFileContents(File file, String encoding) throws IOException { return FileUtils.fileRead(file, encoding); } protected void finalize() throws Throwable { maybeWarnAboutCleanUp(); super.finalize(); } public File createFile(String filename, String content, String encoding) throws IOException { File dir = createTempDir();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/SqlDateConverterTest.java
import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author higa */ public class SqlDateConverterTest { /** * @throws Exception */ @Test public void testGetAsObjectAndGetAsString() throws Exception { final SqlDateConverter converter = new SqlDateConverter("yyyy/MM/dd"); final java.sql.Date result = (java.sql.Date) converter.getAsObject("2008/01/16");
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.6K bytes - Viewed (0)