@Test public void testOpenModal() { final DataTypeListItem listItem = mock(DataTypeListItem.class); final String constraint = "1,2,3"; final String type = "string"; final BiConsumer<String, ConstraintType> onShowConsumer = (s, c) -> { }; doReturn(listItem).when(dataTypeConstraint).getListItem(); doReturn(constraint).when(dataTypeConstraint).getValue(); doReturn(onShowConsumer).when(dataTypeConstraint).getOnShowConsumer(); when(listItem.getType()).thenReturn(type); dataTypeConstraint.openModal(); constraintModal.load(type, constraint, ENUMERATION); constraintModal.show(onShowConsumer); }
void openModal() { constraintModal().load(getListItem().getType(), getValue(), getConstraintType()); constraintModal().show(getOnShowConsumer()); }
DataTypeConstraint { void openModal() { constraintModal().load(getListItem().getType(), getValue(), getConstraintType()); constraintModal().show(getOnShowConsumer()); } }
DataTypeConstraint { void openModal() { constraintModal().load(getListItem().getType(), getValue(), getConstraintType()); constraintModal().show(getOnShowConsumer()); } @Inject  DataTypeConstraint(final View view,
                              final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); }
DataTypeConstraint { void openModal() { constraintModal().load(getListItem().getType(), getValue(), getConstraintType()); constraintModal().show(getOnShowConsumer()); } @Inject  DataTypeConstraint(final View view,
                              final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getValue(); ConstraintType getConstraintType(); HTMLElement getElement(); void enableEditMode(); void disableEditMode(); void refreshView(); void disable(); void enable(); }
DataTypeConstraint { void openModal() { constraintModal().load(getListItem().getType(), getValue(), getConstraintType()); constraintModal().show(getOnShowConsumer()); } @Inject  DataTypeConstraint(final View view,
                              final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getValue(); ConstraintType getConstraintType(); HTMLElement getElement(); void enableEditMode(); void disableEditMode(); void refreshView(); void disable(); void enable();  }