use of org.robobinding.viewattribute.ViewAttributeBinder in project RoboBinding by RoboBinding.
the class ByBindingAttributeMappingsResolverTest method givenAPropertyAttribute_whenResolve_thenAResolvedPropertyViewAttributeShouldBeReturned.
@Test
public void givenAPropertyAttribute_whenResolve_thenAResolvedPropertyViewAttributeShouldBeReturned() {
PropertyViewAttributeBinder viewAttributeBinder = Mockito.mock(PropertyViewAttributeBinder.class);
ByBindingAttributeMappingsResolver byBindingAttributeMappingsResolver = newByBindingAttributeMappingsResolver(aBindingAttributeMappings().withPropertyAttribute("propertyAttribute", viewAttributeBinder).build());
Collection<ViewAttributeBinder> viewAttributes = byBindingAttributeMappingsResolver.resolve(pendingAttributesForView);
assertThat(Sets.newHashSet(viewAttributes), equalTo(Sets.<ViewAttributeBinder>newHashSet(viewAttributeBinder)));
}
Aggregations