@Test public void testNoTranslation() throws Exception { System.setProperty("mct.pseudotranslation", "none"); ResourceBundle origBundle = ResourceBundle.getBundle("properties.PseudoBundle"); ResourceBundle testBundle = BundleFactory.getBundle("properties.PseudoBundle"); assertTrue(!PseudoBundle.isEnabled(), "Pseudotranslation disabled"); assertEquals(origBundle.getString("ascii"), testBundle.getString("ascii")); }
public static boolean isEnabled() { return (getMode() != BundleMode.NO_TRANSLATION); }
PseudoBundle extends ResourceBundle { public static boolean isEnabled() { return (getMode() != BundleMode.NO_TRANSLATION); } }
PseudoBundle extends ResourceBundle { public static boolean isEnabled() { return (getMode() != BundleMode.NO_TRANSLATION); } PseudoBundle(ResourceBundle baseBundle); }
PseudoBundle extends ResourceBundle { public static boolean isEnabled() { return (getMode() != BundleMode.NO_TRANSLATION); } PseudoBundle(ResourceBundle baseBundle); static boolean isEnabled(); @Override Enumeration<String> getKeys(); }
PseudoBundle extends ResourceBundle { public static boolean isEnabled() { return (getMode() != BundleMode.NO_TRANSLATION); } PseudoBundle(ResourceBundle baseBundle); static boolean isEnabled(); @Override Enumeration<String> getKeys(); static final String PSEUDO_BUNDLE_PROPERTY; static final String PSEUDO_BUNDLE_NORMAL; static final String PSEUDO_BUNDLE_WIDE; }