@Test public void testSetFormStatusError() { PowerMockito.mockStatic(DOMUtil.class); StyleHelper.setFormStatus(form, FormStatus.ERROR); verifyStatic(); DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); }
public static void setFormStatus(final HTMLElement form, final FormStatus status) { if (status.equals(FormStatus.ERROR)) { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); } else { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.NONE); } }
StyleHelper { public static void setFormStatus(final HTMLElement form, final FormStatus status) { if (status.equals(FormStatus.ERROR)) { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); } else { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.NONE); } } }
StyleHelper { public static void setFormStatus(final HTMLElement form, final FormStatus status) { if (status.equals(FormStatus.ERROR)) { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); } else { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.NONE); } }  }
StyleHelper { public static void setFormStatus(final HTMLElement form, final FormStatus status) { if (status.equals(FormStatus.ERROR)) { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); } else { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.NONE); } }  static void setFormStatus(final HTMLElement form,
                                     final FormStatus status); }
StyleHelper { public static void setFormStatus(final HTMLElement form, final FormStatus status) { if (status.equals(FormStatus.ERROR)) { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.ERROR); } else { DOMUtil.addUniqueEnumStyleName(form, ValidationState.class, ValidationState.NONE); } }  static void setFormStatus(final HTMLElement form,
                                     final FormStatus status);  }