Skip to content

Commit 5b6a7dc

Browse files
committed
Added remove on Iterator, necessary for Java 7
1 parent cbfe80f commit 5b6a7dc

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

driver/src/main/java/org/neo4j/driver/internal/ClusteredStatementResult.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ public <T> List<T> list( Function<Record,T> mapFunction )
212212
}
213213
}
214214

215+
@Override
216+
public void remove()
217+
{
218+
throw new ClientException( "Removing records from a result is not supported." );
219+
}
220+
215221
@Override
216222
public ResultSummary consume()
217223
{

driver/src/test/java/org/neo4j/driver/v1/integration/SessionIT.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,6 @@ public void shouldKnowSessionIsClosed() throws Throwable
6262
}
6363
}
6464

65-
@Test
66-
public void should() throws Throwable
67-
{
68-
// Given
69-
try( Driver driver = GraphDatabase.driver( neo4j.uri() ) )
70-
{
71-
Session session = driver.session();
72-
73-
session.run("CALL dbms.cluster.discoverEndpointAcquisitionServers");
74-
75-
76-
// When
77-
session.close();
78-
79-
// Then
80-
assertFalse( session.isOpen() );
81-
}
82-
}
83-
8465
@Test
8566
public void shouldHandleNullConfig() throws Throwable
8667
{

0 commit comments

Comments
 (0)