Commit e5762581 authored by marceteau's avatar marceteau
Browse files

correctifs rapides sur les tests junit

parent 7b536383
......@@ -40,6 +40,7 @@ import fr.cines.ip.InformationPackage;
import fr.cines.pac.aip.PacType;
import fr.cines.pac.converter.ManifestConverter;
import fr.cines.pac.converter.exception.DuplicateLanguageException;
import fr.cines.pac.ingest.util.exception.IngestRejectException;
import fr.cines.pac.converter.DCToSeda21Converter;
/**
......@@ -51,14 +52,14 @@ public class DCToSeda21ConverterTest {
/**
* Test method for {@link fr.cines.pac.converter.DCToSeda21Converter#convertManifest(java.io.File, java.io.File)}.
* @throws FileNotFoundException
* @throws DuplicateLanguageException
* @throws IngestRejectException
* @throws JAXBException
*/
@Test
public void testConvertManifest() throws FileNotFoundException, DuplicateLanguageException {
public void testConvertManifest() throws FileNotFoundException, IngestRejectException {
File aip = new File(getClass().getResource("/aip.xml").getFile());
File manifest = new File("manifest.xml");
ManifestConverter converter = new DCToSeda21Converter(getClass().getResource("/ABES.properties").getFile());
ManifestConverter converter = new DCToSeda21Converter(getClass().getResource("/ABES.properties").getFile(), "/home/marceteau/git/vitam-data-test/VITAM_CINES_CONNECTOR/tests_finalisation_DC/TEST_PDC.txt");
converter.setOnlyManifest(false);
converter.convertManifest(aip, manifest);
......@@ -68,14 +69,14 @@ public class DCToSeda21ConverterTest {
/**
* Test method for {@link fr.cines.pac.converter.DCToSeda21Converter#convertManifest(java.io.File, java.io.File)}.
* @throws FileNotFoundException
* @throws DuplicateLanguageException
* @throws IngestRejectException
* @throws JAXBException
*/
@Test
public void testConvertManifestComplet() throws FileNotFoundException, DuplicateLanguageException {
public void testConvertManifestComplet() throws FileNotFoundException, IngestRejectException {
File aip = new File(getClass().getResource("/aip_complet.xml").getFile());
File manifest = new File("manifest_complet.xml");
ManifestConverter converter = new DCToSeda21Converter(getClass().getResource("/ABES.properties").getFile());
ManifestConverter converter = new DCToSeda21Converter(getClass().getResource("/ABES.properties").getFile(), "/home/marceteau/git/vitam-data-test/VITAM_CINES_CONNECTOR/tests_finalisation_DC/TEST_PDC.txt");
converter.setOnlyManifest(true);
converter.convertManifest(aip, manifest);
......@@ -85,14 +86,14 @@ public class DCToSeda21ConverterTest {
/**
* Test method for {@link fr.cines.pac.converter.DCToSeda21Converter#convertManifest(java.io.File, java.io.File)}.
* @throws FileNotFoundException
* @throws DuplicateLanguageException
* @throws IngestRejectException
* @throws JAXBException
*/
@Test
public void testConvertManifestSip() throws FileNotFoundException, DuplicateLanguageException {
public void testConvertManifestSip() throws FileNotFoundException, IngestRejectException {
File aip = new File(getClass().getResource("/DC_GIF_OK/sip.xml").getFile());
File manifest = new File("manifest_sip.xml");
ManifestConverter converter = new DCToSeda21Converter(getClass().getResource("/ABES.properties").getFile());
ManifestConverter converter = new DCToSeda21Converter(getClass().getResource("/ABES.properties").getFile(), "/home/marceteau/git/vitam-data-test/VITAM_CINES_CONNECTOR/tests_finalisation_DC/TEST_PDC.txt");
converter.setOnlyManifest(true);
converter.convertManifest(aip, manifest);
......
......@@ -53,6 +53,7 @@ import fr.cines.ip.InformationPackage;
import fr.cines.pac.converter.ManifestConverter;
import fr.cines.pac.converter.Seda1ToSeda21Converter;
import fr.cines.pac.converter.exception.DuplicateLanguageException;
import fr.cines.pac.ingest.util.exception.IngestRejectException;
import fr.cines.util.FileUtils;
import fr.cines.util.xml.XmlRelaxNGTool;
import fr.cines.util.xml.XmlTool;
......@@ -272,7 +273,7 @@ public class Seda1ConverterTest {
@Test
@Ignore
public void testConversionGeneric() throws FileNotFoundException, DuplicateLanguageException {
public void testConversionGeneric() throws FileNotFoundException, IngestRejectException {
ManifestConverter converter = new Seda1ToSeda21Converter();
File originalManifest = new File(getClass().getResource("/SEDA_OK_Generic/ArchiveTransfer.xml").getFile());
File manifest = new File("manifest.xml");
......@@ -288,7 +289,7 @@ public class Seda1ConverterTest {
@Test
@Ignore
public void testConversionCdc() throws FileNotFoundException, DuplicateLanguageException {
public void testConversionCdc() throws FileNotFoundException, IngestRejectException {
ManifestConverter converter = new Seda1ToSeda21Converter();
File originalManifest = new File(getClass().getResource("/PA_CC_ADMCO_V1.6_137/Archive.xml").getFile());
File manifest = new File("manifest.xml");
......@@ -304,7 +305,7 @@ public class Seda1ConverterTest {
@Test
public void testManifestConversion() throws FileNotFoundException, DuplicateLanguageException {
public void testManifestConversion() throws FileNotFoundException, IngestRejectException {
ManifestConverter converter = new Seda1ToSeda21Converter();
converter.setOnlyManifest(true);
File originalManifest = new File(getClass().getResource("/ArchiveTransfer.xml").getFile());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment