Package org.jboss.arquillian.persistence.core.exception

Examples of org.jboss.arquillian.persistence.core.exception.MultiplePersistenceUnitsException


   {
      Document document = parseXmlDescriptor(descriptor);
      final NodeList persistenceUnits = document.getElementsByTagName("persistence-unit");
      if (persistenceUnits.getLength() > 1)
      {
         throw new MultiplePersistenceUnitsException("Multiple persistence units defined. Please specify default data source either in 'arquillian.xml' or by using @DataSource annotation");
      }
      final Node persistenceUnit = persistenceUnits.item(0);
      Node dataSource = getJtaDataSource(persistenceUnit);
      if (dataSource == null)
      {
View Full Code Here


      {
         final Document document = factory.newDocumentBuilder().parse(new ByteArrayInputStream(descriptor.getBytes()));
         final NodeList persistenceUnits = document.getElementsByTagName("persistence-unit");
         if (persistenceUnits.getLength() > 1)
         {
            throw new MultiplePersistenceUnitsException("Multiple persistence units defined. Please specify default data source either in 'arquillian.xml' or by using @DataSource annotation");
         }
         final Node persistenceUnit = persistenceUnits.item(0);
         Node dataSource = getJtaDataSource(persistenceUnit);
         if (dataSource == null)
         {
View Full Code Here

   {
      Document document = parseXmlDescriptor(descriptor);
      final NodeList persistenceUnits = document.getElementsByTagName("persistence-unit");
      if (persistenceUnits.getLength() > 1)
      {
         throw new MultiplePersistenceUnitsException("Multiple persistence units defined. Please specify default data source either in 'arquillian.xml' or by using @DataSource annotation");
      }
      final Node persistenceUnit = persistenceUnits.item(0);
      Node dataSource = getJtaDataSource(persistenceUnit);
      if (dataSource == null)
      {
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.persistence.core.exception.MultiplePersistenceUnitsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.