Package com.google.collide.client.editor.search.SearchMatchRenderer

Examples of com.google.collide.client.editor.search.SearchMatchRenderer.Css.match()


  private static final String MATCH_CSS = "match";

  private Resources createMockResource() {
    Resources mockResource = EasyMock.createMock(Resources.class);
    Css mockCss = EasyMock.createMock(Css.class);
    expect(mockCss.match()).andReturn(MATCH_CSS).anyTimes();
    expect(mockResource.searchMatchRendererCss()).andReturn(mockCss).anyTimes();
   
    replay(mockCss, mockResource);
    return mockResource;
  }
View Full Code Here


    Resources mockResources = EasyMock.createMock(Resources.class);
    Css mockCss = EasyMock.createMock(Css.class);

    expect(mockContext.getResources()).andReturn(mockResources).anyTimes();
    expect(mockResources.searchMatchRendererCss()).andReturn(mockCss).anyTimes();
    expect(mockCss.match()).andReturn("match").anyTimes();

    replay(mockCss, mockResources, mockContext);
    return mockContext;
  }
 
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.