cheese.setType( "Cheese" );
cheese.getFieldData().add( new FieldData( "price",
"42" ) );
sc.getGlobals().add( cheese );
ScenarioRunResult res = repositoryPackageService.runScenario( pkg.getName(),
sc ).result;
assertNull( res.getErrors() );
assertNotNull( res.getScenario() );
assertTrue( vf.wasSuccessful() );
assertTrue( vr.wasSuccessful() );
res = repositoryPackageService.runScenario( pkg.getName(),
sc ).result;
assertNull( res.getErrors() );
assertNotNull( res.getScenario() );
assertTrue( vf.wasSuccessful() );
assertTrue( vr.wasSuccessful() );
RuleBaseCache.getInstance().clearCache();
res = repositoryPackageService.runScenario( pkg.getName(),
sc ).result;
assertNull( res.getErrors() );
assertNotNull( res.getScenario() );
assertTrue( vf.wasSuccessful() );
assertTrue( vr.wasSuccessful() );
//BuilderResult[] results = impl.buildPackage(pkg.getUUID(), null, true);
//assertNull(results);
rule1.updateContent( "Junk" );
rule1.checkin( "" );
RuleBaseCache.getInstance().clearCache();
pkg.updateBinaryUpToDate( false );
repo.save();
res = repositoryPackageService.runScenario( pkg.getName(),
sc ).result;
assertNotNull( res.getErrors() );
assertNull( res.getScenario() );
assertTrue( res.getErrors().size() > 0 );
repositoryCategoryService.createCategory( "/",
"sc",
"" );