Skip to content

Commit

Permalink
Test for multiple PK
Browse files Browse the repository at this point in the history
  • Loading branch information
ZorTik committed Feb 17, 2024
1 parent 3755802 commit 945117b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/test/java/me/zort/sqllib/test/TestCase1.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,12 @@ public void test8_RawQuery() {
}

@Test
public void test9_Close() {
public void test9_MultiplePk() {
assertTrue(connection.buildEntitySchema("multiple_pk", MultiplePKModel.class));
}

@Test
public void test10_Close() {
System.out.println("Closing connection...");
connection.disconnect();
System.out.println("Connection closed");
Expand Down Expand Up @@ -264,4 +269,13 @@ public int hashCode() {
}
}

@AllArgsConstructor
private static class MultiplePKModel {
@PrimaryKey
private final String nickname;
@PrimaryKey
private final String email;
private final int points;
}

}

0 comments on commit 945117b

Please sign in to comment.