src/test/java/com/blazebit/persistence/bugs/IssueTest.java
/***************************************************************************
     * Test JPA criteria query like this
     **************************************************************************/
Test JPA criteria query like this
Test JPA criteria query like this
@Test
    public void testCriteriaQuery() {
        BlazeCriteriaBuilder criteriaBuilder = BlazeCriteria.get(em, cbf);
        BlazeCriteriaQuery<Person> query = criteriaBuilder.createQuery(Person.class);
        List<Person> result = query.getResultList();
        assertEquals(0, result.size());
    }
@ Test public void testCriteriaQuery ( ) { BlazeCriteriaBuilder criteriaBuilder = BlazeCriteria . get ( em , cbf ) ; BlazeCriteriaQuery < Person > query = criteriaBuilder . createQuery ( Person . class ) ; List < Person > result = query . getResultList ( ) ; assertEquals ( 0 , result . size ( ) ) ; }
Test JPA criteria query like this
Test JPA criteria query like this