@Test
public void testBasic() throws Exception { testBasic$(); }
public void testBasic$() throws Exception {
INamedElement defElement;
defElement = new ModuleProxy("foo", null);
assertEquals(TextUI.getLabelForHoverSignature(defElement), "foo");
assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "foo");
defElement = new ModuleProxy("pack.mod", null);
assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack.mod");
assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "mod");
defElement = new ModuleProxy("pack.sub.mod", null);
assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack.sub.mod");
assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "mod");
defElement = PackageNamespace.createPartialDefUnits(array("pack"), new ModuleProxy("modA", null));
assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack");
assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "pack");
defElement = PackageNamespace.createPartialDefUnits(array("pack", "sub"), new ModuleProxy("modA", null));
assertEquals(TextUI.getLabelForHoverSignature(defElement), "pack");
assertEquals(DeeElementLabelProvider.getLabelForContentAssistPopup(defElement), "pack");
DefUnitSearch search = new DefUnitSearch("int", null, -1, true, new NullModuleResolver());