FieldPage extends BaseDecisionTableColumnPage<T> { void forEachFactField(Consumer<String> loadedFieldConsumer) { if (hasEditingPattern()) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); oracle.getFieldCompletions(factType(), getAccessor(), fieldsLoadedCallback(loadedFieldConsumer)); } } @Inject  FieldPage(final View view,
                     final TranslationService translationService); @Override String getTitle(); @Override void isComplete(final Callback<Boolean> callback); @Override void prepareView(); String getFactField();  }
@Test public void testForEachFactFieldWhenEditingPatternIsNull() throws Exception { when(plugin.patternWrapper()).thenReturn(pattern52); when(presenter.getDataModelOracle()).thenReturn(oracle); page.forEachFactField(s -> { }); verify(oracle, never()).getFieldCompletions(any(), any(), any()); }