MCPcopy Create free account
hub / github.com/PCGen/pcgen / testSimpleDesc

Method testSimpleDesc

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

Tests outputting a simple description.

()

Source from the content-addressed store, hash-verified

71 * Tests outputting a simple description.
72 */
73 @Test
74 public void testSimpleDesc()
75 {
76 final Ability dummy =
77 TestHelper.makeAbility("dummy", BuildUtilities.getFeatCat(), "Foo");
78 final String simpleDesc = "This is a test";
79 final Description desc = new Description(simpleDesc);
80 List<CNAbility> singletonAbility = Collections.singletonList(CNAbilityFactory
81 .getCNAbility(BuildUtilities.getFeatCat(), Nature.NORMAL, dummy));
82 assertEquals(simpleDesc, desc.getDescription(getCharacter(), singletonAbility));
83 }
84
85 /**
86 * Test PREREQs for Desc.

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected