-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'tests/integration-tests/' from commit '1b1c161b125eed34b629858c5…
…b75c6c2427a83cf' git-subtree-dir: tests/integration-tests git-subtree-mainline: 10cdf6d git-subtree-split: 1b1c161
- Loading branch information
Showing
213 changed files
with
339,777 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
# Common settings that generally should always be used with your language specific settings | ||
|
||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# | ||
# The above will handle all files NOT found below | ||
# | ||
|
||
# Documents | ||
*.bibtex text diff=bibtex | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain | ||
*.md text diff=markdown | ||
*.mdx text diff=markdown | ||
*.tex text diff=tex | ||
*.adoc text | ||
*.textile text | ||
*.mustache text | ||
*.csv text | ||
*.tab text | ||
*.tsv text | ||
*.txt text | ||
*.sql text | ||
*.epub diff=astextplain | ||
|
||
# Graphics | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.tif binary | ||
*.tiff binary | ||
*.ico binary | ||
# SVG treated as text by default. | ||
*.svg text | ||
# If you want to treat it as binary, | ||
# use the following line instead. | ||
# *.svg binary | ||
*.eps binary | ||
|
||
# Scripts | ||
*.bash text eol=lf | ||
*.fish text eol=lf | ||
*.sh text eol=lf | ||
*.zsh text eol=lf | ||
# These are explicitly windows files and should use crlf | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
*.ps1 text eol=crlf | ||
|
||
# Serialisation | ||
*.json text | ||
*.toml text | ||
*.xml text | ||
*.yaml text | ||
*.yml text | ||
|
||
# Archives | ||
*.7z binary | ||
*.gz binary | ||
*.tar binary | ||
*.tgz binary | ||
*.zip binary | ||
|
||
# Text files where line endings should be preserved | ||
*.patch -text | ||
|
||
# | ||
# Exclude files from exporting | ||
# | ||
|
||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitkeep export-ignore | ||
|
||
# Java sources | ||
*.java text diff=java | ||
*.kt text diff=kotlin | ||
*.groovy text diff=java | ||
*.scala text diff=java | ||
*.gradle text diff=java | ||
*.gradle.kts text diff=kotlin | ||
|
||
# These files are text and should be normalized (Convert crlf => lf) | ||
*.css text diff=css | ||
*.scss text diff=css | ||
*.sass text | ||
*.df text | ||
*.htm text diff=html | ||
*.html text diff=html | ||
*.js text | ||
*.jsp text | ||
*.jspf text | ||
*.jspx text | ||
*.properties text | ||
*.tld text | ||
*.tag text | ||
*.tagx text | ||
*.xml text | ||
|
||
# These files are binary and should be left untouched | ||
# (binary is a macro for -text -diff) | ||
*.class binary | ||
*.dll binary | ||
*.ear binary | ||
*.jar binary | ||
*.so binary | ||
*.war binary | ||
*.jks binary | ||
|
||
# Apply override to all files in the directory | ||
*.md linguist-detectable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @Gram21 @Hossiphi @dfuchss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
wiki | ||
.flattened-pom.xml | ||
|
||
src/test/resources/testout/* | ||
tests-base/src/test/resources/testout/* | ||
tests-misc/src/test/resources/testout/* | ||
tests-tlr/src/test/resources/testout/* | ||
tests-inconsistency/src/test/resources/testout/* | ||
|
||
src/test/resources/config.properties | ||
|
||
tmp* | ||
temp* | ||
|
||
.vscode/* | ||
|
||
tests/eval_results/ | ||
|
||
tests/babelnet_cache.json | ||
babelnet_cache.json | ||
|
||
### ignore log files | ||
*.log | ||
|
||
### | ||
catalog-v001.xml | ||
|
||
###Java### | ||
|
||
*.class | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
|
||
###WikiDumps### | ||
out*.txt | ||
enwiki*.xml | ||
|
||
|
||
###Eclipse### | ||
|
||
*.pydevproject | ||
.metadata | ||
.gradle | ||
bin/ | ||
tmp/ | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.settings/ | ||
.loadpath | ||
|
||
# External tool builders | ||
.externalToolBuilders/ | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
# sbteclipse plugin | ||
.target | ||
|
||
# TeXlipse plugin | ||
.texlipse | ||
|
||
|
||
###OSX### | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
###Maven### | ||
|
||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
.classpath | ||
.project | ||
Pipeline/src/main/resources/texts/ | ||
Pipeline/evaluations/ | ||
Pipeline/ecsaEvaluations/ | ||
pipeline/src/main/resources/evaluations/ | ||
|
||
# jetbrains config | ||
.idea | ||
|
||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020-2024 ArDoCo | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ArDoCo Integration Tests | ||
|
||
The goal of this project is to connect architecture documentation and models with Traceability Link Recovery (TLR) while identifying missing or deviating | ||
elements (inconsistencies). | ||
An element can be any representable item of the model, like a component or a relation. | ||
To do so, we first create trace links and then make use of them and other information to identify inconsistencies. | ||
|
||
ArDoCo is actively developed by researchers of | ||
the _[Modelling for Continuous Software Engineering (MCSE) group](https://mcse.kastel.kit.edu)_ | ||
of _[KASTEL - Institute of Information Security and Dependability](https://kastel.kit.edu)_ at | ||
the [KIT](https://www.kit.edu). | ||
|
||
## Integration Tests | ||
|
||
This repository contains integration tests for ArDoCo. For more information about the ArDoCo project visit the core website at [ArDoCo/Core](https://github.com/ArDoCo/Core). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>io.github.ardoco.core</groupId> | ||
<artifactId>tests</artifactId> | ||
<version>${revision}</version> | ||
<relativePath>../../pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>tests-base</artifactId> | ||
<packaging>jar</packaging> | ||
<description>Base classes for tests. It also includes the benchmark data from https://github.com/ArDoCo/Benchmark</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.tngtech.archunit</groupId> | ||
<artifactId>archunit-junit5</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.github.ardoco.core</groupId> | ||
<artifactId>common</artifactId> | ||
<version>${revision}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.collections</groupId> | ||
<artifactId>eclipse-collections</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-api</artifactId> | ||
<version>${junit.version}</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-engine</artifactId> | ||
<version>${junit.version}</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter-params</artifactId> | ||
<version>${junit.version}</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.reflections</groupId> | ||
<artifactId>reflections</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
44 changes: 44 additions & 0 deletions
44
.../java/edu/kit/kastel/mcse/ardoco/core/api/diagramrecognition/BoundingBoxDeserializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* Licensed under MIT 2023-2024. */ | ||
package edu.kit.kastel.mcse.ardoco.core.api.diagramrecognition; | ||
|
||
import java.io.IOException; | ||
|
||
import com.fasterxml.jackson.core.JsonParser; | ||
import com.fasterxml.jackson.databind.DeserializationContext; | ||
import com.fasterxml.jackson.databind.JsonNode; | ||
import com.fasterxml.jackson.databind.deser.std.StdDeserializer; | ||
|
||
/** | ||
* Deserializes a JSON bounding box node into a {@link BoundingBox}. For example the JSON node | ||
* <pre> | ||
* {@code | ||
* { | ||
* "x": 12, | ||
* "y": 30, | ||
* "w": 50, | ||
* "h": 60 | ||
* } | ||
* }</pre> is converted to a bounding box with {@code minX = 12, minY | ||
* = 30, maxX = 62, maxY = 90}. | ||
*/ | ||
public class BoundingBoxDeserializer extends StdDeserializer<BoundingBox> { | ||
public BoundingBoxDeserializer() { | ||
this(BoundingBox.class); | ||
} | ||
|
||
protected BoundingBoxDeserializer(Class<?> vc) { | ||
super(vc); | ||
} | ||
|
||
@Override | ||
public BoundingBox deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException { | ||
JsonNode node = jsonParser.getCodec().readTree(jsonParser); | ||
|
||
var x = node.get("x").asInt(); | ||
var y = node.get("y").asInt(); | ||
var w = node.get("w").asInt(); | ||
var h = node.get("h").asInt(); | ||
|
||
return new BoundingBox(x, y, x + w, y + h); | ||
} | ||
} |
Oops, something went wrong.