use of org.haiku.pkg.model.StringInlineAttribute in project haikudepotserver by haiku.
the class PkgFactoryTest method createTestPackageAttributes.
private Attribute createTestPackageAttributes() {
StringInlineAttribute majorVersionA = new StringInlineAttribute(AttributeId.PACKAGE_VERSION_MAJOR, "6");
majorVersionA.setChildAttributes(ImmutableList.of(new StringInlineAttribute(AttributeId.PACKAGE_VERSION_MINOR, "32"), new StringInlineAttribute(AttributeId.PACKAGE_VERSION_MICRO, "9"), new StringInlineAttribute(AttributeId.PACKAGE_VERSION_PRE_RELEASE, "beta"), new IntAttribute(AttributeId.PACKAGE_VERSION_REVISION, new BigInteger("8"))));
StringInlineAttribute topA = new StringInlineAttribute(AttributeId.PACKAGE, "testpkg");
topA.setChildAttributes(ImmutableList.of(new StringInlineAttribute(AttributeId.PACKAGE_NAME, "testpkg"), new StringInlineAttribute(AttributeId.PACKAGE_VENDOR, "Test Vendor"), new StringInlineAttribute(AttributeId.PACKAGE_SUMMARY, "This is a test package summary"), new StringInlineAttribute(AttributeId.PACKAGE_DESCRIPTION, "This is a test package description"), new StringInlineAttribute(AttributeId.PACKAGE_URL, "http://www.haiku-os.org"), // X86
new IntAttribute(AttributeId.PACKAGE_ARCHITECTURE, new BigInteger("1")), majorVersionA, new StringInlineAttribute(AttributeId.PACKAGE_COPYRIGHT, "Some copyright A"), new StringInlineAttribute(AttributeId.PACKAGE_COPYRIGHT, "Some copyright B"), new StringInlineAttribute(AttributeId.PACKAGE_LICENSE, "Some license A"), new StringInlineAttribute(AttributeId.PACKAGE_LICENSE, "Some license B")));
return topA;
}
Aggregations