Package org.zanata.webtrans.client.resources

Examples of org.zanata.webtrans.client.resources.ValidationMessages


    private static ValidationFactory validationFactory;

    public static ValidationFactory getFactoryInstance() {
        if (validationFactory == null) {
            try {
                ValidationMessages valMessages =
                        Gwti18nReader.create(ValidationMessages.class);
                validationFactory = new ValidationFactory(valMessages);
            } catch (IOException e) {
                throw new ValidationException(
                        "Unable to load validation messages");
View Full Code Here


    }

    @Test
    public void willNotMoveToNextEntryIfTranslationHasError() {
        // Given: selected display and focus on first entry
        ValidationMessages messages = mock(ValidationMessages.class);

        Map<ValidationAction, List<String>> errorMessage = Maps.newHashMap();
        errorMessage.put(new HtmlXmlTagValidation(ValidationId.HTML_XML,
                messages), new ArrayList<String>());
View Full Code Here

        handler = spy(activateWorkspaceHandler);
        person = TestFixture.person();
        doReturn(person).when(handler).retrievePerson();
        doReturn(HTTP_SESSION_ID).when(handler).getHttpSessionId();

        ValidationMessages message =
                Gwti18nReader.create(ValidationMessages.class);
        validationFactory = new ValidationFactory(message);
    }
View Full Code Here

TOP

Related Classes of org.zanata.webtrans.client.resources.ValidationMessages

Copyright © 2018 www.massapicom. 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.