Commision service tests

This commit is contained in:
Filip Izydorczyk
2020-10-02 17:55:42 +02:00
parent 95fcfc4e06
commit 30222d6856
2 changed files with 35 additions and 6 deletions

View File

@ -32,4 +32,8 @@ public class CommisionService {
public Optional<Commision> getNewestCommision(User user) {
return Optional.of(this.repo.getNewestCommision(user.getId()).get(0));
}
public long getCommisionsAmmount() {
return this.repo.count();
}
}