use of org.xwiki.extension.DefaultExtensionDependency in project xwiki-platform by xwiki.
the class RepositoryTest method setUp.
@Before
@Override
public void setUp() throws Exception {
super.setUp();
// base extension informations
this.baseExtension = getRepositoryTestUtils().getTestExtension(new ExtensionId(IDPREFIX + "macro-jar-extension", "1.0"), "jar");
this.baseExtension.setName("Macro JAR extension");
this.baseExtension.setDescription("extension description");
this.baseExtension.setSummary("extension summary, **not bold**");
this.baseLicense = new ExtensionLicense("Do What The Fuck You Want To Public License 2", null);
this.baseExtension.addLicense(this.baseLicense);
this.baseAuthor = new DefaultExtensionAuthor("User Name", getUtil().getURL("XWiki", USER_CREDENTIALS.getUserName()));
this.baseExtension.addAuthor(this.baseAuthor);
this.baseExtension.addDependency(new DefaultExtensionDependency("dependencyid1", new DefaultVersionConstraint("1.0")));
this.baseExtension.addDependency(new DefaultExtensionDependency("dependencyid2", new DefaultVersionConstraint("2.0")));
this.sizeOfFile = FileUtils.sizeOf(this.baseExtension.getFile().getFile());
}
Aggregations