Package org.apache.lucene.gdata.utils

Examples of org.apache.lucene.gdata.utils.ProvidedServiceStub


        this.buffer.addEntry(wrapper);
        assertEquals(1,this.buffer.getSortedEntries(FEEDID).size());
       
        e.setId("someotherID");
        e.setFeedId(FEEDID);
        e.setServiceConfig(new ProvidedServiceStub());
        wrapper = new StorageEntryWrapper(e,StorageOperation.INSERT);
        this.buffer.addEntry(wrapper);
        assertEquals(2,this.buffer.getSortedEntries(FEEDID).size());
        e.setId("someotherID");
        e.setFeedId("someOtherFeed");
        e.setServiceConfig(new ProvidedServiceStub());
        wrapper = new StorageEntryWrapper(e,StorageOperation.UPDATE);
        this.buffer.addEntry(wrapper);
        wrapper = new StorageEntryWrapper(e,StorageOperation.DELETE);
        e.setId("deleted and ingnored");
        e.setFeedId("someOtherFeed");
        e.setServiceConfig(new ProvidedServiceStub());
        this.buffer.addEntry(wrapper);
        assertEquals(2,this.buffer.getSortedEntries(FEEDID).size());
        assertEquals(1,this.buffer.getSortedEntries("someOtherFeed").size());
        assertEquals("Contains 2 different IDs",2,this.buffer.getExculdList().length);
       
View Full Code Here


    }
    public ServerBaseEntry createServerBaseEntry(String entryID, String feedId) throws IOException{
        ServerBaseEntry e = new ServerBaseEntry();
        e.setId(entryID);
        e.setFeedId(feedId);
        e.setServiceConfig(new ProvidedServiceStub());
       return e;
    }
View Full Code Here

        }
    }
    protected void setUp() throws Exception {
        super.setUp();
       
        GDataServerRegistry.getRegistry().registerService(new ProvidedServiceStub());
       this.requestMockControl = MockControl.createControl(HttpServletRequest.class);
       this.adminServiceMockControl = MockControl.createControl(AdminService.class);
       this.adminService = (AdminService)this.adminServiceMockControl.getMock();
       this.mockRequest = (HttpServletRequest)this.requestMockControl.getMock();
       this.stub = (ServiceFactoryStub)GDataServerRegistry.getRegistry().lookup(ServiceFactory.class,ComponentType.SERVICEFACTORY);
View Full Code Here

TOP

Related Classes of org.apache.lucene.gdata.utils.ProvidedServiceStub

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.