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

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


    // 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");
    targetComponent.setDescription("Test");

    // Verify this initialization sequence
    mockComponentView.setPresenter(EasyMock.isA(Presenter.class));
    mockComponentView.setComponentName(targetComponent.getName());
    mockComponentView.setDescription("Test");
    mockComponentView.setComponentLabels(EasyMock.isA(List.class));

    EasyMock.replay(mockComponentView, mockParent);

    ComponentPresenter testPresenter = new ComponentPresenter(
        targetComponent, mockComponentView, mockParent);
View Full Code Here

TOP

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

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.