Examples of WidgetImpl


Examples of org.apache.rave.portal.model.impl.WidgetImpl

    @Test
    public void get(){
        String id = "1234L";
        String widgetId = "321L";
        List<WidgetComment> comments = Lists.newArrayList();
        Widget widget = new WidgetImpl(widgetId);
        WidgetComment wc = new WidgetCommentImpl(id);
        comments.add(wc);
        widget.setComments(comments);

        expect(template.get(widgetId)).andReturn(widget);
        replay(template);

        WidgetComment result = repo.getCommentById(widgetId, id);
View Full Code Here

Examples of org.apache.wookie.beans.jpa.impl.WidgetImpl

  private static IWidgetInstance INSTANCE_NO_USER_ID;
  private static Messages BUNDLE;
 
  @BeforeClass
  public static void setUp(){
    IWidget widget = new WidgetImpl();
    widget.setGuid("http://getwookie.org/test");
    IStartFile startFile = new StartFileImpl();
        startFile.setUrl("http://getwookie.org/test/index.html");
        startFile.setLang("en");
    widget.getStartFiles().add(startFile);
   
    INSTANCE = new WidgetInstanceImpl();
    INSTANCE.setWidget(widget);
    INSTANCE.setIdKey("xhKEoiff/4ltxSuuBmPjjxBx5hw.eq.");
    INSTANCE.setUserId("scott");
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.