diff options
author | 2021-10-05 00:36:47 +0200 | |
---|---|---|
committer | 2021-10-05 00:36:47 +0200 | |
commit | c3e27396c62f191b4343df151e5a86bfa63a32f3 (patch) | |
tree | 4f698c9ba0320a5c740c53877c3f75c00240dca4 /language-to-store/src/test/java/tools/refinery/language/mapping/tests/PartialModelMapperTest.xtend | |
parent | fix(web): improve accessibility (diff) | |
download | refinery-c3e27396c62f191b4343df151e5a86bfa63a32f3.tar.gz refinery-c3e27396c62f191b4343df151e5a86bfa63a32f3.tar.zst refinery-c3e27396c62f191b4343df151e5a86bfa63a32f3.zip |
chore: change package name
Diffstat (limited to 'language-to-store/src/test/java/tools/refinery/language/mapping/tests/PartialModelMapperTest.xtend')
-rw-r--r-- | language-to-store/src/test/java/tools/refinery/language/mapping/tests/PartialModelMapperTest.xtend | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/language-to-store/src/test/java/tools/refinery/language/mapping/tests/PartialModelMapperTest.xtend b/language-to-store/src/test/java/tools/refinery/language/mapping/tests/PartialModelMapperTest.xtend new file mode 100644 index 00000000..41a7b7fd --- /dev/null +++ b/language-to-store/src/test/java/tools/refinery/language/mapping/tests/PartialModelMapperTest.xtend | |||
@@ -0,0 +1,44 @@ | |||
1 | package tools.refinery.language.mapping.tests | ||
2 | |||
3 | import com.google.inject.Inject | ||
4 | import org.eclipse.xtext.testing.InjectWith | ||
5 | import org.eclipse.xtext.testing.extensions.InjectionExtension | ||
6 | import org.eclipse.xtext.testing.util.ParseHelper | ||
7 | import org.junit.jupiter.api.BeforeEach | ||
8 | import org.junit.jupiter.api.Disabled | ||
9 | import org.junit.jupiter.api.Test | ||
10 | import org.junit.jupiter.api.^extension.ExtendWith | ||
11 | import tools.refinery.language.mapping.PartialModelMapper | ||
12 | import tools.refinery.language.model.problem.Problem | ||
13 | import tools.refinery.language.tests.ProblemInjectorProvider | ||
14 | |||
15 | import static org.hamcrest.MatcherAssert.assertThat | ||
16 | import static org.hamcrest.Matchers.* | ||
17 | |||
18 | @ExtendWith(InjectionExtension) | ||
19 | @InjectWith(ProblemInjectorProvider) | ||
20 | class PartialModelMapperTest { | ||
21 | @Inject | ||
22 | ParseHelper<Problem> parseHelper | ||
23 | |||
24 | PartialModelMapper mapper | ||
25 | |||
26 | @BeforeEach | ||
27 | def void beforeEach() { | ||
28 | mapper = new PartialModelMapper | ||
29 | } | ||
30 | |||
31 | @Test | ||
32 | @Disabled("Method not yet implemented") | ||
33 | def void exampleTest() { | ||
34 | val problem = parseHelper.parse(''' | ||
35 | class Person { | ||
36 | Person[0..*] friend | ||
37 | } | ||
38 | |||
39 | friend(a, b). | ||
40 | ''') | ||
41 | val model = mapper.transformProblem(problem) | ||
42 | assertThat(model, notNullValue()) | ||
43 | } | ||
44 | } | ||