null,
"testStatus",
AssetFormats.DRL );
serviceImplementation.createState( "testState" );
Asset asset = repositoryAssetService.loadRuleAsset( ruleUUID );
assertEquals( StateItem.DRAFT_STATE_NAME,
asset.getState() );
repositoryAssetService.changeState( ruleUUID,
"testState" );
asset = repositoryAssetService.loadRuleAsset( ruleUUID );
assertEquals( "testState",
asset.getState() );
asset = repositoryAssetService.loadRuleAsset( ruleUUID2 );
assertEquals( StateItem.DRAFT_STATE_NAME,
asset.getState() );
serviceImplementation.createState( "testState2" );
repositoryAssetService.changePackageState( packagUUID,
"testState2" );
Module pkg = repositoryPackageService.loadModule( packagUUID );
assertEquals( "testState2",
pkg.getState() );
asset = repositoryAssetService.loadRuleAsset( ruleUUID2 );
assertEquals( "testState2",
asset.getState() );
repositoryAssetService.checkinVersion( asset );
asset = repositoryAssetService.loadRuleAsset( asset.getUuid() );
assertEquals( "testState2",
asset.getState() );
}