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

Examples of com.google.testing.testify.risk.frontend.client.view.AttributeView$Presenter


    // Test setup
    ProjectRpcAsync projServiceObserver = EasyMock.createMock(ProjectRpcAsync.class);
    AttributesView.Presenter mockParent = EasyMock.createMock(AttributesView.Presenter.class);

    AttributeView mockAttributeView = EasyMock.createMock(AttributeView.class);
    Attribute targetAttribute = new Attribute();
    targetAttribute.setParentProjectId(0L);
    targetAttribute.setAttributeId(1234L);
    targetAttribute.setDescription("Test");

    // Verify this initialization sequence
    mockAttributeView.setPresenter((Presenter) EasyMock.anyObject());
    mockAttributeView.setAttributeName(targetAttribute.getName());
    mockAttributeView.setDescription("Test");
    mockAttributeView.setAttributeId(1234L);
    mockAttributeView.setLabels(new ArrayList<AccLabel>());

    EasyMock.replay(mockAttributeView, mockParent);

    AttributePresenter testPresenter = new AttributePresenter(
        targetAttribute, mockAttributeView, mockParent);
View Full Code Here

TOP

Related Classes of com.google.testing.testify.risk.frontend.client.view.AttributeView$Presenter

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.