- Sort Score
- Num 10 results
- Language All
Results 1771 - 1780 of 3,282 for throwIt (0.05 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java
import okhttp3.tls.HandshakeCertificates; import okhttp3.tls.HeldCertificate; /** * Create an HTTPS server with a self-signed certificate that OkHttp trusts. */ public class HttpsServer { public void run() throws Exception { HeldCertificate localhostCertificate = new HeldCertificate.Builder() .addSubjectAlternativeName("localhost") .build();Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jan 02 14:04:37 GMT 2023 - 2.1K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/guide/GetExample.java
final OkHttpClient client = new OkHttpClient(); String run(String url) throws IOException { Request request = new Request.Builder() .url(url) .build(); try (Response response = client.newCall(request).execute()) { return response.body().string(); } } public static void main(String[] args) throws IOException { GetExample example = new GetExample();
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 1.3K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/TestFileWagon.java
throws TransferFailedException { addTransfer("getTransfer " + resource.getName()); super.getTransfer(resource, destination, input, closeInput, maxSize); } @Override public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.9K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/resolution/WorkspaceModelResolver.java
public interface WorkspaceModelResolver { Model resolveRawModel(String groupId, String artifactId, String versionConstraint) throws UnresolvableModelException; Model resolveEffectiveModel(String groupId, String artifactId, String versionConstraint) throws UnresolvableModelException;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 1.3K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java
@Override public Model read(File input, Map<String, ?> options) throws IOException { return reader.read(input, options); } @Override public Model read(Reader input, Map<String, ?> options) throws IOException { return reader.read(input, options); } @Override public Model read(InputStream input, Map<String, ?> options) throws IOException { return reader.read(input, options); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 3.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/SerializableTester.java
* strict, use {@link #reserialize}. * * @return the re-serialized object * @throws RuntimeException if the specified object was not successfully serialized or * deserialized * @throws AssertionFailedError if the re-serialized object is not equal to the original object, * or if the hashcodes are different. */ @CanIgnoreReturnValueCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 4.1K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java
* @return module name of the dependency at the given path, or empty if the dependency is not modular * @throws IOException if the module information of the specified dependency cannot be read */ Optional<String> getModuleName(@Nonnull Path dependency) throws IOException; /** * Returns the Java module descriptor of the dependency at the given path.Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Mar 05 14:29:21 GMT 2025 - 6.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
@DisplayName("Invalid: resolving class by null name throws NPE") void testClassForNameWithNull() { // Intent: demonstrate defensive behavior with null when resolving this type by name assertThrows(NullPointerException.class, () -> Class.forName(null)); } @Test @DisplayName("Happy path: class is loadable via fully qualified name") void testClassForName() throws Exception { // ActCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesLoaderTest.java
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; @Deprecated class MavenPropertiesLoaderTest { @Test void testIncludes() throws Exception { FileSystem fs = Jimfs.newFileSystem(Configuration.unix()); Path mavenHome = fs.getPath("/maven"); Files.createDirectories(mavenHome); Path mavenConf = mavenHome.resolve("conf");Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Dec 01 19:41:22 GMT 2024 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/witness/WitnessIntegrationTest.java
@Mock private CIFSContext mockContext; @Mock private Configuration mockConfig; private MockWitnessService mockService; @BeforeEach void setUp() throws Exception { mockService = new MockWitnessService(); mockService.start(); // Setup mock configuration with lenient stubbing lenient().when(mockContext.getConfig()).thenReturn(mockConfig);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 9.8K bytes - Click Count (0)