Skip to content

Commit

Permalink
Merge pull request #6 from jianghaolu/no-core-netty-fluxutil
Browse files Browse the repository at this point in the history
Fix azure-core http tests
  • Loading branch information
JonathanGiles authored Aug 15, 2019
2 parents 3d3f619 + 462f8d9 commit 1c9cb26
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@
public class HttpPipelineTests {
@Test
public void constructorWithNoArguments() {
HttpPipeline pipeline = new HttpPipelineBuilder().build();
HttpPipeline pipeline = new HttpPipelineBuilder()
.httpClient(new NoOpHttpClient() {
@Override
public Mono<HttpResponse> send(HttpRequest request) {
// do nothing
return null;
}
}).build();
assertEquals(0, pipeline.getPolicyCount());
assertNotNull(pipeline.httpClient());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ interface Service26 {

@Test
public void postUrlFormEncoded() {
Service26 service = RestProxy.create(Service26.class, new HttpPipelineBuilder().build());
Service26 service = createService(Service26.class);
HttpBinFormDataJSON response = service.postForm("Foo", "123", "[email protected]", PizzaSize.LARGE, Arrays.asList("Bacon", "Onion"));
assertNotNull(response);
assertNotNull(response.form());
Expand Down

0 comments on commit 1c9cb26

Please sign in to comment.