Skip to content

Commit

Permalink
Insert test entity in db first
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim203 committed Feb 10, 2024
1 parent b791947 commit 6aaa6d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/test/java/org/geysermc/databaseutils/SqlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ void hello() throws ExecutionException, InterruptedException {
utils.start();
var repo = utils.repositoryFor(BasicRepository.class);

repo.insert(new TestEntity(3, "", "what's up?")).get();

var result = repo.findByAAndB(3, "").get();
System.out.println(result);

Expand All @@ -58,5 +60,7 @@ void hello() throws ExecutionException, InterruptedException {

result = repo.findByAAndB(3, "").get();
System.out.println(result);

repo.delete(original).get();
}
}

0 comments on commit 6aaa6d7

Please sign in to comment.