@Test public void no_matching_property_for_default() { String parameterName = "myparam"; String id = "mycomponentid"; ComponentResources resources = mockComponentResources(); Component container = mockComponent(); PropertyAccess access = mockPropertyAccess(); ClassPropertyAdapter classPropertyAdapter = mockClassPropertyAdapter(); BindingSource bindingSource = mockBindingSource(); train_getId(resources, id); train_getContainer(resources, container); train_getAdapter(access, container, classPropertyAdapter); train_getPropertyAdapter(classPropertyAdapter, id, null); replay(); ComponentDefaultProvider source = new ComponentDefaultProviderImpl(access, bindingSource, null, null, null); assertNull(source.defaultBinding(parameterName, resources)); verify(); }
null, null); assertSame(source.defaultBinding(parameterName, resources), binding);