Add tests for MakerInfoProvider

These are going to be handy soon,
as I'm about to add Caffeine for caching.
This commit is contained in:
P0nk
2023-03-04 20:50:29 +01:00
parent 6073b20d65
commit f2ca67aba4
3 changed files with 132 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ public class MakerInfoProvider {
private final Map<Integer, MakerRecipe> recipeCache = new ConcurrentHashMap<>();
public MakerInfoProvider(MakerDao makerDao) {
if (makerDao == null) {
throw new IllegalArgumentException("MakerDao is null");
}
this.makerDao = makerDao;
}