Repository navigation
Expand file tree
/
Copy pathMphTableIT.java
More file actions
81 lines (70 loc) · 4.58 KB
/
Copy pathMphTableIT.java
File metadata and controls
81 lines (70 loc) · 4.58 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package inttest;
import gr.gousiosg.javacg.stat.JCallGraph;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import static org.junit.Assert.assertTrue;
public class MphTableIT {
private static final Logger LOGGER = LoggerFactory.getLogger(MphTableIT.class);
@Test
public void testA(){
String [] args = {"git", "-c", "mph-table"};
JCallGraph.main(args);
}
@Test
public void testB(){
String [] args = {"build", "-j", "./artifacts/output/mph-table-1.0.6-SNAPSHOT.jar",
"-t", "./artifacts/output/mph-table-1.0.6-SNAPSHOT-tests.jar", "-o", "mph_table_graph"};
JCallGraph.main(args);
}
@Test
public void testC(){
String [] args = {"test", "-c", "mph-table", "-f", "mph_table_graph"};
JCallGraph.main(args);
}
@Test
public void testD(){
// Git Stage
Path mphJar = Paths.get(System.getProperty("user.dir"),"artifacts","output","mph-table-1.0.6-SNAPSHOT.jar");
Path mphTestJar = Paths.get(System.getProperty("user.dir"),"artifacts","output","mph-table-1.0.6-SNAPSHOT-tests.jar");
LOGGER.info("Starting Mph-Table Git Verification");
assertTrue(Files.exists(mphJar));
assertTrue(Files.exists(mphTestJar));
// Build Stage
Path mphGraph = Paths.get(System.getProperty("user.dir"),"mph_table_graph");
LOGGER.info("Starting Mph-Table Build Verification");
assertTrue(Files.exists(mphGraph));
// Test Stage
Path mphSmartByteSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartByteSerializer#canRoundTripBytes.dot");
Path mphSmartByteSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartByteSerializer#canRoundTripBytes-reachability.dot");
Path mphSmartIntegerSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartIntegerSerializer#canRoundTripIntegers.dot");
Path mphSmartIntegerSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartIntegerSerializer#canRoundTripIntegers-reachability.dot");
Path mphSmartListSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartListSerializer#canRoundTripSerializableLists.dot");
Path mphSmartListSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartListSerializer#canRoundTripSerializableLists-reachability.dot");
Path mphSmartLongSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartLongSerializer#canRoundTripLongs.dot");
Path mphSmartLongSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartLongSerializer#canRoundTripLongs-reachability.dot");
Path mphSmartPairSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartPairSerializer#canRoundTripPairs.dot");
Path mphSmartPairSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartPairSerializer#canRoundTripPairs-reachability.dot");
Path mphSmartShortSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartShortSerializer#canRoundTripShort.dot");
Path mphSmartShortSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartShortSerializer#canRoundTripShort-reachability.dot");
Path mphSmartStringSerializer = Paths.get(System.getProperty("user.dir"),"output","TestSmartStringSerializer#canRoundTripStrings.dot");
Path mphSmartStringSerializerReachability = Paths.get(System.getProperty("user.dir"),"output","TestSmartStringSerializer#canRoundTripStrings-reachability.dot");
assertTrue(Files.exists(mphSmartByteSerializer));
assertTrue(Files.exists(mphSmartByteSerializerReachability));
assertTrue(Files.exists(mphSmartIntegerSerializer));
assertTrue(Files.exists(mphSmartIntegerSerializerReachability));
assertTrue(Files.exists(mphSmartListSerializer));
assertTrue(Files.exists(mphSmartListSerializerReachability));
assertTrue(Files.exists(mphSmartLongSerializer));
assertTrue(Files.exists(mphSmartLongSerializerReachability));
assertTrue(Files.exists(mphSmartPairSerializer));
assertTrue(Files.exists(mphSmartPairSerializerReachability));
assertTrue(Files.exists(mphSmartShortSerializer));
assertTrue(Files.exists(mphSmartShortSerializerReachability));
assertTrue(Files.exists(mphSmartStringSerializer));
assertTrue(Files.exists(mphSmartStringSerializerReachability));
}
}