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

Method makeEquipment

code/src/test/pcgen/util/TestHelper.java:139–152  ·  view source on GitHub ↗

Make some equipment @param input Equipment source line to be parsed @return true if OK

(final String input)

Source from the content-addressed store, hash-verified

137 * @return true if OK
138 */
139 public static boolean makeEquipment(final String input)
140 {
141 loadPlugins();
142 try
143 {
144 final CampaignSourceEntry source = createSource(TestHelper.class);
145 eqLoader.parseLine(Globals.getContext(), null, input, source);
146 return true;
147 } catch (Exception e)
148 {
149 // TODO Deal with Exception?
150 }
151 return false;
152 }
153
154 /**
155 * Create a new CampaignSourceEntry for the class.

Callers 2

setUpMethod · 0.95
setUpMethod · 0.95

Calls 4

loadPluginsMethod · 0.95
createSourceMethod · 0.95
getContextMethod · 0.95
parseLineMethod · 0.65

Tested by

no test coverage detected