package com.github.ferstl.depgraph.graph.style.resource;

import org.junit.Test;
import com.github.ferstl.depgraph.graph.style.StyleConfiguration;
import static org.junit.Assert.assertTrue;


public class BuiltInStyleResourceTest {

  @Test
  public void resourcesExistAndCanBeLoaded() {
    for (BuiltInStyleResource resource : BuiltInStyleResource.values()) {
      ClasspathStyleResource styleResource = resource.createStyleResource(getClass().getClassLoader());

      assertTrue("Style configuration " + resource + " does not exist.", styleResource.exists());
      StyleConfiguration.load(styleResource);
    }
  }

}

@@ -74,16 +74,140 @@
 t.Test;%0A
+import org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.junit.runners.Parameterized.Parameters;%0A
 import c
@@ -308,16 +308,45 @@
 tTrue;%0A%0A
+@RunWith(Parameterized.class)
 %0Apublic 
@@ -385,70 +385,200 @@
 %0A%0A  
-@Test%0A  public void resourcesExistAndCanBeLoaded() %7B%0A    for (
+private final BuiltInStyleResource resource;%0A%0A  public BuiltInStyleResourceTest(BuiltInStyleResource resource) %7B%0A    this.resource = resource;%0A  %7D%0A%0A  @Parameters(name = %22%7B0%7D%22)%0A  public static 
 Buil
@@ -585,32 +585,34 @@
 tInStyleResource
+%5B%5D
  resource : Buil
@@ -608,10 +608,24 @@
 urce
- :
+s() %7B%0A    return
  Bui
@@ -650,22 +650,78 @@
 values()
+;%0A  %7D%0A%0A  @Test%0A  public void resourcesExistAndCanBeLoaded(
 ) %7B%0A
-  
     Clas
@@ -747,32 +747,37 @@
 styleResource = 
+this.
 resource.createS
@@ -820,18 +820,16 @@
 er());%0A%0A
-  
     asse
@@ -860,16 +860,21 @@
 ion %22 + 
+this.
 resource
@@ -925,18 +925,16 @@
 ));%0A    
-  
 StyleCon
@@ -969,14 +969,8 @@
 e);%0A
-    %7D%0A
   %7D%0A

Convert to parameterized test