Skip to content

Commit

Permalink
Revert debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed Jan 23, 2024
1 parent 0bf9c12 commit 527f641
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.eclipse.esmf.samm.KnownVersion;
import org.eclipse.esmf.test.MetaModelVersions;

import ch.qos.logback.classic.Level;
import com.google.common.collect.Streams;
import io.vavr.control.Try;
import org.apache.jena.rdf.model.Model;
Expand Down Expand Up @@ -260,13 +259,8 @@ public void testResolutionReferencedCharacteristicExpectSuccess( final KnownVers
* @throws Throwable if one of the resources is not found
*/
@ParameterizedTest
@MethodSource( value = "latestVersion" )
@MethodSource( value = "allVersions" )
public void testTransitiveReferenceExpectSuccess( final KnownVersion metaModelVersion ) throws Throwable {
final ch.qos.logback.classic.Logger root = (ch.qos.logback.classic.Logger) org.slf4j.LoggerFactory.getLogger(
ch.qos.logback.classic.Logger.ROOT_LOGGER_NAME );
final Level originalLevel = root.getLevel();
root.setLevel( Level.ALL );

final File aspectModelsRootDirectory = new File(
AspectModelResolverTest.class.getClassLoader().getResource( metaModelVersion.toString().toLowerCase() )
.toURI().getPath() );
Expand All @@ -280,14 +274,7 @@ public void testTransitiveReferenceExpectSuccess( final KnownVersion metaModelVe

final Model model = result.get().getModel();
final Resource testCharacteristic = createResource( TEST_NAMESPACE + "TestCharacteristic" );
final long count = Streams.stream( model.listStatements( testCharacteristic, RDF.type, (RDFNode) null ) ).count();
if ( count > 1 ) {
System.out.println( "=====" );
model.write( System.out, "TTL" );
System.out.println( "=====" );
}
root.setLevel( originalLevel );
assertThat( count ).isEqualTo( 1 );
assertThat( Streams.stream( model.listStatements( testCharacteristic, RDF.type, (RDFNode) null ) ).count() ).isEqualTo( 1 );
}

@ParameterizedTest
Expand Down

0 comments on commit 527f641

Please sign in to comment.