GNConverter { public LexicalResource getLexicalResource() { return lexicalResource; } GNConverter(GermaNet germaNet, LexicalResource lexicalResource, MetaData alignmentMeta, String resourceVersion, String dtd_version); void toLMF(); void toLMF(Lexicon wordNetLexicon); GermaNet getGnet(); SubcategorizationFrameExtractor getSubcategorizationFrameExtractor(); LexicalResource getLexicalResource(); SynsetGenerator getSynsetGenerator();  }
@Test public void testGlobalInformation(){ GlobalInformation gi = gnConverter.getLexicalResource().getGlobalInformation(); assertEquals("LMF representation of GermaNet 7.0", gi.getLabel()); }
@Test public void testMonolingualExternalRefs(){ LexicalResource lr = gnConverter.getLexicalResource(); for(Lexicon lexicon : lr.getLexicons()){ for(LexicalEntry le : lexicon.getLexicalEntries()) { for(Sense sense : le.getSenses()){ checkMonolingualExternalRefs(sense.getMonolingualExternalRefs()); for(Context context : sense.getContexts()) { checkMonolingualExternalRefs(context.getMonolingualExternalRefs()); } for(SemanticLabel semanticLabel : sense.getSemanticLabels()) { checkMonolingualExternalRefs(semanticLabel.getMonolingualExternalRefs()); } } } for(Synset synset : lexicon.getSynsets()) { checkMonolingualExternalRefs(synset.getMonolingualExternalRefs()); } } }
@Test public void testSemanticLabels(){ LexicalResource lr = gnConverter.getLexicalResource(); for(Lexicon lexicon : lr.getLexicons()) { for(LexicalEntry le : lexicon.getLexicalEntries()) { for(Sense sense : le.getSenses()){ List<SemanticLabel> semanticLabels = sense.getSemanticLabels(); assertTrue("Sense does not have any semantic labels attached.", semanticLabels.size()>0); for(SemanticLabel semanticLabel : semanticLabels){ assertNotNull(semanticLabel.getLabel()); } } } } }