Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Team 5 - Smart Towns
Manage
Activity
Members
Labels
Plan
Issues
34
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rhys Evans
Team 5 - Smart Towns
Commits
94ea2461
Commit
94ea2461
authored
1 year ago
by
Rhys Evans
Browse files
Options
Downloads
Patches
Plain Diff
cleared cache, seems to fix xsome issues with Junit testing
parent
9daf5806
No related branches found
Branches containing commit
No related tags found
1 merge request
!40
Resolve "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"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+3
-1
3 additions, 1 deletion
build.gradle
src/test/java/testTwo.java
+26
-25
26 additions, 25 deletions
src/test/java/testTwo.java
with
29 additions
and
26 deletions
build.gradle
+
3
−
1
View file @
94ea2461
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
src/test/java/testTwo.java
+
26
−
25
View file @
94ea2461
//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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment