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

Method createSource

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

Create a new CampaignSourceEntry for the class. @param cls The class the try is for. @return The CampaignSourceEntry.

(Class cls)

Source from the content-addressed store, hash-verified

157 * @return The CampaignSourceEntry.
158 */
159 public static CampaignSourceEntry createSource(Class cls)
160 {
161 final CampaignSourceEntry source;
162 try
163 {
164 source = new CampaignSourceEntry(new Campaign(),
165 new URI("file:/" + cls.getName() + ".java"));
166 } catch (URISyntaxException e)
167 {
168 throw new UnreachableError(e);
169 }
170 return source;
171 }
172
173 /**
174 * Load the plugins

Callers 3

setUpMethod · 0.95
setUpMethod · 0.95
makeEquipmentMethod · 0.95

Calls 1

getNameMethod · 0.65

Tested by

no test coverage detected