improved test for running in IDE
This commit is contained in:
parent
cf418c639f
commit
bb39fe6009
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue