Class AngleUnitTest

    • Constructor Detail

      • AngleUnitTest

        public AngleUnitTest()
    • 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​(AngleUnit au,
                                                               double expectedValue,
                                                               double precision,
                                                               String expectedName,
                                                               String expectedAbbreviation)
        Verify one length 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.
      • createAngleUnit

        public final void createAngleUnit()
        Verify that we can create our own angle unit.