Test the function of the LEVELSPERFEAT in setLevel() Monster class with a levels per feat setting.
()
| 933 | * Monster class with a levels per feat setting. |
| 934 | */ |
| 935 | @Test |
| 936 | void testLevelsPerFeatMonster() |
| 937 | { |
| 938 | finishLoad(); |
| 939 | PlayerCharacter pc = getCharacter(); |
| 940 | nymphClass.put(IntegerKey.LEVELS_PER_FEAT, 4); |
| 941 | List<BonusObj> bonusList = nymphClass.getRawBonusList(pc); |
| 942 | assertEquals(0, bonusList.size(), "Bonus list empty"); |
| 943 | pc.setRace(nymphRace); |
| 944 | bonusList = nymphClass.getRawBonusList(pc); |
| 945 | assertEquals(0, bonusList.size(), "Bonus list empty"); |
| 946 | |
| 947 | pc.incrementClassLevel(1, nymphClass); |
| 948 | bonusList = pc.getClassKeyed(nymphClass.getKeyName()).getRawBonusList(pc); |
| 949 | assertEquals(0, bonusList.size(), "No bonus due to the LEVELSPERFEAT"); |
| 950 | } |
| 951 | |
| 952 | /** |
| 953 | * Test the function of the LEVELSPERFEAT in setLevel() |
nothing calls this directly
no test coverage detected