Action { public boolean hasDialog() { return false; }  abstract int friendlyName(); abstract String shortDescription(); abstract void doAction(Callback callback); void generateDialog(LinearLayout root); boolean hasDialog(); String toJSON(); abstract Optional<Integer> icon(); Action fromJSON(String data); @Nullable static Action instantiate(JSONObject object); void apply(Action a); public Trigger precondition; }
@Test public void hasDialogTest() { Assert.assertEquals(false, hasDialog()); generateDialog(null); }