Examples of GetLocaleListResult


Examples of org.zanata.webtrans.shared.rpc.GetLocaleListResult

                    new Locale(new IdForLocale(hLocale.getId(),
                            hLocale.getLocaleId()),
                            hLocale.retrieveDisplayName());
            locales.add(locale);
        }
        return new GetLocaleListResult(locales);
    }
View Full Code Here

Examples of org.zanata.webtrans.shared.rpc.GetLocaleListResult

                        "project", "master")).thenReturn(getHLocaleList());
    }

    @Test
    public void testExecute() throws Exception {
        GetLocaleListResult result = handler.execute(action, null);
        verify(identity).checkLoggedIn();
        assertThat(result.getLocales()).extracting("id.localeId").containsOnly(
            LocaleId.EN_US, LocaleId.DE, LocaleId.FR, LocaleId.EN);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.