Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

train ticket test #20

Merged
merged 1 commit into from
May 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}

}