Skip to content

Commit 6e41ff0

Browse files
committed
#362 Added test for LazyList.equals()
1 parent a0c71ce commit 6e41ff0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

activejdbc/src/test/java/org/javalite/activejdbc/LazyListTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ public void shouldGenerateSqlWithParameters() {
1919
a(Person.where("name = ? AND last_name = ?", "John", "Doe").toSql(true)
2020
.endsWith(", with parameters: John, Doe")).shouldBeTrue();
2121
}
22+
23+
@Test
24+
public void shouldBeEqual() {
25+
deleteAndPopulateTable("people");
26+
the(Person.findAll().equals(Person.findAll())).shouldBeTrue();
27+
}
2228
}

0 commit comments

Comments
 (0)