NoxView extends View { public void setOnNoxItemClickListener(OnNoxItemClickListener listener) { validateListener(listener); this.listener = listener; } NoxView(Context context);  NoxView(Context context, AttributeSet attrs);  NoxView(Context context, AttributeSet attrs, int defStyleAttr); @TargetApi(Build.VERSION_CODES.LOLLIPOP)  NoxView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes); void showNoxItems(final List<NoxItem> noxItems); void notifyDataSetChanged(); void setShape(Shape shape); @Override boolean onTouchEvent(MotionEvent event); @Override void computeScroll(); int getMinX(); int getMaxX(); int getMinY(); int getMaxY(); int getOverSize(); Shape getShape(); void setOnNoxItemClickListener(OnNoxItemClickListener listener); void resetScroll();  }
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullInstancesOfOnNoxItemClickListener() { noxView.setOnNoxItemClickListener(null); }