private void parseAndPutMetaAttribute(AttributeModel attribute, MutableAttributeMap<Object> attributes) { String name = attribute.getName(); String value = attribute.getValue(); attributes.put(name, parseAttributeValueIfNecessary(attribute, value)); }
private void parseAndPutMetaAttribute(AttributeModel attribute, MutableAttributeMap<Object> attributes) { String name = attribute.getName(); String value = attribute.getValue(); attributes.put(name, parseAttributeValueIfNecessary(attribute, value)); }
private void parseAndPutMetaAttribute(AttributeModel attribute, MutableAttributeMap attributes) { String name = attribute.getName(); String value = attribute.getValue(); attributes.put(name, parseAttributeValueIfNecessary(attribute, value)); }
public void testCustomFlowAttribute() { ClassPathResource resource = new ClassPathResource("flow-custom-attribute.xml", getClass()); FlowModelBuilder builder = new XmlFlowModelBuilder(resource, registry); builder.init(); builder.build(); FlowModel flow = builder.getFlowModel(); assertEquals("bar", flow.getAttributes().get(0).getValue()); assertEquals("number", flow.getAttributes().get(1).getName()); }
public void testMergeParentCreateCopy() { AttributeModel parent = new AttributeModel("foo", "bar"); AttributeModel child = null; FlowModel model = new FlowModel(); child = (AttributeModel) model.merge(child, parent); assertEquals("bar", child.getValue()); assertNotSame(parent, child); }
public void testMergeModel() { AttributeModel parent = new AttributeModel("foo", "bar"); AttributeModel child = new AttributeModel("foo", null); FlowModel model = new FlowModel(); model.merge(child, parent); assertEquals("bar", child.getValue()); }
public void testCopyModel() { AttributeModel model = new AttributeModel("foo", "bar"); FlowModel m = new FlowModel(); AttributeModel copy = (AttributeModel) m.copy(model); assertEquals("foo", copy.getName()); assertEquals("bar", copy.getValue()); }
assertEquals("foo", child.getValidationHints()); assertEquals("fooView", child.getView()); assertEquals("bar", child.getAttributes().get(0).getValue()); assertEquals("foo", child.getBinder().getBindings().get(0).getProperty()); assertEquals("bar", child.getTransitions().get(0).getTo());