Skip to content

Commit c9ea2c0

Browse files
committed
Fix failing unit test after updating to newer Jena lib.
1 parent 7ff76bd commit c9ea2c0

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

tools/samm-cli/src/test/java/org/eclipse/esmf/SammCliTest.java

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,20 @@
3232
import org.apache.tika.exception.TikaException;
3333
import org.apache.tika.metadata.Metadata;
3434
import org.apache.tika.mime.MediaType;
35-
import org.junit.jupiter.api.AfterEach;
36-
import org.junit.jupiter.api.BeforeEach;
37-
import org.junit.jupiter.api.Test;
38-
import org.junit.jupiter.api.TestInstance;
39-
import org.junit.jupiter.api.condition.DisabledOnOs;
40-
import org.junit.jupiter.api.condition.OS;
41-
import org.junit.jupiter.api.extension.ExtendWith;
42-
4335
import org.eclipse.esmf.ProcessLauncher.ExecutionResult;
4436
import org.eclipse.esmf.aspect.AspectValidateCommand;
45-
import org.eclipse.esmf.samm.KnownVersion;
4637
import org.eclipse.esmf.aspectmodel.shacl.violation.InvalidSyntaxViolation;
38+
import org.eclipse.esmf.samm.KnownVersion;
4739
import org.eclipse.esmf.test.InvalidTestAspect;
4840
import org.eclipse.esmf.test.MetaModelVersions;
4941
import org.eclipse.esmf.test.TestAspect;
5042
import org.eclipse.esmf.test.TestModel;
43+
import org.junit.jupiter.api.AfterEach;
44+
import org.junit.jupiter.api.BeforeEach;
45+
import org.junit.jupiter.api.Test;
46+
import org.junit.jupiter.api.TestInstance;
47+
import org.junit.jupiter.api.condition.OS;
48+
import org.junit.jupiter.api.extension.ExtendWith;
5149

5250
/**
5351
* The tests for the CLI that are executed by Maven Surefire. They work using the {@link MainClassProcessLauncher}, i.e. directly call
@@ -171,13 +169,12 @@ public void testAspectValidateValidModel() {
171169
}
172170

173171
@Test
174-
@DisabledOnOs( OS.WINDOWS )
175172
public void testAspectValidateInvalidModel() {
176173
final File invalidModel = inputFile( InvalidTestAspect.INVALID_SYNTAX );
177174
final ExecutionResult result = sammCli.apply( "aspect", invalidModel.getAbsolutePath(), "validate" );
178175
assertThat( result.exitStatus() ).isEqualTo( 1 );
179-
assertThat( result.stderr() ).isEmpty();
180-
assertThat( result.stdout() ).contains( "Syntax error" );
176+
assertThat( result.stderr() ).contains( "Triples not terminated by DOT" );
177+
assertThat( result.stdout() ).isEmpty();
181178
}
182179

183180
@Test

0 commit comments

Comments
 (0)