MavenUtils { public static String findMavenUrlForRoboconf( String artifactId, String version ) throws IOException { return findMavenUrl( "net.roboconf", artifactId, version, "jar" ); } private  MavenUtils(); static String findMavenUrlForRoboconf( String artifactId, String version ); static String findMavenUrl(
			String groupId,
			String artifactId,
			String version,
			String extension );  }
@Test public void testLocalRepository() throws Exception { String url = MavenUtils.findMavenUrlForRoboconf( "roboconf-core", "0.4-SNAPSHOT" ); System.out.println( "Local repository => " + url ); Assert.assertNotNull( url ); Assert.assertTrue( url.startsWith( "file:/" )); }
@Test public void testLocalRepository_caseSnapshot() throws Exception { String url = MavenUtils.findMavenUrlForRoboconf( "roboconf-core", "0.4-SNAPshot" ); System.out.println( "Local repository => " + url ); Assert.assertNotNull( url ); Assert.assertTrue( url.startsWith( "file:/" )); }
@Test public void testSonatypeSnapshot() throws Exception { String url = MavenUtils.findMavenUrlForRoboconf( "roboconf-core", "0.5-SNAPSHOT" ); System.out.println( "Sonatype snapshot => " + url ); Assert.assertNotNull( url ); Assert.assertTrue( url.startsWith( "https: Assert.assertTrue( url.contains( "/snapshots/" )); }
@Test public void testSonatypeRelease() throws Exception { String url = MavenUtils.findMavenUrlForRoboconf( "roboconf-core", "0.4" ); System.out.println( "Sonatype release => " + url ); Assert.assertNotNull( url ); Assert.assertTrue( url.startsWith( "https: Assert.assertTrue( url.contains( "/releases/" )); }