Skip to content

Commit

Permalink
Feature mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
pvlasov committed Nov 19, 2024
1 parent 21750a4 commit 752ebc2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diagram.drawio

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
<artifactId>model</artifactId>
<version>2024.11.0</version>
</dependency>
<dependency>
<groupId>org.nasdanika.models.family</groupId>
<artifactId>model</artifactId>
<version>2024.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-all</artifactId>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
requires transitive org.nasdanika.emf;
requires transitive org.nasdanika.models.architecture;
requires transitive org.nasdanika.models.education;
requires transitive org.nasdanika.models.family;

exports org.nasdanika.demos.diagrams.mapping;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public void testMapping() throws IOException {
ResourceSet resourceSet = capabilityLoader.loadOne(requirement, progressMonitor);
File diagramFile = new File("diagram.drawio").getCanonicalFile();
Resource resource = resourceSet.getResource(URI.createFileURI(diagramFile.getAbsolutePath()), true);
assertEquals(2, resource.getContents().size());

// Saving for manual inspection
URI xmiURI = URI.createFileURI(new File("target/mapping.xml").getAbsolutePath());
Expand All @@ -36,6 +35,8 @@ public void testMapping() throws IOException {
xmiResource.save(null);

// Assertions
assertEquals(3, resource.getContents().size());



}
Expand Down

0 comments on commit 752ebc2

Please sign in to comment.