Skip to content

Instantly share code, notes, and snippets.

@abelhegedus
Created June 18, 2012 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abelhegedus/2949020 to your computer and use it in GitHub Desktop.
Save abelhegedus/2949020 to your computer and use it in GitHub Desktop.
EMf-IncQuery Testing Framework example
@Test
def shortTest(){
val patternModel = parseHelper.parse('
import "http://www.eclipse.org/viatra2/patternlanguage/core/PatternLanguage"
pattern resolutionTest(Name) = {
Pattern(Name);
} ') as PatternModel
patternModel.assertMatchResults("uri/to/test/expected")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment