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(String sonarVersion)
           
BundleSynchronizedMatcher(String sonarVersion, String remote_file_path)
           
 
Method Summary
protected  String computeGitHubURL(String defaultBundleName, String sonarVersion)
           
 void describeTo(org.hamcrest.Description description)
           
protected  String extractDefaultBundleName(String bundleName)
           
protected  File getBundleFileFromClasspath(String bundleName)
           
protected  File getBundleFileFromGithub(String defaultBundleName)
           
protected  boolean isCoreBundle(String defaultBundleName)
           
 boolean matches(Object arg0)
           
protected  SortedMap<String,String> retrieveMissingTranslations(File bundle, File referenceBundle)
           
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, 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(String sonarVersion)

BundleSynchronizedMatcher

public BundleSynchronizedMatcher(String sonarVersion,
                                 String remote_file_path)
Method Detail

matches

public boolean matches(Object arg0)

describeTo

public void describeTo(org.hamcrest.Description description)

retrieveMissingTranslations

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

getBundleFileFromGithub

protected File getBundleFileFromGithub(String defaultBundleName)

computeGitHubURL

protected String computeGitHubURL(String defaultBundleName,
                                  String sonarVersion)

getBundleFileFromClasspath

protected File getBundleFileFromClasspath(String bundleName)

extractDefaultBundleName

protected String extractDefaultBundleName(String bundleName)

isCoreBundle

protected boolean isCoreBundle(String defaultBundleName)


Copyright © 2009-2012 SonarSource. All Rights Reserved.