use of com.intellij.codeInspection.reference.SmartRefElementPointer in project intellij-community by JetBrains.
the class EntryPointsConverterTest method doTest.
private static void doTest(String type, String fqName, String expectedFQName) throws Exception {
final Element entryPoints = setUpEntryPoint(type, fqName);
final HashMap<String, SmartRefElementPointer> persistentEntryPoints = new HashMap<>();
EntryPointsManagerBase.convert(entryPoints, persistentEntryPoints);
final Element testElement = new Element("comp");
EntryPointsManagerBase.writeExternal(testElement, persistentEntryPoints, new JDOMExternalizableStringList());
final Element expectedEntryPoints = setUpEntryPoint(type, expectedFQName);
expectedEntryPoints.setAttribute("version", "2.0");
final Element expected = new Element("comp");
expected.addContent(expectedEntryPoints);
assertTrue(JDOMUtil.areElementsEqual(testElement, expected));
}
Aggregations