is(-f$output_sameModsFilePath,1,"copyFilesToMeta() file $output_sameModsFilePath exists. Renamed self included mods.xml");
is(-f$output_sameMarc21FilePath,1,"copyFilesToMeta() file $output_sameMarc21FilePath exists. Renamed self included marc21.xml");
is(-f$output_sameRightsFilePath,1,"copyFilesToMeta() file $output_sameRightsFilePath exists. Renamed self included rights.xml");
is(-f$output_sameRightsFilePath,1,"copyFilesToMeta() file $output_sameRightsFilePath exists. Renamed self included rights.xml");
is(equalFilesByIgnoringCRLF_LF($output_rightsFilePath,$input_rightsFilePath),1,"copyFilesToMeta() file $input_rightsFilePath is identical to $output_rightsFilePath");
is(equalFilesByIgnoringCRLF_LF($output_rightsFilePath,$input_rightsFilePath),1,"copyFilesToMeta() file $input_rightsFilePath is identical to $output_rightsFilePath");
is(equalFilesByIgnoringCRLF_LF($output_lidoFilePath,$input_lidoFilePath),1,"copyFilesToMeta() file $input_lidoFilePath is identical to $output_lidoFilePath");
is(equalFilesByIgnoringCRLF_LF($output_lidoFilePath,$input_lidoFilePath),1,"copyFilesToMeta() file $input_lidoFilePath is identical to $output_lidoFilePath");
is(equalFilesByIgnoringCRLF_LF($output_bubbleFilePath,$input_bubbleFilePath),1,"copyFilesToMeta() file $input_bubbleFilePath is identical to $output_bubbleFilePath");
is(equalFilesByIgnoringCRLF_LF($output_bubbleFilePath,$input_bubbleFilePath),1,"copyFilesToMeta() file $input_bubbleFilePath is identical to $output_bubbleFilePath");
is(equalFilesByIgnoringCRLF_LF($output_sameModsFilePath,$input_modsFilePath),1,"copyFilesToMeta() file $input_modsFilePath is identical to $output_sameModsFilePath");
is(equalFilesByIgnoringCRLF_LF($output_sameMarc21FilePath,$input_marc21FilePath),1,"copyFilesToMeta() file $input_marc21FilePath is identical to $output_sameMarc21FilePath");
is(equalFilesByIgnoringCRLF_LF($output_sameRightsFilePath,$input_rightsFilePath),1,"copyFilesToMeta() file $input_rightsFilePath is identical to $output_sameRightsFilePath");
is(equalFilesByIgnoringCRLF_LF($output_sameRightsFilePath,$input_rightsFilePath),1,"copyFilesToMeta() file $input_rightsFilePath is identical to $output_sameRightsFilePath");
is(SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_rightsFilePath,$xsdName),1,"validateRightsXML() meta/rights.xml according to $xsdName");
is(SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_rightsFilePath,$xsdName),1,"validateRightsXML() meta/rights.xml according to $xsdName");
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML(undef,$xsdName);}qr/rightsFilePath not defined/,"validateRightsXML(\$rightsFilePath, \$xsdName), metaPath undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML(undef,$xsdName);}qr/rightsFilePath not defined/,"validateRightsXML(\$rightsFilePath, \$xsdName), metaPath undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_rightsFilePath,undef);}qr/xsd name not defined/,"validateRightsXML(\$rightsFilePath, \$xsdName), xsdName undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_rightsFilePath,undef);}qr/xsd name not defined/,"validateRightsXML(\$rightsFilePath, \$xsdName), xsdName undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_metaPath."/mods.xml",$xsdName);}qr/failed validation/,"validateRightsXML(\$rightsFilePath, \$xsdName), rights.xml is not valid according to $xsdName";
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_metaPath."/marc21.xml",$xsdName);}qr/failed validation/,"validateRightsXML(\$rightsFilePath, \$xsdName), rights.xml is not valid according to $xsdName";
File::Copy::Recursive::dircopy($ie_input_path,$data_output_path)ordie"Could not perform dircopy() of $ie_input_path to autogenerated $data_output_path: $!";
File::Copy::Recursive::dircopy($ie_input_path,$data_output_path)ordie"Could not perform dircopy() of $ie_input_path to autogenerated $data_output_path: $!";
throws_ok{SLUB::LZA::SIPBuilderBagIt::create_slub_bagit(undef,\@addBagInfo);}qr/bagPath is not defined/,"create_slub_bagit(\$bagPath, \$refAddBagInfo), bagPath undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::create_slub_bagit(undef,\@addBagInfo);}qr/bagPath is not defined/,"create_slub_bagit(\$bagPath, \$refAddBagInfo), bagPath undef";