org.sonar.test.i18n
Class BundleSynchronizedMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<String>
      extended by org.sonar.test.i18n.BundleSynchronizedMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing

public class BundleSynchronizedMatcher
extends org.hamcrest.BaseMatcher<String>


Field Summary
static String L10N_PATH
           
 
Constructor Summary
BundleSynchronizedMatcher()
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
protected static String extractDefaultBundleName(String bundleName)
           
protected static InputStream getBundleFileInputStream(String bundleName)
           
protected static InputStream getDefaultBundleFileInputStream(String bundleName)
           
protected static Properties loadProperties(InputStream inputStream)
           
 boolean matches(Object arg0)
           
protected static SortedMap<String,String> retrieveMissingTranslations(InputStream bundle, 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
 

Field Detail

L10N_PATH

public static final String L10N_PATH
See Also:
Constant Field Values
Constructor Detail

BundleSynchronizedMatcher

public BundleSynchronizedMatcher()
Method Detail

matches

public boolean matches(Object arg0)

describeTo

public void describeTo(org.hamcrest.Description description)

retrieveMissingTranslations

protected static SortedMap<String,String> retrieveMissingTranslations(InputStream bundle,
                                                                      InputStream referenceBundle)
                                                               throws IOException
Throws:
IOException

loadProperties

protected static Properties loadProperties(InputStream inputStream)
                                    throws IOException
Throws:
IOException

getBundleFileInputStream

protected static InputStream getBundleFileInputStream(String bundleName)

getDefaultBundleFileInputStream

protected static InputStream getDefaultBundleFileInputStream(String bundleName)

extractDefaultBundleName

protected static String extractDefaultBundleName(String bundleName)


Copyright © 2009–2015 SonarSource. All rights reserved.