|
|
@@ -57,6 +57,7 @@ public class BrowseServiceTest |
|
|
|
return map; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
public void metadatagetthenadd() |
|
|
|
throws Exception |
|
|
@@ -178,6 +179,29 @@ public class BrowseServiceTest |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
public void browsegroupIdWithReleaseStartNumber() |
|
|
|
throws Exception |
|
|
|
{ |
|
|
|
|
|
|
|
String testRepoId = "test-repo"; |
|
|
|
// force guest user creation if not exists |
|
|
|
if ( getUserService( authorizationHeader ).getGuestUser() == null ) |
|
|
|
{ |
|
|
|
assertNotNull( getUserService( authorizationHeader ).createGuestUser() ); |
|
|
|
} |
|
|
|
|
|
|
|
createAndIndexRepo( testRepoId, new File( getBasedir(), "src/test/repo-with-osgi" ).getAbsolutePath(), false ); |
|
|
|
|
|
|
|
BrowseService browseService = getBrowseService( authorizationHeader, false ); |
|
|
|
BrowseResult browseResult = browseService.browseGroupId( "commons-logging.commons-logging", testRepoId ); |
|
|
|
log.info( "browseResult: {}", browseResult ); |
|
|
|
|
|
|
|
deleteTestRepo( testRepoId ); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void versionsList() |
|
|
|
throws Exception |