- Sort Score
- Num 10 results
- Language All
Results 1421 - 1430 of 3,637 for throwIf (0.07 seconds)
-
android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
@Override protected void setUp() throws Exception { super.setUp(); future = SettableFuture.create(); tester = new ListenableFutureTester(future); tester.setUp(); } public void testDefaultState() throws Exception { assertThrows(TimeoutException.class, () -> future.get(5, MILLISECONDS)); } public void testSetValue() throws Exception { assertTrue(future.set("value"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/MonitorTestCase.java
return "leave"; } public final void testMutualExclusion() throws Exception { thread1.callAndAssertReturns(enter()); thread2.callAndAssertBlocks(enter()); thread1.callAndAssertReturns(leave()); thread2.assertPriorCallReturns(enter()); } public final void testTryEnter() throws Exception { thread1.callAndAssertReturns(true, tryEnter());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 8.2K bytes - Click Count (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RepositorySystemTest.java
// throws InstallationException; // release, snapshot unique ou non unique, attachment } @Test void testDeploy() throws Exception { // DeployResult deploy( RepositorySystemSession session, DeployRequest request ) // throws DeploymentException; } @Test void testNewLocalRepositoryManager() throws Exception {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 9.5K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ForwardingBlockingDeque.java
return delegate().offerLast(e, timeout, unit); } @Override public E takeFirst() throws InterruptedException { return delegate().takeFirst(); } @Override public E takeLast() throws InterruptedException { return delegate().takeLast(); } @Override public @Nullable E pollFirst(long timeout, TimeUnit unit) throws InterruptedException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.3K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
*/ public class ResourceTraversalTest { private static int count = 0; /** * @throws Exception */ @Before public void setUp() throws Exception { count = 0; } /** * @throws Exception */ @Test public void testForEachFile() throws Exception { final File rootDir = ResourceUtil.getBuildDir(getClass());Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 6K bytes - Click Count (0) -
src/main/java/org/codelibs/core/collection/ArrayMap.java
@Override public void writeExternal(final ObjectOutput s) throws IOException { s.writeInt(hashCode); s.writeObject(key); s.writeObject(value); s.writeObject(next); } @SuppressWarnings("unchecked") @Override public void readExternal(final ObjectInput s) throws IOException, ClassNotFoundException { hashCode = s.readInt();Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 20.1K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Doubles.java
* * @param array a <i>nonempty</i> array of {@code double} values * @return the value present in {@code array} that is less than or equal to every other value in * the array * @throws IllegalArgumentException if {@code array} is empty */ @GwtIncompatible( "Available in GWT! Annotation is to avoid conflict with GWT specialization of base class.") public static double min(double... array) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 27.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
private File rootDir; @Override public void setUp() throws IOException { rootDir = createTempDir(); } public void testFileTraverser_emptyDirectory() throws Exception { assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir); } public void testFileTraverser_nonExistingFile() throws Exception { File file = new File(rootDir, "file-that-doesnt-exist");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/FilesFileTraverserTest.java
private File rootDir; @Override public void setUp() throws IOException { rootDir = createTempDir(); } public void testFileTraverser_emptyDirectory() throws Exception { assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir); } public void testFileTraverser_nonExistingFile() throws Exception { File file = new File(rootDir, "file-that-doesnt-exist");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.4K bytes - Click Count (0) -
src/test/java/jcifs/SidResolverTest.java
@Test void testResolveSids_WithNullContext() throws CIFSException { doThrow(new CIFSException("Context cannot be null")).when(sidResolver).resolveSids(eq(null), anyString(), any(SID[].class)); assertThrows(CIFSException.class, () -> sidResolver.resolveSids(null, testServerName, testSids)); } @Test void testResolveSids_WithNullServerName() throws CIFSException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 15.5K bytes - Click Count (0)