package com.DB.kolya;

import com.lits.kundera.test.BaseTest;
import org.junit.Assert;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
import java.io.IOException;
import java.util.List;

public class CustomTest extends BaseTest{
    
    @Override
    public void customTest() throws IOException {
        EntityManagerFactory emf = Persistence.createEntityManagerFactory("hbase_pu");
        EntityManager em = emf.createEntityManager();

        Query findQuery = em.createQuery("select p from Physician p");
        List<com.DB.kolya.Physician> allPhysicians = findQuery.getResultList();
        Assert.assertNotEquals(0, allPhysicians.size());

        Query findQuery2 = em.createQuery("select p from Patient p where p.firstName = \'Patient1\'");
        List<com.DB.kolya.Patient> patients1 = findQuery2.getResultList();
        Assert.assertNotEquals(0, patients1.size());

        Query findQuery3 = em.createQuery("select mr from MedicalRecord mr where mr.type = \'type2\'");
        List<com.DB.kolya.MedicalRecord> allRecords2 = findQuery3.getResultList();
        Assert.assertNotEquals(0, allRecords2.size());
    }
}

    

@@ -840,23 +840,25 @@
 ame = %5C'
-Patient
+FirstName
 1%5C'%22);%0A 
@@ -952,27 +952,24 @@
 t.assert
-Not
 Equals(
-0
+1
 , patien
@@ -1137,17 +1137,16 @@
 lRecords
-2
  = findQ
@@ -1212,17 +1212,16 @@
 lRecords
-2
 .size())
@@ -1221,16 +1221,20 @@
 size());
+    
 %0A    %7D%0A%7D

Update CustomTest.java