use of org.apache.tapestry5.internal.bindings.InternalPropBinding in project tapestry-5 by apache.
the class InternalComponentResourcesImplTest method get_property_name_internal_prop_binding.
@Test
public void get_property_name_internal_prop_binding() {
Component component = mockComponent();
Instantiator ins = mockInstantiator(component);
ComponentModel model = mockComponentModel();
ComponentPageElement element = mockComponentPageElement();
Page page = mockPage();
InternalPropBinding binding = newMock(InternalPropBinding.class);
train_getModel(ins, model);
expect(binding.getPropertyName()).andReturn("foo");
replay();
InternalComponentResources resources = new InternalComponentResourcesImpl(page, element, null, null, null, null, ins, false);
resources.bindParameter("bar", binding);
assertEquals(resources.getPropertyName("bar"), "foo");
verify();
}
Aggregations