- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 673 for assertThrows (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt
assertThat( assertThrows<IllegalStateException> { checkDuration("timeout", -1, TimeUnit.MILLISECONDS) }, ).hasMessage("timeout < 0") assertThat( assertThrows<IllegalArgumentException> { checkDuration("timeout", 1, TimeUnit.NANOSECONDS) }, ).hasMessage("timeout too small") assertThat( assertThrows<IllegalArgumentException> { checkDuration(Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
public void testCallWithTimeout_goodCallableWithNotEnoughTime() throws Exception { assertThrows( TimeoutException.class, () -> service.callWithTimeout(GOOD_CALLABLE, NOT_ENOUGH_MS, MILLISECONDS)); } public void testCallWithTimeout_badCallableWithEnoughTime() throws Exception { ExecutionException expected = assertThrows( ExecutionException.class,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Jul 11 18:52:30 UTC 2025 - 9.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
assertThrows(IOException.class, () -> reader.read(new char[10])); assertThrows(IOException.class, () -> reader.read(new char[10], 0, 10)); assertThrows(IOException.class, () -> reader.read(CharBuffer.allocate(10))); assertThrows(IOException.class, () -> reader.skip(10)); assertThrows(IOException.class, () -> reader.ready()); assertThrows(IOException.class, () -> reader.mark(10));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
} @Test public void testDirectoryTraversal() throws Exception { assertThrows(SmbException.class, () -> { validator.validatePath("\\share\\..\\..\\windows\\system32"); }); } @Test public void testDirectoryTraversalDot() throws Exception { assertThrows(SmbException.class, () -> { validator.validatePath("\\share\\.\\..\\folder"); }); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/pac/ASN1UtilTest.java
InputStream s = new ByteArrayInputStream(new byte[] { 0x1E }); assertThrows(IOException.class, () -> { ASN1Util.readTagNumber(s, 0x1F); }); } @Test void testReadTagNumber_EOF() { // EOF inside tag value InputStream s = new ByteArrayInputStream(new byte[] {}); assertThrows(EOFException.class, () -> { ASN1Util.readTagNumber(s, 0x1F);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalArgumentException.class, () -> builder.maximumWeight(-1)); } @GwtIncompatible // maximumWeight public void testMaximumWeight_setTwice() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumWeight(16); assertThrows(IllegalStateException.class, () -> builder.maximumWeight(16));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 25.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/InvalidatableSetTest.java
assertThat(setToTest).isEqualTo(setToTest); assertThrows(IllegalStateException.class, () -> setToTest.equals(wrappedSet)); assertThrows(IllegalStateException.class, () -> setToTest.equals(copyOfWrappedSet)); assertThrows(IllegalStateException.class, () -> setToTest.equals(copyOfModifiedSet)); assertThrows(IllegalStateException.class, () -> wrappedSet.equals(setToTest));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.2K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java
import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; class MojoExecutionScopeTest { @Test void testNestedEnter() throws Exception { MojoExecutionScope scope = new MojoExecutionScope(); scope.enter();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
} public void testSampleCovariance() { assertThrows(IllegalStateException.class, () -> emptyAccumulator.sampleCovariance()); assertThrows( IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyPairedStats.sampleCovariance()); assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleCovariance()); assertThrows( IllegalStateException.class,
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 23.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
assertThrows(NoSuchElementException.class, () -> iterator.next()); assertThrows(IllegalStateException.class, () -> iterable.iterator()); } public void testFrom_one() { Iterable<String> iterable = MinimalIterable.from(singleton("a")); Iterator<String> iterator = iterable.iterator(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.6K bytes - Viewed (0)