GuidanceManeuverView extends BaseView { public void highLightManeuver(int color) { ((TextView) findViewById(R.id.infoView2)).setTextColor(color); } GuidanceManeuverView(@NonNull Context context);  GuidanceManeuverView(@NonNull Context context, @Nullable AttributeSet attrs);  GuidanceManeuverView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr); @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)  GuidanceManeuverView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes); @Nullable GuidanceManeuverData getManeuverData(); void setManeuverData(@NonNull GuidanceManeuverData maneuverData); State getViewState(); void setViewState(@Nullable final State state); void highLightManeuver(int color); @Override void onRestoreInstanceState(Parcelable state); static final int ICON_GONE; }
@Test public void testHighLightManeuver() { mGuidanceManeuverView.highLightManeuver(Color.RED); assertThat(((TextView) mGuidanceManeuverView.findViewById(R.id.infoView2)).getCurrentTextColor(), is(Color.RED)); }