scan.setExecutionStrategy( check.getExecutionStrategy() );
scan.setType( checkToScanMap.get( check.getType() ) );
for( TestAssertionConfig assertion : check.getAssertionList() )
{
TestAssertionConfig assertion2 = scan.addNewAssertion();
assertion2.setConfiguration( assertion.getConfiguration() );
assertion2.setType( assertion.getType() );
assertion2.setName( assertion.getName() );
if( assertion.isSetDescription() )
{
assertion2.setDescription( assertion.getDescription() );
}
if( assertion.isSetDisabled() )
{
assertion2.setDisabled( assertion.getDisabled() );
}
if( assertion.isSetId() )
{
assertion2.setId( assertion.getId() );
}
if( assertion.isSetTimestamp() )
{
assertion2.setTimestamp( assertion.getTimestamp() );
}
}
scan.setCheckedParameters( check.getCheckedPameters() );