Пример #1
0
 public void testMultipleMerge() throws Exception {
   EjbJarMetaData result = unmarshal();
   JBossMetaData jboss =
       unmarshal("JBoss40_testMultipleMerge.xml", JBossMetaData.class, PropertyReplacers.noop());
   JBossEnterpriseBeansMetaData beans = jboss.getEnterpriseBeans();
   assertEquals(4, beans.size());
   JBossEnterpriseBeanMetaData entity = beans.get("EntityCallee");
   assertTrue(entity instanceof JBossEntityBeanMetaData);
   JBossMetaData jbossMetaData = new JBossMetaData();
   jbossMetaData.merge(jboss, result);
   entity = jbossMetaData.getEnterpriseBean("EntityCallee");
   JBossEntityBeanMetaData jentity = (JBossEntityBeanMetaData) entity;
   assertEquals("caller-info.EntityCallee", jentity.getJndiName());
 }
 public static PersistenceContextReferenceMetaData parse(XMLStreamReader reader)
     throws XMLStreamException {
   return parse(reader, PropertyReplacers.noop());
 }