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