package wham;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import wham.model.User;
import wham.operation.UserOperation;

public class QueryTest {

    @Test
    public void testGetUserByEmail() {
        UserOperation operation = new UserOperation();
        User u = operation.getUser("abc@edf.com", "password");
        assertEquals(2, u.getUId());
    }

}

@@ -65,111 +65,466 @@
 ort 
-org.junit.Test;%0A%0Aimport wham.model.User;%0Aimport wham.operation.UserOperation;%0A%0Apublic class QueryTest %7B
+javax.persistence.EntityManager;%0Aimport javax.persistence.EntityManagerFactory;%0Aimport javax.persistence.Persistence;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport wham.model.User;%0Aimport wham.operation.UserOperation;%0A%0Apublic class QueryTest %7B%0A%0A    private EntityManager em;%0A%0A    @Before%0A    public void setUp() %7B%0A        EntityManagerFactory emf = Persistence.createEntityManagerFactory(%22WHAM%22);%0A        this.em = emf.createEntityManager();%0A    %7D
 %0A%0A  
@@ -622,16 +622,18 @@
 eration(
+em
 );%0A     

Fix unit test