Skip to content

Commit b3bfd59

Browse files
author
Igor Polevoy
committed
fixed test
1 parent 00b0566 commit b3bfd59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class ToJsonSpec extends ActiveJDBCTest {
3636
@Test
3737
public void shouldGenerateSimpleJson() {
3838
deleteAndPopulateTable("people");
39-
Person p = Person.findById(1);
39+
Person p = Person.findFirst("name = ? and last_name = ? ", "John", "Smith");
4040
//test no indent
4141
String json = p.toJson(false, "name", "last_name", "dob");
4242
Map map = JsonHelper.toMap(json);

0 commit comments

Comments
 (0)