Skip to content

Commit cb29791

Browse files
author
Dennis Labordus
committed
Fixed unittests.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent ee3d176 commit cb29791

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ SPDX-License-Identifier: Apache-2.0
148148
<groupId>org.apache.maven.plugins</groupId>
149149
<artifactId>maven-surefire-plugin</artifactId>
150150
<version>${surefire-plugin.version}</version>
151+
<configuration>
152+
<trimStackTrace>false</trimStackTrace>
153+
</configuration>
151154
</plugin>
152155

153156
<plugin>

riseclipse/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,6 @@ SPDX-License-Identifier: Apache-2.0
7373
<groupId>org.eclipse.ocl</groupId>
7474
<artifactId>org.eclipse.ocl.pivot</artifactId>
7575
<version>${eclipse.ocl.version}</version>
76-
<exclusions>
77-
<exclusion>
78-
<!-- optional dependency, not needed -->
79-
<groupId>org.eclipse.emf</groupId>
80-
<artifactId>org.eclipse.emf.codegen.ecore</artifactId>
81-
</exclusion>
82-
</exclusions>
8376
</dependency>
8477
<dependency>
8578
<groupId>org.eclipse.ocl</groupId>

riseclipse/validator-riseclipse/src/test/java/org/lfenergy/compas/scl/validator/impl/OclFileLoaderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void setup() throws IOException {
4141
}
4242

4343
@Test
44-
void addOCLDocument_WhenCalledWithNull_ThenExceptionThrown() throws IOException {
44+
void addOCLDocument_WhenCalledWithNull_ThenExceptionThrown() {
4545
var exception = assertThrows(SclValidatorException.class,
4646
() -> loader.addOCLDocument(null));
4747

@@ -80,7 +80,7 @@ void cleanup() {
8080
}
8181

8282
private URI findOCL(String filename) {
83-
var url = getClass().getResource("/ocl/" + filename);
83+
var url = getClass().getResource("/ocl-testfiles/" + filename);
8484
if (url != null) {
8585
return URI.createFileURI(url.getPath());
8686
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)