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

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public class <%= repository.jpa.aggregate_entity_test_name %>
{
  @org.testng.annotations.Test
  public void ensureTestsPresent()
    throws java.lang.Exception
  {
<%
  repository.data_modules.select{|dm|dm.jpa?}.each do |data_module|
    data_module.daos.select{|d|d.jpa? && d.queries.any?{|q|!q.jpa.standard_query?}}.each do |dao|
-%>
    org.testng.Assert.assertFalse( java.lang.reflect.Modifier.isAbstract( <%= dao.jpa.qualified_concrete_dao_test_name %>.class.getModifiers() ) );
<% dao.queries.select{|q|!q.jpa.standard_query?}.each do |query| -%>
    org.testng.Assert.assertNotNull( <%= dao.jpa.qualified_concrete_dao_test_name %>.class.getMethod( "<%= Reality::Naming.camelize(query.name) %>" ).getAnnotation( org.testng.annotations.Test.class ) );
<% end -%>
<%
    end
  end
-%>
  }
}

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

@java.lang.SuppressWarnings( { "UnusedDeclaration" } )
@javax.annotation.Generated( "Domgen" )
public class <%= repository.jpa.aggregate_entity_test_name %>
{
  @org.testng.annotations.Test
  public void ensureTestsPresent()
    throws java.lang.Exception
  {
<%
  repository.data_modules.select{|dm|dm.jpa?}.each do |data_module|
    data_module.daos.select{|d|d.jpa? && d.queries.any?{|q|q.jpa? && !q.jpa.standard_query?}}.each do |dao|
-%>
    org.testng.Assert.assertFalse( java.lang.reflect.Modifier.isAbstract( <%= dao.jpa.qualified_concrete_dao_test_name %>.class.getModifiers() ) );
<% dao.queries.select{|q|q.jpa? && !q.jpa.standard_query?}.each do |query| -%>
    org.testng.Assert.assertNotNull( <%= dao.jpa.qualified_concrete_dao_test_name %>.class.getMethod( "<%= Reality::Naming.camelize(query.name) %>" ).getAnnotation( org.testng.annotations.Test.class ) );
<% end -%>
<%
    end
  end
-%>
  }
}

Support non-jpa queries that are omitted for finders
Support non-jpa queries that are omitted for finders
