Examples of SaveOptionsResult


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

        }

        accountDAO.makePersistent(account);
        accountDAO.flush();

        SaveOptionsResult result = new SaveOptionsResult();
        result.setSuccess(true);

        return result;
    }
View Full Code Here

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

        assertThat(editorSize, Matchers.equalTo(2000));
        assertThat(displayButton, Matchers.equalTo(false));
        assertThat(showError, Matchers.equalTo(true));

        AsyncCallback<SaveOptionsResult> callback = callbackCaptor.getValue();
        callback.onSuccess(new SaveOptionsResult());
        callback.onFailure(null);
        verify(eventBus, times(2)).fireEvent(isA(NotificationEvent.class));
    }
View Full Code Here

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

        configMap.put(UserOptions.EditorPageSize, Integer.toString(25));
        configMap.put(UserOptions.EnterSavesApproved, Boolean.toString(true));

        SaveOptionsAction action = new SaveOptionsAction(configMap);

        SaveOptionsResult result = handler.execute(action, null);

        assertThat(result.isSuccess(), Matchers.equalTo(true));
        List<HAccountOption> accountOptions =
                getEm().createQuery("from HAccountOption").getResultList();

        assertThat(accountOptions, Matchers.hasSize(configMap.size()));
        Map<String, HAccountOption> editorOptions =
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.