Namespace implements INamespace { @Override public NamespaceValue getTalkspace(String namespace) { NamespaceValue nsVal = getNamespace(namespace); if (nsVal != null) { return nsVal.getTalkspace(); } return null; } Namespace();  Namespace(Locale locale);  Namespace(ResourceBundle resourceBundle); @Override boolean isNamespace(String namespace, NamespaceCode code); @Override boolean isNamespace(INamespaceValue namespace, NamespaceCode code); @Override @Nullable NamespaceValue getNamespace(String namespace); @Override NamespaceValue getNamespaceByNumber(NamespaceCode numberCode); @Override @Nullable NamespaceValue getNamespaceByNumber(int numberCode); @Override ResourceBundle getResourceBundle(); @Override NamespaceValue getTalkspace(String namespace); @Override NamespaceValue getContentspace(String talkNamespace); @Override INamespaceValue getMedia(); @Override INamespaceValue getSpecial(); @Override INamespaceValue getMain(); @Override INamespaceValue getTalk(); @Override INamespaceValue getUser(); @Override INamespaceValue getUser_talk(); @Override INamespaceValue getProject(); @Override INamespaceValue getProject_talk(); @Override INamespaceValue getImage(); @Override INamespaceValue getImage_talk(); @Override INamespaceValue getMediaWiki(); @Override INamespaceValue getMediaWiki_talk(); @Override INamespaceValue getModule(); @Override INamespaceValue getTemplate(); @Override INamespaceValue getTemplate_talk(); @Override INamespaceValue getHelp(); @Override INamespaceValue getHelp_talk(); @Override INamespaceValue getCategory(); @Override INamespaceValue getCategory_talk(); @Override INamespaceValue getPortal(); @Override INamespaceValue getPortal_talk(); @Override String[] splitNsTitle(String fullTitle); @Override String[] splitNsTitle(String fullTitle,
            boolean underScoreIsWhitespace, char whiteSpaceChar,
            boolean firstCharacterAsUpperCase); final NamespaceValue MEDIA; final NamespaceValue SPECIAL; final NamespaceValue TALK; final NamespaceValue MAIN; final NamespaceValue USER_TALK; final NamespaceValue USER; final NamespaceValue PROJECT_TALK; final NamespaceValue PROJECT; final NamespaceValue IMAGE_TALK; final NamespaceValue IMAGE; final NamespaceValue MEDIAWIKI_TALK; final NamespaceValue MEDIAWIKI; final NamespaceValue MODULE_TALK; final NamespaceValue MODULE; final NamespaceValue TEMPLATE_TALK; final NamespaceValue TEMPLATE; final NamespaceValue HELP_TALK; final NamespaceValue HELP; final NamespaceValue CATEGORY_TALK; final NamespaceValue CATEGORY; final NamespaceValue PORTAL_TALK; final NamespaceValue PORTAL; final NamespaceValue BOOK_TALK; final NamespaceValue BOOK; final NamespaceValue DRAFT_TALK; final NamespaceValue DRAFT; final NamespaceValue EP_TALK; final NamespaceValue EP; final NamespaceValue TIMEDTEXT_TALK; final NamespaceValue TIMEDTEXT; final NamespaceValue TOPIC; }
@Test public void testTalkspace001() { assertThat(namespace.getTalkspace("Meta")).isEqualTo(namespace.PROJECT_TALK); assertThat(namespace.getTalkspace("Meta_talk")).isEqualTo(namespace.PROJECT_TALK); assertThat(namespace.getTalkspace("Meta talk")).isEqualTo(namespace.PROJECT_TALK); assertThat(namespace.getTalkspace("Project")).isEqualTo(namespace.PROJECT_TALK); assertThat(namespace.getTalkspace("Project_talk")).isEqualTo(namespace.PROJECT_TALK); assertThat(namespace.getTalkspace("Project talk")).isEqualTo(namespace.PROJECT_TALK); }