Code Review
/
aai
/
gizmo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add junit tests
[aai/gizmo.git]
/
src
/
main
/
java
/
org
/
onap
/
crud
/
service
/
CrudRestService.java
diff --git
a/src/main/java/org/onap/crud/service/CrudRestService.java
b/src/main/java/org/onap/crud/service/CrudRestService.java
index
dbe9d68
..
2af205a
100644
(file)
--- a/
src/main/java/org/onap/crud/service/CrudRestService.java
+++ b/
src/main/java/org/onap/crud/service/CrudRestService.java
@@
-72,6
+72,13
@@
public class CrudRestService {
this.graphDataService = graphDataService;
this.auth = new Auth(CrudServiceConstants.CRD_AUTH_FILE);
}
this.graphDataService = graphDataService;
this.auth = new Auth(CrudServiceConstants.CRD_AUTH_FILE);
}
+
+ // For unit testing
+ public CrudRestService(AbstractGraphDataService graphDataService, Auth auth) throws Exception {
+ this.graphDataService = graphDataService;
+ this.auth = auth;
+ }
+
public enum Action {
POST, GET, PUT, DELETE, PATCH
public enum Action {
POST, GET, PUT, DELETE, PATCH