()
| 293 | } |
| 294 | |
| 295 | @Test |
| 296 | public void test2856622() |
| 297 | { |
| 298 | LoadContext context = Globals.getContext(); |
| 299 | final PCClass warrior = new PCClass(); |
| 300 | warrior.setName("Warrior"); |
| 301 | PCClassLevel level1 = warrior.getOriginalClassLevel(1); |
| 302 | context.unconditionallyProcess(level1, "SAB", |
| 303 | "Test Works|PREVARGTEQ:CL,3"); |
| 304 | assertTrue(context.getReferenceContext().resolveReferences(null)); |
| 305 | PlayerCharacter character = this.getCharacter(); |
| 306 | character.incrementClassLevel(1, warrior); |
| 307 | PCClassLoader loader = new PCClassLoader(); |
| 308 | try |
| 309 | { |
| 310 | SourceEntry se = new CampaignSourceEntry(new Campaign(), new URI( |
| 311 | "file://test")); |
| 312 | loader.completeObject(context, se, warrior); |
| 313 | List<SpecialAbility> sabList = level1.getListFor(ListKey.SAB); |
| 314 | assertNotNull(sabList); |
| 315 | assertEquals(1, sabList.size()); |
| 316 | SpecialAbility sab = sabList.get(0); |
| 317 | assertFalse(sab.qualifies(character, warrior)); |
| 318 | character.incrementClassLevel(1, warrior); |
| 319 | assertFalse(sab.qualifies(character, warrior)); |
| 320 | character.incrementClassLevel(1, warrior); |
| 321 | assertTrue(sab.qualifies(character, warrior)); |
| 322 | } |
| 323 | catch (URISyntaxException e) |
| 324 | { |
| 325 | fail(e.getMessage()); |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | @Test |
| 330 | public void test2856626() |
nothing calls this directly
no test coverage detected