12161217121812191220122112221223122412251226
40, AssetItemGrid.RULE_LIST_TABLE_ID ); assertEquals( 5, res.data.length ); TableDataResult result = impl.quickFindAsset( "testListByForma", false, 0, 5 ); assertEquals( 5, result.data.length );
12261227122812291230123112321233123412351236
result.data.length ); assertNotNull( result.data[0].id ); assertTrue( result.data[0].values[0].startsWith( "testListByFormat" ) ); result = impl.quickFindAsset( "testListByForma", false, 0, 4 ); assertEquals( 4, result.data.length );
12701271127212731274127512761277127812791280
String uuid = impl.createNewRule( "testQuickFindmyRule1", "desc", cat, "testQuickFind", AssetFormats.DRL ); TableDataResult res = impl.quickFindAsset( "testQuickFindmyRule", false, 0, 20 ); assertEquals( 1, res.data.length );
12821283128412851286128712881289129012911292
impl.createNewRule( "testQuickFindmyRule2", "desc", cat, "testQuickFind", AssetFormats.DRL ); res = impl.quickFindAsset( "testQuickFindmyRule", false, 0, 20 ); assertEquals( 2, res.data.length );
12921293129412951296129712981299130013011302
res.data.length ); impl.copyAsset( uuid, "testQuickFind", "testQuickFindmyRule3" ); res = impl.quickFindAsset( "testQuickFindmyRule", false, 0, 20 ); assertEquals( 3, res.data.length );
12991300130113021303130413051306130713081309
0, 20 ); assertEquals( 3, res.data.length ); res = impl.quickFindAsset( "testQuickFindm*Rule", false, 0, 20 ); assertEquals( 3, res.data.length );