@@ -0,0 +1,1653 @@
+package com.htisolutions.poolref.controllers;%0A%0Aimport com.htisolutions.poolref.services.ResultsService;%0Aimport com.htisolutions.poolref.viewModels.ResultEntryViewModel;%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.security.test.context.support.WithMockUser;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0Aimport org.springframework.test.web.servlet.MockMvc;%0Aimport org.springframework.test.web.servlet.request.MockMvcRequestBuilders;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Date;%0Aimport java.util.List;%0A%0Aimport static org.mockito.BDDMockito.given;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;%0Aimport static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;%0A%0A%0A@RunWith(SpringRunner.class)%0A@WebMvcTest(ResultsController.class)%0A@WithMockUser%0Apublic class ResultsControllerTest %7B%0A%0A    @Autowired%0A    private MockMvc mvc;%0A%0A    @MockBean%0A    private ResultsService resultsService;%0A%0A    @Test%0A    public void validateFormName() throws Exception %7B%0A        List%3CResultEntryViewModel%3E results = new ArrayList%3C%3E();%0A        results.add(new ResultEntryViewModel(new Date().toString(), %22bm15731%22, %22gc15xxx%22));%0A        given(resultsService.getResults()).willReturn(results);%0A%0A        mvc.perform(MockMvcRequestBuilders.get(%22/results/%22))%0A                .andExpect(status().isOk())%0A                .andExpect(view().name(%22views/results%22));%0A    %7D%0A%7D%0A

Add results controller unit test