use of org.apache.aries.application.modelling.ModelledResource in project aries by apache.
the class AbstractEJBModellerTest method testAnnotatedOnlyInWebZip.
@Test
public void testAnnotatedOnlyInWebZip() throws Exception {
ModelledResource mr = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ZipOutputStream zos = new ZipOutputStream(baos);
addToZip(zos, "MANIFEST_3.MF", "META-INF/MANIFEST.MF");
addToZip(zos, "beans/StatelessSessionBean.class");
addToZip(zos, "beans/StatefulSessionBean.class");
zos.close();
mr = model(baos.toByteArray());
Collection<? extends ExportedService> services = mr.getExportedServices();
assertEquals("Wrong number of services", 1, services.size());
assertTrue(Collections.disjoint(services, getXMLservices()));
assertTrue(services.containsAll(getAnnotatedservices()));
}
Aggregations