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

working on maps fix, added node/open layers dependencies

parent c73b45d2
No related branches found
No related tags found
1 merge request!30Resolve "As a user I would like to see a map of the landmarks, so that I can figure out where to go"
......@@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.1.5'
id 'io.spring.dependency-management' version '1.1.3'
id "com.github.node-gradle.node" version "7.0.1"
}
group = 'Team.5'
......@@ -34,6 +35,8 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-validation'
// https://mvnrepository.com/artifact/org.webjars/openlayers
implementation group: 'org.webjars', name: 'openlayers', version: '5.2.0'
}
tasks.named('bootBuildImage') {
......
/*@import "../../templates/towns/mapsTest/node_modules/ol/ol.css";*/
@import "../node_modules/ol/ol.css";
@import "../../templates/towns/mapsTest/node_modules/ol/ol.css";
......@@ -32,18 +32,19 @@ class SmartTownsApplicationTests {
private static JdbcTemplate jdbc;
@BeforeAll
public static void before() {
location = new Location(); }
@BeforeAll
public static void before2() {
locationRepo = new locationRepositoryJDBC(jdbc); }
location = new Location();
locationRepo = new locationRepositoryJDBC(jdbc);}
// @BeforeAll
// public static void before2() {
// locationRepo = new locationRepositoryJDBC(jdbc); }
// @Autowired
// private locationRepository locationRepository;
@Test
public void whenAddingLocationsNonApprovedLocationsDontShowInTrails(){
/// Discover number of approved/unapproved locations before adding tests
List<Location> approvedNumber = locationRepo.approvedLocations();
}
// @Test
// public void whenAddingLocationsNonApprovedLocationsDontShowInTrails(){
// /// Discover number of approved/unapproved locations before adding tests
// List<Location> approvedNumber = locationRepo.approvedLocations();
// }
//// Location loc1= new Location("TestFail", "Test@PleaseFail.test", "Fail Description here",
//// "Caerphilly", 103, false);
//// Location loc2= new Location("TestFail", "Test@PleaseFail2.test", "Fail Description here",
......
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