Remove deprecated findLargeStream(), migrate to findStream()

findLargeStream() became no longer become needed due to improvements in the persistence context. Migrate to just use findStream() instead.
This commit is contained in:
Rob Bygrave
2022-04-06 18:17:25 +12:00
parent a87897dd46
commit 48d7e79b16
9 changed files with 0 additions and 103 deletions
@@ -37,27 +37,6 @@ public class TestQueryFindStream extends BaseTestCase {
}
}
@Test
public void findLargeStream_basic() {
ResetBasicData.reset();
try (Stream<Customer> stream = DB.find(Customer.class)
.findLargeStream()) {
// bad example, don't use a stream like this when we can
// use findSingleAttributeList() instead
final List<String> namesStream = stream
.map(Customer::getName)
.collect(toList());
final List<String> namesQuery = DB.find(Customer.class)
.select("name")
.findSingleAttributeList();
assertThat(namesStream).hasSize(namesQuery.size());
assertThat(namesStream).containsAll(namesQuery);
}
}
@Test
public void manualTest_findSteam_when_closeWithResources() {
// confirm manually the stream is closed via try with resources block