ManeuverListAdapter extends RecyclerView.Adapter<ManeuverListAdapter.ViewHolder> { @Override public ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType) { return new ViewHolder(getRowView(parent.getContext())); } ManeuverListAdapter(final List<Maneuver> maneuverList); void setUnitSystem(UnitSystem unitSystem); UnitSystem getUnitSystem(); @Override ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType); @Override void onBindViewHolder(final ViewHolder holder, final int position); @Override int getItemCount();  }
@Test public void testOnCreateViewHolder() { final Maneuver maneuver = MockUtils.mockManeuver(); final ViewGroup viewGroup = mock(ViewGroup.class); when(viewGroup.getContext()).thenReturn(getContextWithTheme()); mManeuverListAdapter = new ManeuverListAdapter(Arrays.asList(maneuver, maneuver)); ManeuverListAdapter.ViewHolder viewHolder = mManeuverListAdapter.onCreateViewHolder(viewGroup, 0); assertNotNull(viewHolder); }