@Test(expected = IllegalArgumentException.class) public void testStatsOverHardCap() { new Character( ModelTestUtils.homogeneousStats(200), ModelTestUtils.createGrowth(), ModelTestUtils.homogeneousStats(400), "Test"); }
@Test(expected = IllegalArgumentException.class) public void testStatsMissing() { Map<Stat, Integer> stats = defaultStats(); stats.remove(Stat.HP); new Character( ModelTestUtils.homogeneousStats(30), ModelTestUtils.createGrowth(), stats, "test"); }
@Test(expected = IllegalArgumentException.class) public void testMaxStatsMissing() { Map<Stat, Integer> maxStats = defaultStats(); maxStats.put(Stat.HP, 20); new Character( maxStats, ModelTestUtils.createGrowth(), ModelTestUtils.homogeneousStats(30), "test"); }