@Test(expected = UnsupportedOperationException.class) public void testNoHolderBinderAttached() { final RuntimeException exception = AdapterExceptions.noHolderBinderAttached(new TestAdapter()); final String adapterName = TestAdapter.class.getSimpleName(); assertThat(exception.getMessage(), is("Cannot bind view holder without holder binder attached! " + "A desired binder may be specified via " + adapterName + ".setHolderBinder(...), " + "otherwise implementation of " + adapterName + ".onBindViewHolder(...) method is required.")); assertThat(exception.getCause(), is(nullValue())); throw exception; }
@NonNull static RuntimeException noHolderBinderAttached(@NonNull final Object adapter) { final String adapterName = adapter.getClass().getSimpleName(); return new UnsupportedOperationException( "Cannot bind view holder without holder binder attached! " + "A desired binder may be specified via " + adapterName + ".setHolderBinder(...), " + "otherwise implementation of " + adapterName + ".onBindViewHolder(...) method is required." ); }
AdapterExceptions { @NonNull static RuntimeException noHolderBinderAttached(@NonNull final Object adapter) { final String adapterName = adapter.getClass().getSimpleName(); return new UnsupportedOperationException( "Cannot bind view holder without holder binder attached! " + "A desired binder may be specified via " + adapterName + ".setHolderBinder(...), " + "otherwise implementation of " + adapterName + ".onBindViewHolder(...) method is required." ); } }
AdapterExceptions { @NonNull static RuntimeException noHolderBinderAttached(@NonNull final Object adapter) { final String adapterName = adapter.getClass().getSimpleName(); return new UnsupportedOperationException( "Cannot bind view holder without holder binder attached! " + "A desired binder may be specified via " + adapterName + ".setHolderBinder(...), " + "otherwise implementation of " + adapterName + ".onBindViewHolder(...) method is required." ); } private  AdapterExceptions(); }
AdapterExceptions { @NonNull static RuntimeException noHolderBinderAttached(@NonNull final Object adapter) { final String adapterName = adapter.getClass().getSimpleName(); return new UnsupportedOperationException( "Cannot bind view holder without holder binder attached! " + "A desired binder may be specified via " + adapterName + ".setHolderBinder(...), " + "otherwise implementation of " + adapterName + ".onBindViewHolder(...) method is required." ); } private  AdapterExceptions();  }
AdapterExceptions { @NonNull static RuntimeException noHolderBinderAttached(@NonNull final Object adapter) { final String adapterName = adapter.getClass().getSimpleName(); return new UnsupportedOperationException( "Cannot bind view holder without holder binder attached! " + "A desired binder may be specified via " + adapterName + ".setHolderBinder(...), " + "otherwise implementation of " + adapterName + ".onBindViewHolder(...) method is required." ); } private  AdapterExceptions();   }