Package org.sonar.test.i18n
Class BundleSynchronizedMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<java.lang.String>
-
- org.sonar.test.i18n.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.StringL10N_PATH
-
Constructor Summary
Constructors Constructor Description BundleSynchronizedMatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddescribeTo(org.hamcrest.Description description)protected static java.lang.StringextractDefaultBundleName(java.lang.String bundleName)protected static java.io.InputStreamgetBundleFileInputStream(java.lang.String bundleName)protected static java.io.InputStreamgetDefaultBundleFileInputStream(java.lang.String bundleName)protected static java.util.PropertiesloadProperties(java.io.InputStream inputStream)booleanmatches(java.lang.Object arg0)protected static java.util.SortedMap<java.lang.String,java.lang.String>retrieveMissingTranslations(java.io.InputStream bundle, java.io.InputStream referenceBundle)
-
-
-
Field Detail
-
L10N_PATH
public static final java.lang.String L10N_PATH
- See Also:
- Constant Field Values
-
-
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)
-
-