Search in sources :

Example 1 with User

use of jdbi.doc.ResultsTest.User in project jdbi by jdbi.

the class TransactionTest method inTransaction.

@Test
public void inTransaction() {
    User u = findUserById(2).orElseThrow(() -> new AssertionError("No user found"));
    assertThat(u.id).isEqualTo(2);
    assertThat(u.name).isEqualTo("Bob");
}
Also used : User(jdbi.doc.ResultsTest.User) Test(org.junit.Test)

Aggregations

User (jdbi.doc.ResultsTest.User)1 Test (org.junit.Test)1