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

cleared cache, seems to fix xsome issues with Junit testing

parent 9daf5806
No related branches found
No related tags found
1 merge request!40Resolve "As a user I would like to see a map containing all landmarks for a trail and a suggested path between them, so that I can easily follow the trail"
......@@ -38,7 +38,9 @@ dependencies {
// https://mvnrepository.com/artifact/org.webjars/openlayers
implementation group: 'org.webjars', name: 'openlayers', version: '5.2.0'
// testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
// testImplementation 'org.junit.vintage.engine-API:5.01'
// https://mvnrepository.com/artifact/org.junit.vintage/junit-vintage-engine
testImplementation group: 'org.junit.vintage', name: 'junit-vintage-engine', version: '5.7.0'
// https://mvnrepository.com/artifact/org.junit.vintage/junit-vintage-engine
// testImplementation group: 'org.junit.vintage', name: 'junit-vintage-engine', version: '5.0.1'
......
//package Team5.SmartTowns.data;
import org.junit.platform.commons.util.Preconditions;
//import org.junit.platform.commons.util.Preconditions;
//
import Team5.SmartTowns.data.Location;
import Team5.SmartTowns.data.LocationRepository;
import Team5.SmartTowns.data.LocationRepositoryJDBC;
......@@ -15,34 +15,35 @@ import org.springframework.jdbc.core.RowMapper;
import static org.junit.jupiter.api.Assertions.assertEquals;
@SpringBootTest
//@SpringBootTest
public class testTwo {
//
//private JdbcTemplate jdbcTemplate;
//private LocationRepositoryJDBC locationRepositoryJDBC;
//
//private RowMapper<Location> locationMapper;
//
//@Autowired
// LocationRepository locationRepository;
//
//
//@Autowired
// public void LocationRepositoryJDBC(JdbcTemplate jdbc){
// this.jdbcTemplate = jdbc;
// locationRepositoryJDBC = new LocationRepositoryJDBC(jdbc);
//}
//
//
//@BeforeAll
//void setUp(){
// locationRepository.getAllLocation();
//}
private JdbcTemplate jdbcTemplate;
private LocationRepositoryJDBC locationRepositoryJDBC;
private RowMapper<Location> locationMapper;
@Autowired
private LocationRepository locationRepository;
@Autowired
public void LocationRepositoryJDBC(JdbcTemplate jdbc){
this.jdbcTemplate = jdbc;
locationRepositoryJDBC = new LocationRepositoryJDBC(jdbc);
}
@BeforeAll
public static void setUp(){
locationRepository = new LocationRepositoryJDBC.getAllLocation();
// locationRepository = (LocationRepositoryJDBC) locationRepository.getAllLocation();
}
@Test
public void test(){
assertEquals(1,1);
int aa=1;
assertEquals(1,aa);
}
......
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