-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #689 from fatroom/idempotence-plugin
Cleanup of IdempotencyPlugin declaration
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
riptide-idempotency/src/main/resources/META-INF/services/org.zalando.riptide.Plugin
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
riptide-idempotency/src/test/java/org/zalando/riptide/idempotency/IdempotencyPluginTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.zalando.riptide.idempotency; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; | ||
import org.zalando.riptide.Http; | ||
|
||
import java.util.ServiceConfigurationError; | ||
import java.util.concurrent.Executors; | ||
|
||
import static org.junit.jupiter.api.Assertions.fail; | ||
|
||
final class IdempotencyPluginTest { | ||
@Test | ||
void testHttpCreation() { | ||
try { | ||
Http.builder() | ||
.executor(Executors.newCachedThreadPool()) | ||
.requestFactory(new HttpComponentsClientHttpRequestFactory()) | ||
.build(); | ||
} catch (ServiceConfigurationError e) { | ||
fail(e.getMessage()); | ||
} | ||
} | ||
} |