Package com.google.feedserver.samples.manager

Examples of com.google.feedserver.samples.manager.XmlWrapperManager


  }

  public void testWrapperManagerForAdapterWithWrappers() throws FeedServerAdapterException {
    AbstractManagedCollectionAdapter targetAdapter =
        testUtil.getBasicAdapterWithFeedConfigWithWrappers();
    XmlWrapperManager manager = new XmlWrapperManager(targetAdapter);
    assertEquals(manager.getConfiguration(), targetAdapter.getConfiguration());

    AbstractManagedCollectionAdapter targetAdapter1 = manager.getTargetAdapter();
    assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter1.getClass().getName());
    ManagedCollectionAdapterWrapper wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter1);
    assertEquals(TestUtil.TEST_WRAPPER3_CONFIG, wrapper.getWrapperConfig());

    AbstractManagedCollectionAdapter targetAdapter2 = wrapper.getTargetAdapter();
View Full Code Here


  }

  public void testWrapperManagerForAdapterWithNoWrappers() throws FeedServerAdapterException {
    AbstractManagedCollectionAdapter targetAdapter =
        testUtil.getBasicAdapterWithFeedConfigWithNoWrappers();
    XmlWrapperManager manager = new XmlWrapperManager(targetAdapter);
    assertEquals(manager.getConfiguration(), targetAdapter.getConfiguration());

    AbstractManagedCollectionAdapter targetAdapter1 = manager.getTargetAdapter();
    assertEquals(TestUtil.SAMPLE_ADAPTER_CLASS, targetAdapter1.getClass().getName());
    assertEquals(targetAdapter, targetAdapter1);
  }
View Full Code Here

  }

  public void testWrapperManagerForWrapperAdapterWithWrappers() throws FeedServerAdapterException {
    AbstractManagedCollectionAdapter targetAdapter =
        testUtil.getBasicWrapperAdapterWithFeedConfigWithWrappers();
    XmlWrapperManager manager = new XmlWrapperManager(targetAdapter);
    assertEquals(manager.getConfiguration(), targetAdapter.getConfiguration());

    AbstractManagedCollectionAdapter targetAdapter1 = manager.getTargetAdapter();
    assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter1.getClass().getName());
    ManagedCollectionAdapterWrapper wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter1);
    assertEquals(TestUtil.TEST_WRAPPER3_CONFIG, wrapper.getWrapperConfig());
    assertEquals(targetAdapter, targetAdapter1);
View Full Code Here

  }

  public void testWrapperManagerForWrapperAdapterWithNoWrappers() throws FeedServerAdapterException {
    AbstractManagedCollectionAdapter targetAdapter =
        testUtil.getBasicWrapperAdapterWithFeedConfigWithNoWrappers();
    XmlWrapperManager manager = new XmlWrapperManager(targetAdapter);
    assertEquals(manager.getConfiguration(), targetAdapter.getConfiguration());

    AbstractManagedCollectionAdapter targetAdapter1 = manager.getTargetAdapter();
    assertEquals(TestUtil.WRAPPER_CLASS, targetAdapter1.getClass().getName());
    ManagedCollectionAdapterWrapper wrapper = ((ManagedCollectionAdapterWrapper) targetAdapter1);
    assertEquals(TestUtil.TEST_WRAPPER3_CONFIG, wrapper.getWrapperConfig());
    assertEquals(targetAdapter, targetAdapter1);
View Full Code Here

TOP

Related Classes of com.google.feedserver.samples.manager.XmlWrapperManager

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.