ActionTest

This commit is contained in:
Milos Kozak 2019-03-30 23:11:22 +01:00
parent bad6edfb8b
commit 6a365b3483

View file

@ -23,7 +23,6 @@ public class ActionTest extends Action {
@Override @Override
void doAction(Callback callback) { void doAction(Callback callback) {
} }
@Override @Override
@ -31,6 +30,12 @@ public class ActionTest extends Action {
return null; return null;
} }
@Test
public void hasDialogTest() {
Assert.assertEquals(false, hasDialog());
generateDialog(null); // coverage only
}
@Test @Test
public void toJSONTest() { public void toJSONTest() {
Assert.assertEquals("{\"type\":\"info.nightscout.androidaps.plugins.general.automation.actions.ActionTest\"}", toJSON()); Assert.assertEquals("{\"type\":\"info.nightscout.androidaps.plugins.general.automation.actions.ActionTest\"}", toJSON());