Skip to content

Commit

Permalink
[drqYtb6r] changed importFolder with the correct one provided by Test…
Browse files Browse the repository at this point in the history
…ContainerUtil
  • Loading branch information
vga91 committed Jul 24, 2023
1 parent dc213be commit f511970
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
import org.junit.Test;

import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

import org.neo4j.driver.Session;
import org.neo4j.driver.types.Node;
import org.neo4j.driver.types.Relationship;

import static apoc.util.TestContainerUtil.createEnterpriseDB;
import static apoc.util.TestContainerUtil.importFolder;
import static apoc.util.TestContainerUtil.testCall;
import static apoc.util.TestContainerUtil.testResult;
import static apoc.util.Util.map;
Expand All @@ -41,8 +40,6 @@ public class CypherEnterpriseExtendedTest {
private static final String SET_RETURN_FILE = "set_and_return.cypher";
private static final String MATCH_RETURN_FILE = "match_and_return.cypher";

private static final File importFolder = new File("import");

public static String SET_NODE = """
MATCH (n:Result)-[:REL]->(:Other)
SET n.updated = true
Expand Down Expand Up @@ -89,10 +86,7 @@ private static void createContainerFile(String fileName, String fileContent) {
}

@AfterClass
public static void afterAll() throws IOException {
Stream.of(SET_RETURN_FILE, MATCH_RETURN_FILE)
.forEach(file -> new File(importFolder, file).delete());

public static void afterAll() {
session.close();
neo4jContainer.close();
}
Expand Down

0 comments on commit f511970

Please sign in to comment.