- Sort Score
- Result 10 results
- Languages All
Results 1611 - 1620 of 3,202 for throwIt (0.05 sec)
-
guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
ListenableFuture<String> f = FluentFuture.from(SettableFuture.create()); assertThat(FluentFuture.from(f)).isSameInstanceAs(f); } public void testFromNonFluentFuture() throws Exception { ListenableFuture<String> f = new SimpleForwardingListenableFuture<String>(immediateFuture("a")) {}; verify(!(f instanceof FluentFuture)); assertThat(FluentFuture.from(f).get()).isEqualTo("a");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java
@Test void testLevelParameter() throws Exception { // Verify that level is set to 1 as per the constructor Field levelField = srvsvc.ShareEnumAll.class.getDeclaredField("level"); levelField.setAccessible(true); int level = (int) levelField.get(msrpcShareEnum); assertEquals(1, level); } @Test void testShareTypeTransformation() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
return suite; } public void testToString() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertEquals(I18N, Resources.toString(resource, UTF_8)); assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.9K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java
.build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); Response response = client.newCall(request).execute(); response.body().close(); } private static class LoggingInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jan 01 15:55:32 UTC 2016 - 2K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/lifecycle/DelegatingProjectExecutionListener.java
@Override public void beforeProjectExecution(ProjectExecutionEvent event) throws LifecycleExecutionException { for (ProjectExecutionListener listener : listeners) { listener.beforeProjectExecution(event); } } @Override public void beforeProjectLifecycleExecution(ProjectExecutionEvent event) throws LifecycleExecutionException { for (ProjectExecutionListener listener : listeners) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 2.5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactoryTest.java
@Inject protected DefaultTypeRegistry defaultTypeRegistry; @Inject protected VersionScheme versionScheme; @Test void isNoSnapshotUpdatesTest() throws InvalidRepositoryException { DefaultRepositorySystemSessionFactory systemSessionFactory = new DefaultRepositorySystemSessionFactory( aetherRepositorySystem, eventSpyDispatcher,Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 08:42:00 UTC 2025 - 19.1K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/io/DefaultModelWriter.java
*/ @Named @Singleton @Deprecated(since = "4.0.0") public class DefaultModelWriter implements ModelWriter { @Override public void write(File output, Map<String, Object> options, Model model) throws IOException { Objects.requireNonNull(output, "output cannot be null"); Objects.requireNonNull(model, "model cannot be null"); output.getParentFile().mkdirs();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 07:09:12 UTC 2025 - 2.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
"ConnectionReleased", ) } @Test @Throws(IOException::class) fun successfulEmptyH2CallEventSequence() { enableTls() server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1) server.enqueue(MockResponse()) assertSuccessfulEventOrder() } @Test @Throws(IOException::class) fun multipleDnsLookupsForSingleCall() { server.enqueue(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 18:33:48 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
// Verify bytes written assertEquals(20 + nameLength, bytesWritten); } @Test @DisplayName("Test decode with replaceIfExists true") void testDecodeWithReplaceIfExistsTrue() throws SMBProtocolDecodingException { String originalFileName = "testfile.txt"; byte[] nameBytes = originalFileName.getBytes(StandardCharsets.UTF_16LE); byte[] buffer = new byte[100];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
void testWithDifferentDelegates() throws Exception { // Given BaseConfiguration baseConfig = new BaseConfiguration(false); DelegatingConfiguration configWithBaseDelegate = new DelegatingConfiguration(baseConfig); // When & Then - should not throw exceptions assertDoesNotThrow(() -> { configWithBaseDelegate.getResponseTimeout();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0)