Package com.google.testing.testify.risk.frontend.client.view

Examples of com.google.testing.testify.risk.frontend.client.view.ProjectSettingsView


  // Check the handshake between Presenter and View
  @SuppressWarnings("unchecked")
  public void testInitialization() {
    // Test setup
    ProjectRpcAsync projServiceObserver = EasyMock.createMock(ProjectRpcAsync.class);
    ProjectSettingsView viewObserver = EasyMock.createMock(ProjectSettingsView.class);
    ComponentsView.Presenter mockParent = EasyMock.createMock(ComponentsView.Presenter.class);

    ComponentView mockComponentView = EasyMock.createMock(ComponentView.class);
    Component targetComponent = new Component(0L);
    targetComponent.setName("Target Component");
View Full Code Here


  @SuppressWarnings("unchecked")
  public void testSetPresenter() {
    UserRpcAsync securityService = EasyMock.createMock(UserRpcAsync.class);
    ProjectRpcAsync projServiceObserver = EasyMock.createMock(ProjectRpcAsync.class);
    ProjectSettingsView viewObserver = EasyMock.createMock(ProjectSettingsView.class);
    Project project = new Project();
    project.setProjectId(42L);

    securityService.getAccessLevel(EasyMock.eq(42L), EasyMock.isA(AsyncCallback.class));
    EasyMockUtils.setLastAsyncCallbackSuccessWithResult(ProjectAccess.VIEW_ACCESS);
    viewObserver.setPresenter((Presenter) EasyMock.anyObject());
    viewObserver.setProjectSettings(project);
    viewObserver.enableProjectEditing(ProjectAccess.VIEW_ACCESS);
    EasyMock.replay(viewObserver, securityService);

    ProjectSettingsPresenter presenter = new ProjectSettingsPresenter(
        project, projServiceObserver, securityService, viewObserver, null);
View Full Code Here

TOP

Related Classes of com.google.testing.testify.risk.frontend.client.view.ProjectSettingsView

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.