|
32 | 32 | import org.apache.tika.exception.TikaException;
|
33 | 33 | import org.apache.tika.metadata.Metadata;
|
34 | 34 | 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 |
| - |
43 | 35 | import org.eclipse.esmf.ProcessLauncher.ExecutionResult;
|
44 | 36 | import org.eclipse.esmf.aspect.AspectValidateCommand;
|
45 |
| -import org.eclipse.esmf.samm.KnownVersion; |
46 | 37 | import org.eclipse.esmf.aspectmodel.shacl.violation.InvalidSyntaxViolation;
|
| 38 | +import org.eclipse.esmf.samm.KnownVersion; |
47 | 39 | import org.eclipse.esmf.test.InvalidTestAspect;
|
48 | 40 | import org.eclipse.esmf.test.MetaModelVersions;
|
49 | 41 | import org.eclipse.esmf.test.TestAspect;
|
50 | 42 | 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; |
51 | 49 |
|
52 | 50 | /**
|
53 | 51 | * 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() {
|
171 | 169 | }
|
172 | 170 |
|
173 | 171 | @Test
|
174 |
| - @DisabledOnOs( OS.WINDOWS ) |
175 | 172 | public void testAspectValidateInvalidModel() {
|
176 | 173 | final File invalidModel = inputFile( InvalidTestAspect.INVALID_SYNTAX );
|
177 | 174 | final ExecutionResult result = sammCli.apply( "aspect", invalidModel.getAbsolutePath(), "validate" );
|
178 | 175 | 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(); |
181 | 178 | }
|
182 | 179 |
|
183 | 180 | @Test
|
|
0 commit comments