From 468b6e6b874cadcc0763d20ac20bd2f612260eca Mon Sep 17 00:00:00 2001 From: Filip Izydorczyk Date: Sat, 24 Oct 2020 16:49:26 +0200 Subject: [PATCH] ShearchForStduentsResponseTest.java --- .../models/SearchForStudentsResponseTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/restservice/src/test/java/com/plannaplan/responses/models/SearchForStudentsResponseTest.java b/restservice/src/test/java/com/plannaplan/responses/models/SearchForStudentsResponseTest.java index 7068159..d28f51d 100755 --- a/restservice/src/test/java/com/plannaplan/responses/models/SearchForStudentsResponseTest.java +++ b/restservice/src/test/java/com/plannaplan/responses/models/SearchForStudentsResponseTest.java @@ -2,11 +2,22 @@ package com.plannaplan.responses.models; import static org.junit.jupiter.api.Assertions.assertTrue; +import com.plannaplan.entities.User; +import com.plannaplan.types.UserRoles; + import org.junit.Test; public class SearchForStudentsResponseTest { + private static final String NAME = "Tytus"; + private static final String SURNAMENAME = "Romek"; + private static final String EMAIL = "i@Atomek.pl"; + @Test 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)); } }