Package ro.isdc.wro.manager.factory.standalone

Source Code of ro.isdc.wro.manager.factory.standalone.TestStandaloneWroManagerFactory

package ro.isdc.wro.manager.factory.standalone;

import java.util.List;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import ro.isdc.wro.model.resource.locator.factory.DefaultUriLocatorFactory;
import ro.isdc.wro.model.resource.locator.factory.SimpleUriLocatorFactory;
import ro.isdc.wro.model.resource.locator.factory.UriLocatorFactory;

/**
* @author Alex Objelean
*/
public class TestStandaloneWroManagerFactory {
  private StandaloneWroManagerFactory victim;

  @Before
  public void setUp() {
    victim = new StandaloneWroManagerFactory();
  }

  @Test
  public void shouldHaveMoreLocatorsThanDefaultFactoryHas() {
    final UriLocatorFactory locatorFactory = victim.newUriLocatorFactory();
    final List<?> availableLocators = ((SimpleUriLocatorFactory) locatorFactory).getUriLocators();
    final List<?> defaultLocators = new DefaultUriLocatorFactory().getUriLocators();
    Assert.assertTrue(availableLocators.size() > defaultLocators.size());
  }
}
TOP

Related Classes of ro.isdc.wro.manager.factory.standalone.TestStandaloneWroManagerFactory

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.