@@ -0,0 +1,1720 @@
+package bg.car_wash.areas.activity.controllers;%0A%0Aimport bg.car_wash.areas.activity.service.ActivityService;%0Aimport bg.car_wash.configurations.site.PageTitle;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;%0Aimport org.springframework.boot.test.mock.mockito.MockBean;%0Aimport org.springframework.test.context.ActiveProfiles;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.ResultActions;%0A%0Aimport static org.hamcrest.Matchers.hasProperty;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.junit.Assert.*;%0Aimport static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;%0A%0A@RunWith(SpringRunner.class)%0A@WebMvcTest(ActivityController.class)%0A@ActiveProfiles(%22test%22)%0Apublic class ActivityControllerTest %7B%0A%0A%09@Autowired%0A%09private MockMvc mvc;%0A%0A%09@MockBean%0A%09private ActivityService activityService;%0A%0A%09@Test%0A%09public void getAllActivitiesGivenValidActivityModel_ShouldReturnValidActivitiesViewModel() throws Exception %7B%0A%09%09ResultActions resultActions = this.mvc.perform(get(%22/activity/all%22))%0A%09%09%09%09.andExpect(status().isOk())%0A%09%09%09%09.andExpect(view().name(%22activity/activity-all%22))%0A%09%09%09%09.andExpect(model().attribute(%22pageTitle%22, hasProperty(%22pageTitle%22, is(PageTitle.ACTIVITY_ALL_PAGE))));%0A%0A%09%7D%0A%0A%7D

create ActivityControllerTest