@Test public void testTtcTermSuite() throws Exception { TypeSystemDescription tsd = createTypeSystemDescription( "3rd-party-tsd/ttc-term-suite"); TypeSystemAnalysis analysis = TypeSystemAnalysis.of(tsd); SoftAssertions softly = new SoftAssertions(); softly.assertThat(analysis.getLayers()) .extracting(l -> l.getName() + ":" + l.getType()) .hasSize(4) .containsExactlyInAnyOrder( "eu.project.ttc.types.WordAnnotation:span", "eu.project.ttc.types.TermComponentAnnotation:span", "eu.project.ttc.types.TranslationCandidateAnnotation:span", "eu.project.ttc.types.FormAnnotation:span"); softly.assertAll(); }
@Test public void testCTakes40() throws Exception { TypeSystemDescription tsd = createTypeSystemDescription( "3rd-party-tsd/ctakes-type-system-4_0"); TypeSystemAnalysis analysis = TypeSystemAnalysis.of(tsd); SoftAssertions softly = new SoftAssertions(); softly.assertThat(analysis.getLayers()) .extracting(l -> l.getName() + ":" + l.getType()) .hasSize(8) .containsExactlyInAnyOrder( "org.apache.ctakes.typesystem.type.textspan.Segment:span", "org.apache.ctakes.typesystem.type.textspan.Sentence:span", "org.apache.ctakes.typesystem.type.syntax.Chunk:span", "org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation:span", "org.apache.ctakes.typesystem.type.temporary.assertion.AssertionCuePhraseAnnotation:span", "org.apache.ctakes.typesystem.type.textspan.Paragraph:span", "org.apache.ctakes.typesystem.type.textspan.ListEntry:span", "org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation:span"); softly.assertAll(); }
.extracting(l -> l.getName() + ":" + l.getType()) .hasSize(27) .containsExactlyInAnyOrder(
.extracting(l -> l.getName() + ":" + l.getType()) .hasSize(58) .containsExactlyInAnyOrder(