@Test public void create_noShape() { CaseManagementShapeCommand.create(new Object(), shapeView, shapeDef); verify(shapeDef, never()).fontHandler(); verify(shapeView, never()).setTitlePosition(any(HasTitle.VerticalAlignment.class), any(HasTitle.HorizontalAlignment.class), any(HasTitle.ReferencePosition.class), any(HasTitle.Orientation.class)); verify(shapeView, never()).setTextSizeConstraints(any(HasTitle.Size.class)); }
public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) { Command command = CM_SHAPE_TYPES.get(definition.getClass()); if (command == null) { return null; } applyShapeViewHandlers(definition, shapeView, shapeDef); return command.configure(shapeView, shapeDef); }
CaseManagementShapeCommand { public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) { Command command = CM_SHAPE_TYPES.get(definition.getClass()); if (command == null) { return null; } applyShapeViewHandlers(definition, shapeView, shapeDef); return command.configure(shapeView, shapeDef); } }
CaseManagementShapeCommand { public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) { Command command = CM_SHAPE_TYPES.get(definition.getClass()); if (command == null) { return null; } applyShapeViewHandlers(definition, shapeView, shapeDef); return command.configure(shapeView, shapeDef); }  }
CaseManagementShapeCommand { public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) { Command command = CM_SHAPE_TYPES.get(definition.getClass()); if (command == null) { return null; } applyShapeViewHandlers(definition, shapeView, shapeDef); return command.configure(shapeView, shapeDef); }  static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef); }
CaseManagementShapeCommand { public static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef) { Command command = CM_SHAPE_TYPES.get(definition.getClass()); if (command == null) { return null; } applyShapeViewHandlers(definition, shapeView, shapeDef); return command.configure(shapeView, shapeDef); }  static CaseManagementShape create(Object definition, CaseManagementShapeView shapeView, CaseManagementSvgShapeDef shapeDef);  }