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

commiting

parents 520fd39c 726b6dbf
Branches
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"
This commit is part of merge request !34. Comments created here will be created in the context of that merge request.
Showing
with 15 additions and 52 deletions
//package Team5.SmartTowns.data;
//
//import org.junit.jupiter.api.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.jdbc.core.JdbcTemplate;
//import org.springframework.jdbc.core.RowMapper;
//
//@SpringBootTest
//class LocationRepositoryJDBCTest {
// private JdbcTemplate jdbcTemplate;
// private LocationRepositoryJDBC locationRepositoryJDBC;
//
// private RowMapper<Location> locationMapper;
//
//
// @Autowired
// public void setlocationMapper(){
// locationMapper = (rs, i) -> new Location(
//
// rs.getString("locationName"),
// rs.getString("locationEmail"),
// rs.getString("locationDescription"),
// rs.getString("locationPlace"),
// rs.getString("locationTrailID"),
// rs.getBoolean("locationApproved")
// );
// }
// @Autowired
// public void LocationRepositoryJDBC(JdbcTemplate jdbc){
// this.jdbcTemplate = jdbc;
// locationRepositoryJDBC = new LocationRepositoryJDBC(jdbc);
// }
//
//
//
//
// @Test
// public void test(){
//
// }
//
//
//}
\ No newline at end of file
package Team5.SmartTowns;
package Team5.SmartTownsOld;
import org.junit.jupiter.api.Test;
......
package Team5.SmartTowns;
package Team5.SmartTownsOld;
import javax.sql.DataSource;
import org.springframework.context.annotation.Bean;
......
package Team5.SmartTowns;
package Team5.SmartTownsOld;
import Team5.SmartTowns.data.Location;
import Team5.SmartTowns.data.LocationRepository;
......
package Team5.SmartTowns;
package Team5.SmartTownsOld;
//import Team5.SmartTowns.Data.Location;
//import Team5.SmartTowns.Data.LocationRepositoryJDBC;
......
package Team5.SmartTowns;
package Team5.SmartTownsOld;
import Team5.SmartTowns.data.LocationRepository;
//import org.junit.jupiter.api.Test;
......
package Team5.SmartTowns;
package Team5.SmartTownsOld;
import Team5.SmartTowns.data.LocationRepository;
import Team5.SmartTowns.data.TrailsRepository;
......
package Team5.SmartTowns.data;
package Team5.SmartTownsOld.data;
class LocationTest {
......
package Team5.SmartTowns.placeswithcoordinates;
package Team5.SmartTownsOld.placeswithcoordinates;
import Team5.SmartTowns.placeswithcoordinates.LocationsCoordinates;
import Team5.SmartTowns.placeswithcoordinates.PlacesCoordinatesRepository;
import org.junit.jupiter.api.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
......
package Team5.SmartTowns;
package Team5.SmartTownsOld;
import Team5.SmartTowns.rewards.RewardsRepository;
import Team5.SmartTowns.users.NewUser;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment