use of com.thoughtworks.gauge.helper.ModuleHelper in project Intellij-Plugin by getgauge.
the class ConceptStepImplTest method testShouldGetReferenceInGaugeModule.
@Test
public void testShouldGetReferenceInGaugeModule() throws Exception {
ModuleHelper helper = mock(ModuleHelper.class);
ASTNode node = mock(ASTNode.class);
ConceptStepImpl conceptStep = new ConceptStepImpl(node, helper);
when(helper.isGaugeModule(conceptStep)).thenReturn(true);
PsiReference reference = conceptStep.getReference();
assertEquals(reference.getClass(), ConceptReference.class);
}
Aggregations