validateTest(expectedOutput);
}
@Deployment(testable = false)
public static WebArchive createDeployment() {
WebAppDescriptor descriptor = Descriptors.create(WebAppDescriptor.class)
.version("3.0")
.filter(PojoServletFilter.class, "/" + TEST_NAME);
addEnvEntry(descriptor, "returnEmail", "java.lang.String", "tomee@apache.org");
addEnvEntry(descriptor, "connectionPool", "java.lang.Integer", "20");
addEnvEntry(descriptor, "startCount", "java.lang.Long", "200000");
addEnvEntry(descriptor, "initSize", "java.lang.Short", "5");
addEnvEntry(descriptor, "enableEmail", "java.lang.Boolean", "true");
addEnvEntry(descriptor, "totalQuantity", "java.lang.Byte", "5");
addEnvEntry(descriptor, "optionDefault", "java.lang.Character", "X");
addEnvEntry(descriptor, "auditWriter", "java.lang.Class", "java.lang.String");
// addEnvEntry(descriptor, "defaultCode", "java.lang.Enum", "Code.OK");
WebArchive archive = ShrinkWrap.create(WebArchive.class, TEST_NAME + ".war")
.addClass(Code.class)
.addClass(PojoServletFilter.class)
.addClass(Car.class)
.addClass(CompanyLocal.class)
.addClass(Company.class)
.addClass(DefaultCompany.class)
.addClass(SuperMarket.class)
.setWebXML(new StringAsset(descriptor.exportAsString()))
.addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
return archive;