Class EclassSemanticIdResolverTest


  • public class EclassSemanticIdResolverTest
    extends java.lang.Object
    Tests EclassSemanticIdResolver.
    Author:
    Holger Eichelberger, SSE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void assertNaming​(de.iip_ecosphere.platform.support.semanticId.eclass.model.TranslatableLabel label, java.util.Map<java.lang.String,​de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming> naming, java.util.function.Function<de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming,​java.lang.String> namingGetter)
      Asserts a naming structure for label.
      void testInstance()
      Instance creation operations.
      void testResolution()
      Tests the resolution.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IRDI_UNIT_DEGREES_CELSIUS

        private static final java.lang.String IRDI_UNIT_DEGREES_CELSIUS
        See Also:
        Constant Field Values
    • Constructor Detail

      • EclassSemanticIdResolverTest

        public EclassSemanticIdResolverTest()
    • Method Detail

      • testResolution

        public void testResolution()
        Tests the resolution. Through the test in the resolver, we feed the resolver with structurally valid IRDIs.
      • testInstance

        public void testInstance()
        Instance creation operations.
      • assertNaming

        private void assertNaming​(de.iip_ecosphere.platform.support.semanticId.eclass.model.TranslatableLabel label,
                                  java.util.Map<java.lang.String,​de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming> naming,
                                  java.util.function.Function<de.iip_ecosphere.platform.support.semanticId.DefaultSemanticIdResolutionResult.DefaultNaming,​java.lang.String> namingGetter)
        Asserts a naming structure for label.
        Parameters:
        label - the label to assert for
        naming - the naming structure
        namingGetter - a getter which values to assert on naming with respect to the values in label