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

Attempting to fix module conflicts, commiting to allow a re-laod

parent 7da4a777
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"
......@@ -9,7 +9,7 @@ import org.springframework.core.NestedRuntimeException;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.platform.engine.TestDescriptor;
//import org.junit.platform.engine.TestDescriptor;
//import org.junit.platform.commons.util.Preconditions;
import org.apache.commons.logging.LogFactory;
@SpringBootTest
......
package Team5.SmartTowns;
import org.junit.jupiter.api.Test;
//import static org.testing.AssertJUnit.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.testng.annotations.Test;
//import org.testng.annotations.Test;
......@@ -8,7 +11,7 @@ import org.junit.jupiter.api.Test;
//import org.junit.platform.engine.TestDescriptor;
//import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.testng.AssertJUnit.assertEquals;
public class DBUnitTestCase {
int bb=4;
......
//package Team5.SmartTowns;
//
//import Team5.SmartTowns.Data.locationRepository;
//import Team5.SmartTowns.Data.locationRepositoryJDBC;
////import org.junit.jupiter.api.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.jdbc.core.JdbcTemplate;
//import org.springframework.test.context.jdbc.Sql;
//import org.testng.annotations.Test;
//
////import static org.junit.jupiter.api.Assertions.assertEquals;
//import static org.testng.Assert.assertEquals;
//
//@SpringBootTest
////@JdbcTest
////
//@Sql({"schema.sql", "test-data.sql"})
//public class Test5 {
//
// @Autowired
// private locationRepository locationRepo;
//
//
// @Test
//// test 1
// void whenInjectInMemoryDataSource_thenReturnCorrectEmployeeCount() {
//// locationRepositoryJDBC employeeDAO = new locationRepositoryJDBC(ajdbc);
// int aa=2;
// int bb=2;
//// employeeDAO.setJdbc(ajdbc);
// assertEquals(4, (aa+bb));
//
// }
//
//
//
//}
package Team5.SmartTowns;
import Team5.SmartTowns.Data.locationRepository;
import Team5.SmartTowns.Data.locationRepositoryJDBC;
//import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.jdbc.JdbcTest;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.jdbc.Sql;
import org.testng.annotations.Test;
//import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.testng.Assert.assertEquals;
@SpringBootTest
//@JdbcTest
//
@Sql({"schema.sql", "test-data.sql"})
public class Test5 {
@Autowired
private locationRepository locationRepo;
@Test
// test 1
void whenInjectInMemoryDataSource_thenReturnCorrectEmployeeCount() {
// locationRepositoryJDBC employeeDAO = new locationRepositoryJDBC(ajdbc);
int aa=2;
int bb=2;
// employeeDAO.setJdbc(ajdbc);
assertEquals(4, (aa+bb));
}
}
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