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> allJohns = findQuery2.getResultList();
        Assert.assertEquals(1, allJohns.size());

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

}

@@ -331,16 +331,20 @@
 seTest%7B%0A
+    
 %0A    @Ov
@@ -630,24 +630,20 @@
 ist%3Ccom.
-DB.kolya
+kek5
 .Physici
@@ -867,24 +867,20 @@
 ist%3Ccom.
-DB.kolya
+kek5
 .Patient
@@ -881,24 +881,25 @@
 atient%3E 
-allJohns
+patients1
  = findQ
@@ -946,26 +946,30 @@
 sert
+Not
 Equals(
-1, allJohns
+0, patients1
 .siz
@@ -1096,24 +1096,20 @@
 ist%3Ccom.
-DB.kolya
+kek5
 .Medical
@@ -1126,16 +1126,17 @@
 lRecords
+2
  = findQ
@@ -1179,23 +1179,27 @@
 t.assert
+Not
 Equals(
+0
 , allRec
@@ -1202,16 +1202,17 @@
 lRecords
+2
 .size())
@@ -1223,7 +1223,12 @@
   %7D%0A
-%0A
 %7D%0A
+%0A    %0A

Update CustomTest.java