Package org.apache.lucene.gdata.server.registry

Examples of org.apache.lucene.gdata.server.registry.ProvidedServiceConfig


        // ############ test concurrency
        Object monitor = new Object();
        AtomicBoolean reached = new AtomicBoolean(false);
        MultiThreadEntryStub concuEntry = new MultiThreadEntryStub();
        concuEntry.setId(System.currentTimeMillis() + "");
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        concuEntry.setServiceConfig(conf);
        concuEntry.setUpdated(DateTime.now());
        concuEntry.setFeedId(FEEDID);

        storage = this.controller.getStorage();
View Full Code Here


        Object monitor = new Object();
        AtomicBoolean reached = new AtomicBoolean(false);

        MultiThreadEntryStub concuEntry = new MultiThreadEntryStub();
        concuEntry.setId(System.currentTimeMillis() + "");
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        concuEntry.setServiceConfig(conf);
        concuEntry.setUpdated(DateTime.now());
        concuEntry.setFeedId(FEEDID);

        storage = this.controller.getStorage();
View Full Code Here

     */
    public void testStoreFeed() throws StorageException {
        ObjectContainer container = getContainer();
        ServerBaseFeed feed = new ServerBaseFeed();
        feed.setId(FEEDID);
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        feed.setServiceConfig(conf);

        Storage storage = this.controller.getStorage();
        try {
            storage.storeFeed(feed, ACCOUNTNAME);
View Full Code Here

        ObjectContainer container = getContainer();
        container.set(account);
        container.commit();
        container.close();
        Storage storage = this.controller.getStorage();
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        feed.setServiceConfig(conf);
        storage.storeFeed(feed, ACCOUNTNAME);

        storage.deleteFeed(FEEDID);
        container = getContainer();
View Full Code Here

     * Test method for
     * 'org.apache.lucene.gdata.storage.db4o.DB4oStorage.getServiceForFeed(String)'
     */
    public void testGetServiceForFeed() throws StorageException {
        ServerBaseFeed feed = new ServerBaseFeed();
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        feed.setServiceConfig(conf);
        feed.setId(FEEDID);
        GDataAccount account = new GDataAccount();
        account.setName(ACCOUNTNAME);
        account.setPassword("somePass");
View Full Code Here

     * String)'
     */
    public void testUpdateFeed() throws StorageException {
        ObjectContainer container = getContainer();
        ServerBaseFeed feed = new ServerBaseFeed();
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        feed.setId(FEEDID);
        feed.setServiceConfig(conf);
        Storage storage = this.controller.getStorage();
        GDataAccount account = new GDataAccount();
        account.setName(ACCOUNTNAME);
View Full Code Here

    }

    private static ServerBaseEntry createServerBaseEntry() {
        ServerBaseEntry e = new ServerBaseEntry();
        e.setId(System.currentTimeMillis() + "");
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        e.setServiceConfig(conf);
        e.setUpdated(DateTime.now());
        e.setFeedId(FEEDID);
        try {
            Thread.sleep(2);
View Full Code Here

        return e;
    }

    private ServerBaseFeed storeServerBaseFeed() {
        ServerBaseFeed f = new ServerBaseFeed();
        ProvidedServiceConfig conf = new ProvidedServiceConfig();
        conf.setName(SERVICENAME);
        f.setServiceConfig(conf);
        f.setId(System.currentTimeMillis() + "");
        f.setId(FEEDID);
        f.setUpdated(DateTime.now());
        ObjectContainer con = this.controller.releaseContainer();
View Full Code Here

        } catch (NotIndexableException e) {
           
           
        }
        ServerBaseEntry e = new ServerBaseEntry();
        e.setServiceConfig(new ProvidedServiceConfig());
        try {
            new DomIndexable(e);
            fail("no extension profile");
        } catch (IllegalStateException e1) {
           
View Full Code Here

TOP

Related Classes of org.apache.lucene.gdata.server.registry.ProvidedServiceConfig

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.