Skip to content

Commit 945117b

Browse files
committed
Test for multiple PK
1 parent 3755802 commit 945117b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

src/test/java/me/zort/sqllib/test/TestCase1.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,12 @@ public void test8_RawQuery() {
223223
}
224224

225225
@Test
226-
public void test9_Close() {
226+
public void test9_MultiplePk() {
227+
assertTrue(connection.buildEntitySchema("multiple_pk", MultiplePKModel.class));
228+
}
229+
230+
@Test
231+
public void test10_Close() {
227232
System.out.println("Closing connection...");
228233
connection.disconnect();
229234
System.out.println("Connection closed");
@@ -264,4 +269,13 @@ public int hashCode() {
264269
}
265270
}
266271

272+
@AllArgsConstructor
273+
private static class MultiplePKModel {
274+
@PrimaryKey
275+
private final String nickname;
276+
@PrimaryKey
277+
private final String email;
278+
private final int points;
279+
}
280+
267281
}

0 commit comments

Comments
 (0)