Skip to content
Snippets Groups Projects
Commit 7dfc96a3 authored by Rhys Evans's avatar Rhys Evans
Browse files

further work

parent 2fa2e246
No related branches found
No related tags found
1 merge request!34Resolve "As a user, I would like a town specific page which shows all trails for that town so that I can easily see my progress"
......@@ -41,7 +41,13 @@ public class TownController {
return modelAndView;
}
public List<Location> filterByLocationForTrails(List<Location>)
public List<Location> filterByLocationForTrails(List<Location> locationList , String town){
List<Location> filteredList;
for( location:locationList){
}
}
}
package Team5.SmartTowns;
import Team5.SmartTowns.Data.Location;
import Team5.SmartTowns.Towns.TownController;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
......@@ -14,23 +15,25 @@ class SmartTownsApplicationTests {
private static TownController townController;
@Autowired
private Team5.SmartTowns.Data.locationRepository locationRepository;
private Team5.SmartTowns.Data.Location location;
// @BeforeAll
// public static void before(){}
// townController= new townController();
// location = new Location();
//}
@Test
void contextLoads() {
}
@Test
public void whenFilteringTownsByLocationsReturnOneTown() {
townController.filterByLocationForTrails()
assertEquals(, townController.filterByLocationForTrails);
}
// @Test
// public void whenFilteringTownsByLocationsReturnOneTown() {
//
// townController.filterByLocationForTrails()
//
//
// assertEquals(, townController.filterByLocationForTrails);
// }
//
//
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment