/* DO NOT EDIT: File is auto-generated */
package <%= to_package(dao.jpa.qualified_dao_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= dao.jpa.dao_test_name %>
  extends <%= dao.data_module.repository.jpa.qualified_base_entity_test_name %>
{
<% dao.queries.select{|q|!q.jpa.standard_query?}.each do |query| -%>
  public abstract void <%= Domgen::Naming.camelize(query.name) %>()
    throws Exception;

<% end -%>
  protected final <%= dao.jpa.qualified_dao_service_name %> service()
  {
    return s( <%= dao.jpa.qualified_dao_service_name %>.class );
  }

  protected final <%= dao.jpa.qualified_dao_name %> ejb()
  {
    return toObject( <%= dao.jpa.qualified_dao_name %>.class, service() );
  }
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(dao.jpa.qualified_dao_test_name) %>;

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public abstract class <%= dao.jpa.dao_test_name %>
  extends <%= dao.data_module.repository.ejb? ? dao.data_module.repository.ejb.qualified_base_service_test_name : dao.data_module.repository.jpa.qualified_base_entity_test_name %>
{
<% dao.queries.select{|q|!q.jpa.standard_query?}.each do |query| -%>
  public abstract void <%= Domgen::Naming.camelize(query.name) %>()
    throws Exception;

<% end -%>
  protected final <%= dao.jpa.qualified_dao_service_name %> service()
  {
    return s( <%= dao.jpa.qualified_dao_service_name %>.class );
  }

  protected final <%= dao.jpa.qualified_dao_name %> ejb()
  {
    return toObject( <%= dao.jpa.qualified_dao_name %>.class, service() );
  }
}

Update the DAO tests so that they extend the service test layer if it is generated. This is required in some scenarios when EntityListeners are injected with resources, often from the service layer. This is the scenario for the imit facet. the
Update the DAO tests so that they extend the service test layer if it is generated. This is required in some scenarios when EntityListeners are injected with resources, often from the service layer. This is the scenario for the imit facet. the
