org.sonar.test.i18n
Class BundleSynchronizedMatcher
java.lang.Object
org.hamcrest.BaseMatcher<String>
org.sonar.test.i18n.BundleSynchronizedMatcher
- All Implemented Interfaces:
- org.hamcrest.Matcher<String>, org.hamcrest.SelfDescribing
public class BundleSynchronizedMatcher
- extends org.hamcrest.BaseMatcher<String>
Methods inherited from class org.hamcrest.BaseMatcher |
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString |
L10N_PATH
public static final String L10N_PATH
- See Also:
- Constant Field Values
BundleSynchronizedMatcher
public BundleSynchronizedMatcher()
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.