Class DirectionUnitTest

    • Constructor Detail

      • DirectionUnitTest

        public DirectionUnitTest()
    • Method Detail

      • setup

        public final void setup()
        Set the locale to "en" so we know what texts should be retrieved from the resources.
      • checkUnitValueNameAndAbbreviation

        protected final void checkUnitValueNameAndAbbreviation​(DirectionUnit au,
                                                               double expectedValue,
                                                               double precision,
                                                               String expectedName,
                                                               String expectedAbbreviation)
        Verify one conversion factor to standard unit and the localization of the name and abbreviation.
        Parameters:
        au - Unit to check
        expectedValue - Double; expected value of one 'unit to check' in SI units
        precision - Double; precision of verification
        expectedName - String; expected name in the resources
        expectedAbbreviation - String; expected abbreviation in the resources
      • conversions

        public final void conversions()
        Verify conversion factors, English names and abbreviations.
      • createClockwiseDirectionUnit

        public final void createClockwiseDirectionUnit()
        Verify that we can create our own direction unit.
      • createCompassDirectionUnit

        public final void createCompassDirectionUnit()
        Verify that we can create our own direction unit.
      • testRelative

        public final void testRelative()
        Verify relative base unit.