Package dtool.resolver.ReferenceResolver

Examples of dtool.resolver.ReferenceResolver.DirectDefUnitResolve


    checkResults(completion.getResults(), options.expectedResults);
  }
 
  @Override
  protected void runFindFailTest_________(MetadataEntry mde) {
    DirectDefUnitResolve resolveResult = resolveAtOffset(mde.offset);
    assertTrue(resolveResult.pickedRef == null || resolveResult.invalidPickRef);
  }
View Full Code Here


  }
 
  @Override
  public void runFindMissingTest_________(MetadataEntry mde) {
    assertTrue(mde.sourceValue == null);
    DirectDefUnitResolve result = doRunFindTest(mde.offset, NewUtils.EMPTY_STRING_ARRAY);
    assertTrue(result.resolvedDefUnits == null);
    assertTrue(result.pickedRef instanceof NamedReference);
    NamedReference pickedRef_named = (NamedReference) result.pickedRef;
    assertTrue(pickedRef_named.isMissingCoreReference());
  }
View Full Code Here

    NamedReference pickedRef_named = (NamedReference) result.pickedRef;
    assertTrue(pickedRef_named.isMissingCoreReference());
  }
 
  public DirectDefUnitResolve doRunFindTest(int offset, String[] expectedResults) {
    DirectDefUnitResolve resolveResult = resolveAtOffset(offset);
    checkResults(resolveResult.getResolvedDefUnits(), expectedResults, false, false);
    return resolveResult;
  }
View Full Code Here

  }
 
  @SuppressWarnings("null")
  @Override
  public void runFindTest_________(MetadataEntry mde) {
    DirectDefUnitResolve resolveResult = null;
   
    // TODO: adapt test to more than one defUnit returned?
    Iterator<INamedElement> iterator = resolveResult.getResolvedDefUnits().iterator();
    INamedElement defElement = iterator.hasNext() ? iterator.next() : null;
    if(defElement instanceof DefUnit) {
      DefUnit defUnit = (DefUnit) defElement;
      SelectionEngineSourceTests.testDeeSelectionEngine(sourceModule, mde.offset, defUnit);
    }
View Full Code Here

TOP

Related Classes of dtool.resolver.ReferenceResolver.DirectDefUnitResolve

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.