use of com.opensymphony.xwork2.conversion.impl.FooBarConverter in project struts by apache.
the class PropertyTest method testTypeConverterReturningNullShouldLeadToDisplayOfDefaultValue.
public void testTypeConverterReturningNullShouldLeadToDisplayOfDefaultValue() {
final ValueStack stack = ActionContext.getContext().getValueStack();
converter.registerConverter("org.apache.struts2.components.PropertyTest$FooBar", new FooBarConverter());
stack.push(new FooBar("foo-value", null));
final Property property = new Property(stack);
property.setDefault("default");
property.setValue("top");
assertPropertyOutput("default", property);
}
Aggregations