@Test public void expression_has_no_prefix() { BindingFactory factory = mockBindingFactory(); Binding binding = mockBinding(); ComponentResources container = mockComponentResources(); ComponentResources component = mockComponentResources(); Location l = mockLocation(); String defaultPrefix = "def"; String description = "descrip"; String expression = "full expression"; train_newBinding(factory, description, container, component, expression, l, binding); replay(); Map<String, BindingFactory> map = newMap(); map.put(defaultPrefix, factory); BindingSource source = new BindingSourceImpl(map, interner); Binding actual = source.newBinding( description, container, component, defaultPrefix, expression, l); assertSame(actual, binding); verify(); }
public Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression) { return newBinding(description, container, container, defaultPrefix, expression, null); }
BindingSourceImpl implements BindingSource { public Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression) { return newBinding(description, container, container, defaultPrefix, expression, null); } }
BindingSourceImpl implements BindingSource { public Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression) { return newBinding(description, container, container, defaultPrefix, expression, null); } BindingSourceImpl(Map<String, BindingFactory> factories, StringInterner interner); }
BindingSourceImpl implements BindingSource { public Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression) { return newBinding(description, container, container, defaultPrefix, expression, null); } BindingSourceImpl(Map<String, BindingFactory> factories, StringInterner interner); Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression); Binding newBinding(String description, ComponentResources container, ComponentResources component,
                              String defaultPrefix, String expression, Location location); }
BindingSourceImpl implements BindingSource { public Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression) { return newBinding(description, container, container, defaultPrefix, expression, null); } BindingSourceImpl(Map<String, BindingFactory> factories, StringInterner interner); Binding newBinding(String description, ComponentResources container, String defaultPrefix, String expression); Binding newBinding(String description, ComponentResources container, ComponentResources component,
                              String defaultPrefix, String expression, Location location);  }