improved test for running in IDE

This commit is contained in:
Greg Wilkins 2017-08-10 12:54:41 +10:00
parent cf418c639f
commit bb39fe6009
1 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,7 @@ import java.nio.file.Paths;
import org.eclipse.jetty.toolchain.test.JDK; import org.eclipse.jetty.toolchain.test.JDK;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Assume;
import org.junit.Test; import org.junit.Test;
public class TypeUtilTest public class TypeUtilTest
@ -130,7 +131,10 @@ public class TypeUtilTest
@Test @Test
public void testGetLocationOfClass() throws Exception public void testGetLocationOfClass() throws Exception
{ {
Path mavenRepoPath = Paths.get( System.getProperty( "mavenRepoPath" ) ); String mavenRepoPathProperty = System.getProperty( "mavenRepoPath");
Assume.assumeNotNull(mavenRepoPathProperty);
Path mavenRepoPath = Paths.get( mavenRepoPathProperty );
String mavenRepo = mavenRepoPath.toFile().getPath().replaceAll("\\\\", "/"); String mavenRepo = mavenRepoPath.toFile().getPath().replaceAll("\\\\", "/");
// Classes from maven dependencies // Classes from maven dependencies