package ro.isdc.wro.util.provider;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import ro.isdc.wro.model.resource.processor.support.ProcessorProvider;

/**
 * @author Alex Objelean
 */
public class TestProviderFinder {
  private ProviderFinder<?> victim;

  @Test
  public void shouldFindConfigurableProviders() {
    victim = ProviderFinder.of(ConfigurableProvider.class);
    assertEquals(3, victim.find().size());
  }

  @Test
  public void shouldFindProcessorsProvider() {
    victim = ProviderFinder.of(ProcessorProvider.class);
    assertEquals(5, victim.find().size());
  }
}

@@ -169,16 +169,89 @@
 rovider;
+%0Aimport ro.isdc.wro.model.resource.support.naming.NamingStrategyProvider;
 %0A%0A/**%0A *
@@ -647,9 +647,217 @@
 als(
-5
+3, victim.find().size());%0A  %7D%0A%0A  @Test%0A  public void shouldFindNamingStrategyProvider() %7B%0A    victim = ProviderFinder.of(NamingStrategyProvider.class);%0A    System.out.println(victim.find());%0A    assertEquals(3
 , vi

fix failing unit test