- Sort Score
- Num 10 results
- Language All
Results 1551 - 1560 of 3,637 for throwIf (0.08 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java
public void testNewReference() throws Exception { assertThat(Atomics.newReference().get()).isNull(); } public void testNewReference_withInitialValue() throws Exception { assertThat(Atomics.newReference(null).get()).isNull(); assertEquals(OBJECT, Atomics.newReference(OBJECT).get()); } public void testNewReferenceArray_withLength() throws Exception { int length = 42;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java
/** * @throws Exception */ @Test public void testGetFromStream() throws Exception { final String path = ClassUtil.getPackageName(this.getClass()).replaceAll("\\.", "/") + "/aaa.html"; final String contentType = MimeTypeUtil.guessContentType(path); assertEquals("text/html", contentType); } /** * @throws Exception */ @TestCreated: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.7K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java
return artifact; } private Artifact createTestArtifact(String directory, String type) throws IOException { return createTestArtifact(directory, "1.0", type); } private Artifact createTestArtifact(String directory, String version, String type) throws IOException { File testData = getTestFile(directory); FileUtils.deleteDirectory(testData); testData.mkdirs();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 12.9K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java
public void testBuildTesterRequirements_class_notAnnotated() throws Exception { class Tester {} TesterRequirements requirements = buildTesterRequirements(Tester.class); assertThat(requirements.getPresentFeatures()).isEmpty(); assertThat(requirements.getAbsentFeatures()).isEmpty(); } public void testBuildTesterRequirements_class_empty() throws Exception { @Require class Tester {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 11.6K bytes - Click Count (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
*/ class BaseConfigurationTest { private BaseConfiguration config; @BeforeEach void setUp() throws CIFSException { config = new BaseConfiguration(false); } @Test @DisplayName("Test constructor with initDefaults true") void testConstructorWithInitDefaults() throws CIFSException { BaseConfiguration configWithDefaults = new BaseConfiguration(true);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 20.6K bytes - Click Count (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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 10.1K bytes - Click Count (0) -
src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java
import org.codelibs.core.exception.MethodNotStaticRuntimeException; import org.junit.Test; /** * @author koichik * */ public class MethodDescTest { /** * @throws Exception */ @Test public void testFoo() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final MethodDesc foo = beanDesc.getMethodDesc("foo"); assertThat(foo, is(notNullValue()));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java
sortedMap.put("two", 2); sortedMap.put("three", 3); return sortedMap; } @Override protected String getKeyNotInPopulatedMap() throws UnsupportedOperationException { return "minus one"; } @Override protected Integer getValueNotInPopulatedMap() throws UnsupportedOperationException { return -1; } @J2ktIncompatible // https://youtrack.jetbrains.com/issue/KT-58242/ undefined behavior (crash)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 4.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java
Thread.currentThread().interrupt(); throw new LlmException("Request interrupted", LlmException.ERROR_TIMEOUT); } } /** * Executes a streaming chat request with concurrency control via Semaphore. * * @param request the chat request * @param callback the streaming callback * @throws LlmException if too many concurrent requests or interrupted */
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Mar 21 06:04:58 GMT 2026 - 72K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocketFactory.kt
*/ open class DelegatingSSLSocketFactory( private val delegate: SSLSocketFactory, ) : SSLSocketFactory() { @Throws(IOException::class) override fun createSocket(): SSLSocket { val sslSocket = delegate.createSocket() as SSLSocket return configureSocket(sslSocket) } @Throws(IOException::class) override fun createSocket( host: String, port: Int, ): SSLSocket {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.8K bytes - Click Count (0)