Create a new CampaignSourceEntry for the class. @param cls The class the try is for. @return The CampaignSourceEntry.
(Class cls)
| 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 |
no test coverage detected