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

Method testSimpleDesc

code/src/test/pcgen/cdom/helper/AspectTest.java:74–83  ·  view source on GitHub ↗

Tests outputting a simple Aspect.

()

Source from the content-addressed store, hash-verified

72 * Tests outputting a simple Aspect.
73 */
74 @Test
75 public void testSimpleDesc()
76 {
77 final Ability dummy =
78 TestHelper.makeAbility("dummy", BuildUtilities.getFeatCat(), "Foo");
79 final String simpleDesc = "This is a test";
80 final Aspect aspect = new Aspect(ASPECT_NAME, simpleDesc);
81 assertEquals(simpleDesc, aspect.getAspectText(getCharacter(),
82 buildMap(dummy, BuildUtilities.getFeatCat(), Nature.NORMAL)));
83 }
84
85 /**
86 * Tests a simple string replacement.

Callers

nothing calls this directly

Calls 5

makeAbilityMethod · 0.95
getFeatCatMethod · 0.95
getAspectTextMethod · 0.95
buildMapMethod · 0.95
getCharacterMethod · 0.45

Tested by

no test coverage detected