@Test public void testGetFactTypes() throws Exception { final String[] fakeFactTypesArray = new String[]{"factType1", "factType2", "factType3"}; final List<String> expectedFactTypes = Arrays.asList(fakeFactTypesArray); when(oracle.getFactTypes()).thenReturn(fakeFactTypesArray); final List<String> factTypes = presenter.getFactTypes(); assertEquals(expectedFactTypes, factTypes); }
public List<String> getFactTypes() { return Arrays.asList(oracle().getFactTypes()); }
NewPatternPresenter { public List<String> getFactTypes() { return Arrays.asList(oracle().getFactTypes()); } }
NewPatternPresenter { public List<String> getFactTypes() { return Arrays.asList(oracle().getFactTypes()); } @Inject  NewPatternPresenter(final View view,
                               final TranslationService translationService); }
NewPatternPresenter { public List<String> getFactTypes() { return Arrays.asList(oracle().getFactTypes()); } @Inject  NewPatternPresenter(final View view,
                               final TranslationService translationService); @PostConstruct void setup(); void show(); void hide(); void init(final PatternPage patternPage); List<String> getFactTypes(); }
NewPatternPresenter { public List<String> getFactTypes() { return Arrays.asList(oracle().getFactTypes()); } @Inject  NewPatternPresenter(final View view,
                               final TranslationService translationService); @PostConstruct void setup(); void show(); void hide(); void init(final PatternPage patternPage); List<String> getFactTypes();  }