use of com.djrapitops.plan.delivery.domain.mutators.TPSMutator in project Plan by plan-player-analytics.
the class LineGraphTest method testLineGraphsForBracketErrors.
@Test
void testLineGraphsForBracketErrors() {
TPSMutator mutator = new TPSMutator(DATA);
LineGraph[] graphs = new LineGraph[] { new CPUGraph(mutator, true), new PlayersOnlineGraph(mutator, false), new RamGraph(mutator, true), new TPSGraph(mutator, false), new EntityGraph(mutator, true), new ChunkGraph(mutator, false), new DiskGraph(mutator, false) };
for (LineGraph graph : graphs) {
System.out.print("Bracket Test: " + graph.getClass().getSimpleName() + " | ");
String series = graph.toHighChartsSeries();
System.out.println(series);
char[] chars = series.toCharArray();
assertBracketMatch(chars);
}
}
Aggregations