Skip to content

Commit

Permalink
Merge pull request #938 from jplag/dependency-cleanup
Browse files Browse the repository at this point in the history
Clean-up dependencies of the core project
  • Loading branch information
tsaglam authored Feb 16, 2023
2 parents eeb755b + e76c4a7 commit 6d1fcde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 67 deletions.
43 changes: 1 addition & 42 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,54 +25,13 @@
<artifactId>language-api</artifactId>
<version>${revision}</version>
</dependency>
<!-- the core project only requires one language module for testing: -->
<dependency>
<groupId>de.jplag</groupId>
<artifactId>java</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>cpp</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>rlang</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>golang</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>scala</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>kotlin</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>emf-metamodel</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>de.jplag</groupId>
<artifactId>emf-metamodel-dynamic</artifactId>
<version>${revision}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
26 changes: 1 addition & 25 deletions core/src/test/java/de/jplag/special/TokenPrinterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,12 @@ class TokenPrinterTest extends TestBase {
private static final int MIN_TOKEN_MATCH = 5;
private static final String PRINTER_FOLDER = "PRINTER"; // in the folder 'jplag/src/test/resources/samples'

@Disabled("Not a meaningful test, used for designing the token set")
@Test
void printCPPFiles() {
printSubmissions(options -> options.withLanguageOption(new de.jplag.cpp.Language()).withMinimumTokenMatch(MIN_TOKEN_MATCH));
}

@Disabled("Not a meaningful test, used for designing the token set")
@Disabled("Not a meaningful test, used for designing the token set. Can be implemented for other languages.")
@Test
void printJavaFiles() {
printSubmissions(options -> options.withMinimumTokenMatch(MIN_TOKEN_MATCH));
}

@Disabled("Not a meaningful test, used for designing the token set")
@Test
void printRLangFiles() {
printSubmissions(options -> options.withLanguageOption(new de.jplag.rlang.Language()).withMinimumTokenMatch(MIN_TOKEN_MATCH));
}

@Disabled("Not a meaningful test, used for designing the token set")
@Test
void printGoFiles() {
printSubmissions(options -> options.withLanguageOption(new de.jplag.golang.Language()));
}

@Disabled("Not a meaningful test, used for designing the token set")
@Test
void printKotlinFiles() {
printSubmissions(options -> options.withLanguageOption(new de.jplag.kotlin.Language()));
}

private void printSubmissions(Function<JPlagOptions, JPlagOptions> optionsCustomization) {
try {
JPlagResult result = runJPlag(PRINTER_FOLDER, optionsCustomization);
Expand Down

0 comments on commit 6d1fcde

Please sign in to comment.