Skip to content

Commit d7d9266

Browse files
committed
fix createExtended test
1 parent a2351b8 commit d7d9266

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

extended/src/main/java/apoc/create/CreateExtended.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ public Node virtualFromNodeFunction(
2121
@Name(value = "node", description = "The node to generate a virtual node from.") Node node,
2222
@Name(value = "propertyNames", description = "The properties to copy to the virtual node.") List<String> propertyNames,
2323
@Name(value = "additionalProperties", defaultValue = "{}", description = "Additional properties to add to the virtual node") Map<String, Object> additionalProperties,
24-
@Name(value = "config", defaultValue = "{}", description = "{ wrapNodeIds = false :: BOOLEAN }")
25-
Map<String, Object> config) {
26-
boolean wrapNodeIds = Util.toBoolean(config.get("wrapNodeIds"));
27-
VirtualNode virtualNode = new VirtualNode(node, propertyNames, wrapNodeIds);
24+
@Name(value = "config", defaultValue = "{}", description = "{ wrapNodeIds = false :: BOOLEAN }") Map<String, Object> config) {
25+
VirtualNode virtualNode = new VirtualNode(node, propertyNames);
2826
additionalProperties.forEach(virtualNode::setProperty);
2927
return virtualNode;
3028
}

extended/src/test/java/apoc/load/partial/LoadPartialTest.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,6 @@ public void testCompareWithLoadCsvLargeFile() throws Exception {
133133

134134
}
135135

136-
@Test
137-
public void testLoadPartialStringLargeFileZip() throws Exception {
138-
// 100MB zip file
139-
// 800MB csv file inside it
140-
URL urlFileName = new URL("https://www3.stats.govt.nz/2018census/Age-sex-by-ethnic-group-grouped-total-responses-census-usually-resident-population-counts-2006-2013-2018-Censuses-RC-TA-SA2-DHB.zip!Data8277.csv");
141-
String path = urlFileName.toString();
142-
int limit = 300;
143-
String output = singleResultFirstColumn(db, "CALL apoc.load.stringPartial($url, 50, $limit)",
144-
map("url", path, "limit", limit));
145-
146-
assertEquals(limit, output.length());
147-
}
148-
149136
private void testPartialCsvCommon(String path) {
150137
String output = singleResultFirstColumn(db, "CALL apoc.load.stringPartial($url, 17, 15)",
151138
map("url", path));

0 commit comments

Comments
 (0)