Commit 5fbece3b authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfs: simplify stream usage

Acked-by: Albert Rossi
Target: master
parent 1cf016b0
......@@ -126,15 +126,11 @@ public class ExportFileTest {
private void assertExportExists(String path, ExportFile exportFile) {
assertTrue("export " + path + " doesn't exists", exportFile.exports()
.filter(e -> e.getPath().equals(path))
.findAny()
.isPresent());
.anyMatch(e -> e.getPath().equals(path)));
}
private void assertExportNotExists(String path, ExportFile exportFile) {
assertFalse("export " + path + " exist, but shouldn't", exportFile.exports()
.filter(e -> e.getPath().equals(path))
.findAny()
.isPresent());
.anyMatch(e -> e.getPath().equals(path)));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment