Skip to content

Commit

Permalink
Merge pull request #20 from cloudhubs/utils-test
Browse files Browse the repository at this point in the history
train ticket test, fixes #16
  • Loading branch information
svacina authored May 15, 2020
2 parents 71d49bd + 111b1d3 commit 26b86a4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/java/ProphetUtilsTest.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import edu.baylor.ecs.cloudhubs.prophetdto.app.ProphetAppData;
import edu.baylor.ecs.cloudhubs.prophetdto.app.utilsapp.GitReq;
import edu.baylor.ecs.cloudhubs.prophetdto.app.utilsapp.RepoReq;
import edu.baylor.ecs.cloudhubs.prophetdto.communication.ContextMap;
import edu.baylor.ecs.cloudhubs.prophetdto.mermaid.MermaidGraph;
import edu.baylor.ecs.cloudhubs.prophetdto.systemcontext.BoundedContext;
Expand All @@ -13,6 +16,8 @@
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand Down Expand Up @@ -109,4 +114,20 @@ public void getContextMap(){
assertNotNull(mg);
}


@Test
@DisplayName("prophet data")
public void testProphetData() throws IOException {
ProphetAppData data = new ProphetAppData();
GitReq request = new GitReq();
List<RepoReq> repoReqs = new ArrayList<>();
RepoReq rr = new RepoReq();
rr.setPath("/Users/svacina/git/cdh/prophet-app-utils/repos-1589488397/train-ticket");
rr.setMonolith(false);
repoReqs.add(rr);
request.setRepositories(repoReqs);
data = ProphetUtilsFacade.getProphetAppData(request);
assertNotNull(data);
}

}

0 comments on commit 26b86a4

Please sign in to comment.