"x",
cat,
"testArchiveAsset",
"testArchiveAsset" );
RepositoryAssetService repositoryAssetService = getRepositoryAssetService();
TableDataResult res = repositoryAssetService.listAssets( pkgUUID,
arr( "testArchiveAsset" ),
0,
-1,
ExplorerNodeConfig.RULE_LIST_TABLE_ID );
assertEquals( 4,
res.data.length );
assertEquals( 4,
res.total );
assertFalse( res.hasNext );
TableDataResult td = repositoryAssetService.loadArchivedAssets( 0,
1000 );
assertEquals( -1,
td.total );
repositoryAssetService.archiveAsset( uuid4 );
TableDataResult td2 = repositoryAssetService.loadArchivedAssets( 0,
1000 );
assertTrue( td2.data.length == td.data.length + 1 );
res = repositoryAssetService.listAssets( pkgUUID,
arr( "testArchiveAsset" ),