@Test public void getResourceIdsReturnsResourceIdsPassedInConstructorViaBindings(){ AdapterItemBinding adapterItemBinding = new AdapterItemBinding(2, new TextBinder(0,new ViewModelColumn("TABLE_NAME", "COLUMN_NAME", Column.Type.text))); Set<Integer> resourceIds = adapterItemBinding.getResourceIds(); assertThat(resourceIds).containsExactly(0); final Set<Binding> bindings = new HashSet<Binding>(); bindings.add(new TextBinder(0, new ViewModelColumn("TABLE_NAME", "COLUMN_NAME_0", Column.Type.text))); bindings.add(new TextBinder(1, new ViewModelColumn("TABLE_NAME", "COLUMN_NAME_1", Column.Type.text))); adapterItemBinding = new AdapterItemBinding(2, bindings); resourceIds = adapterItemBinding.getResourceIds(); assertThat(resourceIds).containsExactly(0, 1); }
public Set<Integer> getResourceIds() { return mResourceIds; }
AdapterItemBinding { public Set<Integer> getResourceIds() { return mResourceIds; } }
AdapterItemBinding { public Set<Integer> getResourceIds() { return mResourceIds; } AdapterItemBinding(final int layoutResourceId);  AdapterItemBinding(final int layoutResourceId, final Binding binding);  AdapterItemBinding(final int layoutResourceId, final Set<Binding> bindings); }
AdapterItemBinding { public Set<Integer> getResourceIds() { return mResourceIds; } AdapterItemBinding(final int layoutResourceId);  AdapterItemBinding(final int layoutResourceId, final Binding binding);  AdapterItemBinding(final int layoutResourceId, final Set<Binding> bindings); void addBinding(final Binding binding); int getLayoutResourceId(); Set<Integer> getResourceIds(); void bind(final Context context, final View view, final Cursor cursor); }
AdapterItemBinding { public Set<Integer> getResourceIds() { return mResourceIds; } AdapterItemBinding(final int layoutResourceId);  AdapterItemBinding(final int layoutResourceId, final Binding binding);  AdapterItemBinding(final int layoutResourceId, final Set<Binding> bindings); void addBinding(final Binding binding); int getLayoutResourceId(); Set<Integer> getResourceIds(); void bind(final Context context, final View view, final Cursor cursor);  }