- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 1,188 for Exception (0.05 seconds)
-
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
* * @author Chris Nokleberg */ @NullUnmarked public class FileBackedOutputStreamTest extends IoTestCase { public void testThreshold() throws Exception { testThreshold(0, 100, true, false); testThreshold(10, 100, true, false); testThreshold(100, 100, true, false); testThreshold(1000, 100, true, false); testThreshold(0, 100, false, false);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 16:30:29 GMT 2025 - 6.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java
private static final MediaType MEDIA_TYPE_PNG = MediaType.get("image/png"); private final OkHttpClient client = new OkHttpClient(); public void run() throws Exception { // Use the imgur image upload API as documented at https://api.imgur.com/endpoints/image final ProgressListener progressListener = new ProgressListener() { boolean firstUpdate = true;
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Aug 30 17:01:12 GMT 2025 - 4.2K bytes - Click Count (1) -
guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
* * @author Chris Nokleberg */ @NullUnmarked public class FileBackedOutputStreamTest extends IoTestCase { public void testThreshold() throws Exception { testThreshold(0, 100, true, false); testThreshold(10, 100, true, false); testThreshold(100, 100, true, false); testThreshold(1000, 100, true, false); testThreshold(0, 100, false, false);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Oct 30 16:30:29 GMT 2025 - 6.7K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/DomUtilsTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Unit tests for DomUtils functionality with domtrip backend. */ class DomUtilsTest { @Test void testFindChildElement() throws Exception { String pomXml = """ <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"> <modelVersion>4.0.0</modelVersion>Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 31.3K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java
}; private final OkHttpClient client; public RewriteResponseCacheControl(File cacheDirectory) throws Exception { Cache cache = new Cache(cacheDirectory, 1024 * 1024); cache.evictAll(); client = new OkHttpClient.Builder() .cache(cache) .build(); } public void run() throws Exception { for (int i = 0; i < 5; i++) { System.out.println(" Request: " + i);
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jan 12 03:31:36 GMT 2019 - 2.6K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/InvalidRepositoryException.java
*/ @Deprecated(since = "4.0.0") public class InvalidRepositoryException extends Exception { /** * The repository that raised this error, can be {@code null}. */ private Repository repository; /** * Creates a new exception with specified detail message and cause for the given repository. * * @param message The detail message, may be {@code null}.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
) // This should fail the Call, but not cause an unhandled Exception bubbling up client.dispatcher.executorService.shutdownNow() val exception = callFailure.get(5, TimeUnit.SECONDS) assertThat(exception.message) .isNotNull() .startsWith("canceled due to") assertThat(exception).isInstanceOf<IOException>() assertThat(exception.cause) .isNotNull()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 18:33:48 GMT 2025 - 6.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.3K bytes - Click Count (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java
private File getPom(String name) { return new File(Paths.get(BASE_DIR, name + ".xml").toString()).getAbsoluteFile(); } @Test void testCompleteWiring() throws Exception { ModelBuilder builder = new DefaultModelBuilderFactory().newInstance(); assertNotNull(builder); DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 10 07:09:12 GMT 2025 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
public void testJoin() throws Exception { joinHelper(0); joinHelper(1); joinHelper(0, 0, 0); joinHelper(10, 20); joinHelper(10, 0, 20); joinHelper(0, 10, 20); joinHelper(10, 20, 0); joinHelper(10, 20, 1); joinHelper(1, 1, 1, 1, 1, 1, 1, 1); joinHelper(1, 0, 1, 0, 1, 0, 1, 0); } public void testOnlyOneOpen() throws Exception { ByteSource source = newByteSource(0, 50);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 4.7K bytes - Click Count (0)