Skip to content

Commit

Permalink
remove ant
Browse files Browse the repository at this point in the history
  • Loading branch information
hchen04 authored and Aaron Klish committed Feb 17, 2020
1 parent 3918585 commit 65fd06f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions elide-datastore/elide-datastore-aggregation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,6 @@
<version>2.5.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.7</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.apache.tools.ant.util.FileUtils;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import io.restassured.response.ValidatableResponse;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Map;
import java.util.stream.Collectors;
import javax.persistence.Persistence;
import javax.ws.rs.core.MediaType;

Expand Down Expand Up @@ -972,7 +973,7 @@ private JsonNode toJsonNode(String query, Map<String, Object> variables) {

public String loadGraphQLResponse(String fileName) throws IOException {
try (InputStream in = AggregationDataStoreIntegrationTest.class.getResourceAsStream("/graphql/responses/" + fileName)) {
return FileUtils.readFully(new InputStreamReader(in));
return new BufferedReader(new InputStreamReader(in)).lines().collect(Collectors.joining("\n"));
}
}
}

0 comments on commit 65fd06f

Please sign in to comment.