org.sonar.test.i18n
Class I18nMatchers

java.lang.Object
  extended by org.sonar.test.i18n.I18nMatchers

public final class I18nMatchers
extends Object


Method Summary
static void assertAllBundlesUpToDate()
          Checks that all the translation bundles found on the classpath are up to date with the corresponding default one found in the same folder.
static void assertAllBundlesUpToDate(String sonarVersion)
          Checks that all the Core translation bundles found on the classpath are up to date with the corresponding English ones.
static BundleSynchronizedMatcher isBundleUpToDate()
          Returns a matcher which checks that a translation bundle is up to date with the corresponding default one found in the same folder.
static BundleSynchronizedMatcher isBundleUpToDate(String sonarVersion)
          Returns a matcher which checks that a translation bundle is up to date with the corresponding English Core bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isBundleUpToDate

public static BundleSynchronizedMatcher isBundleUpToDate(String sonarVersion)
Returns a matcher which checks that a translation bundle is up to date with the corresponding English Core bundle.

Parameters:
sonarVersion - the version of the bundle to check against, or NULL to check against the latest source on GitHub
Returns:
the matcher

isBundleUpToDate

public static BundleSynchronizedMatcher isBundleUpToDate()
Returns a matcher which checks that a translation bundle is up to date with the corresponding default one found in the same folder.

This matcher is used for Sonar plugins that embed their own translations.

Returns:
the matcher

assertAllBundlesUpToDate

public static void assertAllBundlesUpToDate(String sonarVersion)
Checks that all the Core translation bundles found on the classpath are up to date with the corresponding English ones.

Parameters:
sonarVersion - the version of the bundles to check against, or NULL to check against the latest source on GitHub

assertAllBundlesUpToDate

public static void assertAllBundlesUpToDate()
Checks that all the translation bundles found on the classpath are up to date with the corresponding default one found in the same folder.



Copyright © 2009-2012 SonarSource. All Rights Reserved.