Skip to content
Snippets Groups Projects
locationRepositoryJDBCTest.java 1.19 KiB
Newer Older
//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;
//class LocationRepositoryJDBCTest {
//    private JdbcTemplate jdbcTemplate;
//    private LocationRepositoryJDBC locationRepositoryJDBC;
//    private RowMapper<Location> locationMapper;
//    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);
//    public void test(){
//