mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-16 07:10:48 +00:00
Fixed the datamining UI tests after I missed to import the project
This commit is contained in:
1 parent
76d2f074d0
commit
e653e176e0
2 files changed
+5
-4
No files matched your search
+2
-1
@@ -6,6 +6,7 @@ import com.google.gwt.dom.client.Style.Unit;
|
||||
import com.google.gwt.user.client.ui.DockLayoutPanel;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.sap.sse.common.settings.Settings;
|
||||
import com.sap.sse.datamining.shared.dto.StatisticQueryDefinitionDTO;
|
||||
import com.sap.sse.datamining.shared.impl.dto.QueryResultDTO;
|
||||
import com.sap.sse.datamining.ui.client.presentation.AbstractResultsPresenter;
|
||||
import com.sap.sse.datamining.ui.client.presentation.TabbedResultsPresenter;
|
||||
@@ -35,7 +36,7 @@ public class DummyResultsPresenter extends AbstractResultsPresenter<Settings> {
|
||||
* Stores <code>this</code> ResultsPresenter for test purposes.
|
||||
*/
|
||||
@Override
|
||||
public void showResult(QueryResultDTO<?> result) {
|
||||
public void showResult(StatisticQueryDefinitionDTO queryDefinition, QueryResultDTO<?> result) {
|
||||
executedResultsPresenter.add(this);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -54,15 +54,15 @@ public class TestSSEDataMiningUi extends GWTTestCase {
|
||||
presenter.registerResultsPresenter(String.class, stringResultsPresenter);
|
||||
presenter.registerResultsPresenter(Double.class, doubleResultsPresenter);
|
||||
|
||||
presenter.showResult(new DummyQueryResultDTO<>(String.class));
|
||||
presenter.showResult(null, new DummyQueryResultDTO<>(String.class));
|
||||
assertTrue(executedPresenter.size() == 1);
|
||||
assertEquals(executedPresenter.get(0), stringResultsPresenter);
|
||||
|
||||
presenter.showResult(new DummyQueryResultDTO<>(Double.class));
|
||||
presenter.showResult(null, new DummyQueryResultDTO<>(Double.class));
|
||||
assertTrue(executedPresenter.size() == 2);
|
||||
assertEquals(executedPresenter.get(1), doubleResultsPresenter);
|
||||
|
||||
presenter.showResult(new DummyQueryResultDTO<>(Number.class));
|
||||
presenter.showResult(null, new DummyQueryResultDTO<>(Number.class));
|
||||
assertTrue(executedPresenter.size() == 2);
|
||||
assertEquals(executedPresenter.get(0), stringResultsPresenter);
|
||||
assertEquals(executedPresenter.get(1), doubleResultsPresenter);
|
||||
|
||||
Reference in new issue
Block a user