package com.mapbox.navigation.ui.instruction;

import android.widget. TextView;

import org.junit. Test;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;

public class InstructionLoaderTest {

  @Test
  public void loadInstruction() {
    TextView textView = mock(TextView.class);
    BannerComponentTree bannerComponentTree = mock(BannerComponentTree.class);
    InstructionLoader instructionLoader = new InstructionLoader(textView, bannerComponentTree);

    instructionLoader.loadInstruction();

    verify(bannerComponentTree).loadInstruction(textView);
  }
}