@Test(expected = WrongItemException.class) public void errorBuilderCannotHandleItem() throws Exception { ErrorHandler.errorBuilderCannotHandleItem(mBuilder, new Object()); }
public static void errorBuilderCannotHandleItem(Builder builder, Object item) { throw new WrongItemException( "Builder: " + builder.getClass().getSimpleName() + " cannot handle item: " + item.getClass() .getSimpleName()); }
ErrorHandler { public static void errorBuilderCannotHandleItem(Builder builder, Object item) { throw new WrongItemException( "Builder: " + builder.getClass().getSimpleName() + " cannot handle item: " + item.getClass() .getSimpleName()); } }
ErrorHandler { public static void errorBuilderCannotHandleItem(Builder builder, Object item) { throw new WrongItemException( "Builder: " + builder.getClass().getSimpleName() + " cannot handle item: " + item.getClass() .getSimpleName()); } private  ErrorHandler(); }
ErrorHandler { public static void errorBuilderCannotHandleItem(Builder builder, Object item) { throw new WrongItemException( "Builder: " + builder.getClass().getSimpleName() + " cannot handle item: " + item.getClass() .getSimpleName()); } private  ErrorHandler(); static void errorBuilderCannotHandleItem(Builder builder, Object item); static void errorMoreThanOneBuildersHandleItem(Collection<Builder> builders, Object item); static void erroNoOneBuildersHandleItem(Collection<Builder> builders, Object item); static void erroNoOneBuildersHaveId(Collection<Builder> values, int builderId); }
ErrorHandler { public static void errorBuilderCannotHandleItem(Builder builder, Object item) { throw new WrongItemException( "Builder: " + builder.getClass().getSimpleName() + " cannot handle item: " + item.getClass() .getSimpleName()); } private  ErrorHandler(); static void errorBuilderCannotHandleItem(Builder builder, Object item); static void errorMoreThanOneBuildersHandleItem(Collection<Builder> builders, Object item); static void erroNoOneBuildersHandleItem(Collection<Builder> builders, Object item); static void erroNoOneBuildersHaveId(Collection<Builder> values, int builderId);  }