@Test public void testProperties() { doReturn(jsonObject).when(dateSelectorView).makeJsonObject(); dateSelectorView.properties(); verify(dateSelectorView).makeJsonObject(); verify(jsonObject).put("format", new JSONString("d M yyyy")); }
JSONObject properties() { final JSONObject jsonObject = makeJsonObject(); jsonObject.put("format", new JSONString("d M yyyy")); return jsonObject; }
DateSelectorView implements DateSelector.View { JSONObject properties() { final JSONObject jsonObject = makeJsonObject(); jsonObject.put("format", new JSONString("d M yyyy")); return jsonObject; } }
DateSelectorView implements DateSelector.View { JSONObject properties() { final JSONObject jsonObject = makeJsonObject(); jsonObject.put("format", new JSONString("d M yyyy")); return jsonObject; } @Inject  DateSelectorView(final HTMLInputElement dateInput,
                            final DateValueFormatter valueFormatter); }
DateSelectorView implements DateSelector.View { JSONObject properties() { final JSONObject jsonObject = makeJsonObject(); jsonObject.put("format", new JSONString("d M yyyy")); return jsonObject; } @Inject  DateSelectorView(final HTMLInputElement dateInput,
                            final DateValueFormatter valueFormatter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void onValueChanged(final Consumer<Event> onValueChanged); @Override void select(); @EventHandler("date-input") void onDateInputBlur(final BlurEvent blurEvent); @Override void onValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override boolean isChildOfView(final Object element); @Override void init(final DateSelectorView presenter); }
DateSelectorView implements DateSelector.View { JSONObject properties() { final JSONObject jsonObject = makeJsonObject(); jsonObject.put("format", new JSONString("d M yyyy")); return jsonObject; } @Inject  DateSelectorView(final HTMLInputElement dateInput,
                            final DateValueFormatter valueFormatter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void onValueChanged(final Consumer<Event> onValueChanged); @Override void select(); @EventHandler("date-input") void onDateInputBlur(final BlurEvent blurEvent); @Override void onValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override boolean isChildOfView(final Object element); @Override void init(final DateSelectorView presenter);  }