MCPcopy Index your code
hub / github.com/PCGen/pcgen / testEmptyDesc

Method testEmptyDesc

code/src/test/pcgen/core/DescriptionTest.java:59–68  ·  view source on GitHub ↗

Tests outputting an empty description.

()

Source from the content-addressed store, hash-verified

57 * Tests outputting an empty description.
58 */
59 @Test
60 public void testEmptyDesc()
61 {
62 final Ability dummy =
63 TestHelper.makeAbility("dummy", BuildUtilities.getFeatCat(), "Foo");
64 final Description desc = new Description(Constants.EMPTY_STRING);
65 List<CNAbility> singletonAbility = Collections.singletonList(CNAbilityFactory
66 .getCNAbility(BuildUtilities.getFeatCat(), Nature.NORMAL, dummy));
67 assertTrue(desc.getDescription(this.getCharacter(), singletonAbility).isEmpty());
68 }
69
70 /**
71 * Tests outputting a simple description.

Callers

nothing calls this directly

Calls 6

makeAbilityMethod · 0.95
getFeatCatMethod · 0.95
getCNAbilityMethod · 0.95
getDescriptionMethod · 0.95
isEmptyMethod · 0.65
getCharacterMethod · 0.45

Tested by

no test coverage detected