"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-webui/src/test/java/net/anotheria/moskito/webui/dashboards/DashboardsAPITest.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

DashboardsAPITest.java  (moskito-moskito-2.9.3):DashboardsAPITest.java  (moskito-moskito-2.10.0)
skipping to change at line 59 skipping to change at line 59
ensureTestWorked(4, "E"); ensureTestWorked(4, "E");
} }
@Test public void removeChartFromDashboardRemoveMiddleElement() throws AP IException{ @Test public void removeChartFromDashboardRemoveMiddleElement() throws AP IException{
api.removeChartFromDashboard("testDashboard", new String[]{"C1", "C2", "C3"}); api.removeChartFromDashboard("testDashboard", new String[]{"C1", "C2", "C3"});
ensureTestWorked(4, "C"); ensureTestWorked(4, "C");
} }
private void ensureTestWorked(int expectedSize, String expectedMissingNam e) throws APIException{ private void ensureTestWorked(int expectedSize, String expectedMissingNam e) throws APIException{
ChartConfig[] charts = api.getDashboardConfig("testDashboard").ge tCharts(); ChartConfig[] charts = api.getDashboardConfig("testDashboard").ge tCharts();
//System.out.println("Checking 4 "+expectedMissingName+" against "+ Arrays.toString(charts));
assertEquals(expectedSize, charts.length); assertEquals(expectedSize, charts.length);
for (ChartConfig c : charts){ for (ChartConfig c : charts){
assertNotEquals(expectedMissingName, c.getCaption()); assertNotEquals(expectedMissingName, c.getCaption());
} }
} }
@Before public void prepareMoskitoConfig(){ @Before public void prepareMoskitoConfig(){
MoskitoConfiguration myConfig = new MoskitoConfiguration(); MoskitoConfiguration myConfig = new MoskitoConfiguration();
DashboardConfig myFirstDashboard = new DashboardConfig(); DashboardConfig myFirstDashboard = new DashboardConfig();
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)