mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-10 04:41:26 +01:00
Fixed broken tests
This commit is contained in:
parent
4a20d4417a
commit
a236c1e98b
@ -39,6 +39,7 @@ import main.java.com.djrapitops.plan.locale.Msg;
|
|||||||
import main.java.com.djrapitops.plan.systems.cache.DataCache;
|
import main.java.com.djrapitops.plan.systems.cache.DataCache;
|
||||||
import main.java.com.djrapitops.plan.systems.cache.GeolocationCache;
|
import main.java.com.djrapitops.plan.systems.cache.GeolocationCache;
|
||||||
import main.java.com.djrapitops.plan.systems.info.BukkitInformationManager;
|
import main.java.com.djrapitops.plan.systems.info.BukkitInformationManager;
|
||||||
|
import main.java.com.djrapitops.plan.systems.info.ImporterManager;
|
||||||
import main.java.com.djrapitops.plan.systems.info.InformationManager;
|
import main.java.com.djrapitops.plan.systems.info.InformationManager;
|
||||||
import main.java.com.djrapitops.plan.systems.info.server.ServerInfoManager;
|
import main.java.com.djrapitops.plan.systems.info.server.ServerInfoManager;
|
||||||
import main.java.com.djrapitops.plan.systems.listeners.*;
|
import main.java.com.djrapitops.plan.systems.listeners.*;
|
||||||
|
@ -329,7 +329,7 @@ public class DatabaseTest {
|
|||||||
commitTest();
|
commitTest();
|
||||||
|
|
||||||
List<String> saved = worldTable.getWorlds();
|
List<String> saved = worldTable.getWorlds();
|
||||||
assertEquals(worlds, saved);
|
assertEquals(new HashSet<>(worlds), new HashSet<>(saved));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveTwoWorlds() throws SQLException {
|
private void saveTwoWorlds() throws SQLException {
|
||||||
|
@ -44,15 +44,16 @@ public class GraphTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGraphCreators() {
|
public void testGraphCreators() {
|
||||||
assertEquals("[[0,0.0],[9,9.0]]", CPUGraphCreator.buildSeriesDataString(tpsList));
|
String expected = "[[0,0.0],[1,1.0],[2,2.0],[3,3.0],[4,4.0],[5,5.0],[6,6.0],[7,7.0],[8,8.0],[9,9.0]]";
|
||||||
assertEquals("[[0,0.0],[9,9.0]]", PlayerActivityGraphCreator.buildSeriesDataString(tpsList));
|
assertEquals(expected, CPUGraphCreator.buildSeriesDataString(tpsList));
|
||||||
|
assertEquals(expected, PlayerActivityGraphCreator.buildSeriesDataString(tpsList));
|
||||||
// TODO Fix TimeZone Dependency of this test
|
// TODO Fix TimeZone Dependency of this test
|
||||||
// assertEquals("[{x:3600000, y:3, z:14, marker: { radius:14}},]", PunchCardGraphCreator.createDataSeries(sessionList));
|
// assertEquals("[{x:3600000, y:3, z:14, marker: { radius:14}},]", PunchCardGraphCreator.createDataSeries(sessionList));
|
||||||
|
|
||||||
assertEquals("[[0,0.0],[9,9.0]]", RamGraphCreator.buildSeriesDataString(tpsList));
|
assertEquals(expected, RamGraphCreator.buildSeriesDataString(tpsList));
|
||||||
assertEquals("[[0,0.0],[9,9.0]]", TPSGraphCreator.buildSeriesDataString(tpsList));
|
assertEquals(expected, TPSGraphCreator.buildSeriesDataString(tpsList));
|
||||||
assertEquals("[[0,0.0],[9,9.0]]", WorldLoadGraphCreator.buildSeriesDataStringChunks(tpsList));
|
assertEquals(expected, WorldLoadGraphCreator.buildSeriesDataStringChunks(tpsList));
|
||||||
assertEquals("[[0,0.0],[9,9.0]]", WorldLoadGraphCreator.buildSeriesDataStringEntities(tpsList));
|
assertEquals(expected, WorldLoadGraphCreator.buildSeriesDataStringEntities(tpsList));
|
||||||
assertEquals("[{'code':'1','value':1},{'code':'2','value':2},{'code':'3','value':3},{'code':'4','value':4},{'code':'5','value':5},{'code':'6','value':6},{'code':'7','value':7},{'code':'8','value':8},{'code':'9','value':9}]", WorldMapCreator.createDataSeries(geoList));
|
assertEquals("[{'code':'1','value':1},{'code':'2','value':2},{'code':'3','value':3},{'code':'4','value':4},{'code':'5','value':5},{'code':'6','value':6},{'code':'7','value':7},{'code':'8','value':8},{'code':'9','value':9}]", WorldMapCreator.createDataSeries(geoList));
|
||||||
assertEquals("[[{name:'WORLD',y:0,drilldown: 'WORLD'}], [{name:'WORLD', id:'WORLD',data: []}]]", Arrays.toString(WorldPieCreator.createSeriesData(worldTimes)));
|
assertEquals("[[{name:'WORLD',y:0,drilldown: 'WORLD'}], [{name:'WORLD', id:'WORLD',data: []}]]", Arrays.toString(WorldPieCreator.createSeriesData(worldTimes)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user