@Test public void testSetupBindings_ThrowsExceptionForNullField() { TestView view = new TestView(); view.fieldForFieldBinding = null; assertThat(view.fieldForFieldBinding, is(nullValue())); Binder binder = new Binder(view, new TestPmo()); Assertions.assertThrows(NullPointerException.class, () -> { binder.setupBindings(bindingContext); }); }
public void setupBindings(BindingContext bindingContext) { addFieldBindings(bindingContext); addMethodBindings(bindingContext); }
Binder { public void setupBindings(BindingContext bindingContext) { addFieldBindings(bindingContext); addMethodBindings(bindingContext); } }
Binder { public void setupBindings(BindingContext bindingContext) { addFieldBindings(bindingContext); addMethodBindings(bindingContext); } Binder(Object view, Object pmo); }
Binder { public void setupBindings(BindingContext bindingContext) { addFieldBindings(bindingContext); addMethodBindings(bindingContext); } Binder(Object view, Object pmo); void setupBindings(BindingContext bindingContext); }
Binder { public void setupBindings(BindingContext bindingContext) { addFieldBindings(bindingContext); addMethodBindings(bindingContext); } Binder(Object view, Object pmo); void setupBindings(BindingContext bindingContext);  }