use of javax.persistence.metamodel.SingularAttribute in project deltaspike by apache.
the class EntityRepositoryHandlerTest method should_count_with_no_attributes.
@Test
@SuppressWarnings("unchecked")
public void should_count_with_no_attributes() {
// given
Simple simple = testData.createSimple("testFindAll1");
testData.createSimple("testFindAll2");
SingularAttribute<Simple, Object>[] attributes = new SingularAttribute[] {};
// when
Long result = repo.count(simple, attributes);
// then
assertEquals(Long.valueOf(2), result);
}
Aggregations