Class LocalizationRule

  • All Implemented Interfaces:
    org.junit.rules.TestRule

    public class LocalizationRule
    extends org.junit.rules.ExternalResource
    A rule for controlling the Platform session language in tests
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void after()  
      static LocalizationRule initialize()  
      void setSessionLanguage​(java.lang.String isoCode)
      Sets the current language to language identified by isoCode
      • Methods inherited from class org.junit.rules.ExternalResource

        apply, before
      • Methods inherited from class java.lang.Object

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

      • setSessionLanguage

        public void setSessionLanguage​(java.lang.String isoCode)
        Sets the current language to language identified by isoCode
        Parameters:
        isoCode - the isoCode of the Language to be set
      • after

        protected void after()
        Overrides:
        after in class org.junit.rules.ExternalResource