use of org.talend.dataprofiler.core.ui.imex.model.ItemRecord in project tdq-studio-se by Talend.
the class FileTreeLabelProviderTest method testGetImageObjectCase3.
/**
* Test method for {@link org.talend.dataprofiler.core.ui.imex.FileTreeLabelProvider#getImage(java.lang.Object)}.
* case 2 :element is sql rule
*/
@Test
public void testGetImageObjectCase3() {
File file = ResourcesPlugin.getWorkspace().getRoot().getFolder(new Path(createTDQSQLRuleItem.getDqrule().eResource().getURI().toPlatformString(false))).getLocation().toFile();
ItemRecord itemRecord = new ItemRecord(file);
FileTreeLabelProvider fileTreeLabelProvider = new FileTreeLabelProvider();
Image image = fileTreeLabelProvider.getImage(itemRecord);
Assert.assertEquals(ImageLib.getImage(ImageLib.DQ_RULE), image);
}
Aggregations