ShearchForStduentsResponseTest.java

This commit is contained in:
Filip Izydorczyk 2020-10-24 16:49:26 +02:00
parent c003198aa1
commit 468b6e6b87

View File

@ -2,11 +2,22 @@ package com.plannaplan.responses.models;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
import com.plannaplan.entities.User;
import com.plannaplan.types.UserRoles;
import org.junit.Test; import org.junit.Test;
public class SearchForStudentsResponseTest { public class SearchForStudentsResponseTest {
private static final String NAME = "Tytus";
private static final String SURNAMENAME = "Romek";
private static final String EMAIL = "i@Atomek.pl";
@Test @Test
public void shouldMapUserToResponseElement() { public void shouldMapUserToResponseElement() {
assertTrue(false); final SearchForStudentsResponse response = new SearchForStudentsResponse(
new User(NAME, SURNAMENAME, EMAIL, UserRoles.TEST_USER));
assertTrue(response.getName().equals(NAME));
assertTrue(response.getSurname().equals(SURNAMENAME));
assertTrue(response.getEmail().equals(EMAIL));
} }
} }