Search in sources :

Example 11 with TPSMutator

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);
    }
}
Also used : TPSMutator(com.djrapitops.plan.delivery.domain.mutators.TPSMutator) Test(org.junit.jupiter.api.Test)

Aggregations

TPSMutator (com.djrapitops.plan.delivery.domain.mutators.TPSMutator)11 Database (com.djrapitops.plan.storage.database.Database)7 HashMap (java.util.HashMap)5 TPS (com.djrapitops.plan.gathering.domain.TPS)3 SessionsMutator (com.djrapitops.plan.delivery.domain.mutators.SessionsMutator)2 ServerUUID (com.djrapitops.plan.identification.ServerUUID)2 DateObj (com.djrapitops.plan.delivery.domain.DateObj)1 ServerDto (com.djrapitops.plan.delivery.domain.datatransfer.ServerDto)1 PlayerKillMutator (com.djrapitops.plan.delivery.domain.mutators.PlayerKillMutator)1 PlayersOnlineResolver (com.djrapitops.plan.delivery.domain.mutators.PlayersOnlineResolver)1 Formatter (com.djrapitops.plan.delivery.formatting.Formatter)1 Formatters (com.djrapitops.plan.delivery.formatting.Formatters)1 Graphs (com.djrapitops.plan.delivery.rendering.json.graphs.Graphs)1 LineGraph (com.djrapitops.plan.delivery.rendering.json.graphs.line.LineGraph)1 LineGraphFactory (com.djrapitops.plan.delivery.rendering.json.graphs.line.LineGraphFactory)1 ExtensionTabData (com.djrapitops.plan.extension.implementation.results.ExtensionTabData)1 ExtensionServerTableDataQuery (com.djrapitops.plan.extension.implementation.storage.queries.ExtensionServerTableDataQuery)1 ServerUptimeCalculator (com.djrapitops.plan.gathering.ServerUptimeCalculator)1 SessionCache (com.djrapitops.plan.gathering.cache.SessionCache)1 com.djrapitops.plan.gathering.domain (com.djrapitops.plan.gathering.domain)1