Class BundleSynchronizedMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher<java.lang.String>, org.hamcrest.SelfDescribing

    public class BundleSynchronizedMatcher
    extends org.hamcrest.BaseMatcher<java.lang.String>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String L10N_PATH  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void describeTo​(org.hamcrest.Description description)  
      protected static java.lang.String extractDefaultBundleName​(java.lang.String bundleName)  
      protected static java.io.InputStream getBundleFileInputStream​(java.lang.String bundleName)  
      protected static java.io.InputStream getDefaultBundleFileInputStream​(java.lang.String bundleName)  
      protected static java.util.Properties loadProperties​(java.io.InputStream inputStream)  
      boolean matches​(java.lang.Object arg0)  
      protected static java.util.SortedMap<java.lang.String,​java.lang.String> retrieveMissingTranslations​(java.io.InputStream bundle, java.io.InputStream referenceBundle)  
      • Methods inherited from class org.hamcrest.BaseMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BundleSynchronizedMatcher

        public BundleSynchronizedMatcher()
    • Method Detail

      • matches

        public boolean matches​(java.lang.Object arg0)
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
      • retrieveMissingTranslations

        protected static java.util.SortedMap<java.lang.String,​java.lang.String> retrieveMissingTranslations​(java.io.InputStream bundle,
                                                                                                                  java.io.InputStream referenceBundle)
                                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • loadProperties

        protected static java.util.Properties loadProperties​(java.io.InputStream inputStream)
                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getBundleFileInputStream

        protected static java.io.InputStream getBundleFileInputStream​(java.lang.String bundleName)
      • getDefaultBundleFileInputStream

        protected static java.io.InputStream getDefaultBundleFileInputStream​(java.lang.String bundleName)
      • extractDefaultBundleName

        protected static java.lang.String extractDefaultBundleName​(java.lang.String bundleName)