C10N { public static <T> T get(Class<T> c10nInterface) { return root.get(c10nInterface); }  static ConfiguredC10NModule getRootConfiguredModule(); @SuppressWarnings("unused") static C10NMsgFactory getRootFactory(); static void setRootFactory(C10NMsgFactory newRoot); static T get(Class<T> c10nInterface); static T get(Class<T> c10nInterface, Locale locale); static ConfiguredC10NModule configure(C10NConfigBase conf); @Deprecated static C10NMsgFactory createMsgFactory(ConfiguredC10NModule configuredModule); static C10NMsgFactory createMsgFactory(C10NConfigBase conf); static final Locale FALLBACK_LOCALE; }
@Test public void cannotGetMessagesUsingDefaultConfig() { C10NCoreModule coreModule = new C10NCoreModule(); ConfiguredC10NModule rootConfiguredModule = coreModule.resolve(coreModule.defaultConfig()); C10NMsgFactory root = coreModule.defaultC10NMsgFactory(rootConfiguredModule); thrown.expect(C10NException.class); thrown.expectMessage("C10N.configure()"); root.get(Messages.class); }