blob: 51dfca33a2c292e61ea4d21f74fce10f4339a23d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
package org.openecomp.sdc.asdctool.impl;
import java.nio.file.NoSuchFileException;
import org.junit.Test;
public class GraphJsonValidatorTest {
private GraphJsonValidator createTestSubject() {
return new GraphJsonValidator();
}
@Test
public void testVerifyTitanJson() throws Exception {
GraphJsonValidator testSubject;
boolean result;
// default test
testSubject = createTestSubject();
result = testSubject.verifyTitanJson("src/test/resources/graph.json");
}
@Test
public void testVerifyTitanJsonErrorFile() throws Exception {
GraphJsonValidator testSubject;
boolean result;
// default test
testSubject = createTestSubject();
result = testSubject.verifyTitanJson("src/test/resources/graphError.json");
}
@Test(expected=NoSuchFileException.class)
public void testVerifyTitanJsonNoFile() throws Exception {
GraphJsonValidator testSubject;
boolean result;
// default test
testSubject = createTestSubject();
result = testSubject.verifyTitanJson("stam");
}
}
|