*/
public class GenerateModeldocTestCase extends TestCase {
public void testIdentifierMatches() {
DocumentationHelper helper = new DocumentationHelper() {
public void load(ModeldocFactory factory, ModelDocumentation root)
throws DocumentationGenerationException {
// do nothing
}
};
assertTrue(helper.identifierMatches(new Identifier("model::InternetApplication"), ModelPackage.eINSTANCE.getInternetApplication()));
assertTrue(helper.identifierMatches(new Identifier("model::visual::Frame"), VisualPackage.eINSTANCE.getFrame()));
assertFalse(helper.identifierMatches(new Identifier("model::InternetApplication"), VisualPackage.eINSTANCE.getFrame()));
assertFalse(helper.identifierMatches(new Identifier("model::visual::Frame"), ModelPackage.eINSTANCE.getInternetApplication()));
}