Skip to content

Commit

Permalink
Updated to 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Aug 20, 2020
1 parent 474d150 commit 0c5f9a9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
*/
package eu.peppol.codelist.main;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import eu.peppol.codelist.ConvertV7_2;

/**
Expand All @@ -24,8 +27,12 @@
*/
public final class MainProcessExcel_v7_2
{
private static final Logger LOGGER = LoggerFactory.getLogger (MainProcessExcel_v7_2.class);

public static void main (final String [] args) throws Exception
{
new ConvertV7_2 ().run ();
LOGGER.info ("Now run 'mvn license:format' on this project");
LOGGER.info ("Than copy the output from 'ceated-codelists/vX.Y' to the respective 'publication/vX.Y' folder in the parent project");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@

import org.junit.Test;

import eu.peppol.codelist.ConvertV7_1;
import eu.peppol.codelist.ConvertV7_2;
import eu.peppol.codelist.model.DocTypeRow;
import eu.peppol.codelist.model.ParticipantIdentifierSchemeRow;
import eu.peppol.codelist.model.ProcessRow;
import eu.peppol.codelist.model.TransportProfileRow;

/**
* Check if the create lists match the XSD.
* Check if the created lists match the XSD.
*
* @author Philip Helger
*/
public final class ConvertV7_1ResultFuncTest
public final class ConvertV7_2ResultFuncTest
{
@Test
public void testReadDocTypes ()
{
final DocumentTypeCodeListMarshaller m = new DocumentTypeCodeListMarshaller ();
final File f = new File (ConvertV7_1.DESTINATION_BASE_PATH,
DocTypeRow.CODE_LIST_NAME + ConvertV7_1.DESTINATION_FILENAME_SUFFIX + ".xml");
final File f = new File (ConvertV7_2.DESTINATION_BASE_PATH,
DocTypeRow.CODE_LIST_NAME + ConvertV7_2.DESTINATION_FILENAME_SUFFIX + ".xml");
assertTrue (f.exists ());
final DocumentTypesType aList = m.read (f);
assertNotNull (aList);
Expand All @@ -50,8 +50,8 @@ public void testReadDocTypes ()
public void testReadParticipantIdentifierSchemes ()
{
final ParticipantIdentifierSchemeCodeListMarshaller m = new ParticipantIdentifierSchemeCodeListMarshaller ();
final File f = new File (ConvertV7_1.DESTINATION_BASE_PATH,
ParticipantIdentifierSchemeRow.CODE_LIST_NAME + ConvertV7_1.DESTINATION_FILENAME_SUFFIX + ".xml");
final File f = new File (ConvertV7_2.DESTINATION_BASE_PATH,
ParticipantIdentifierSchemeRow.CODE_LIST_NAME + ConvertV7_2.DESTINATION_FILENAME_SUFFIX + ".xml");
assertTrue (f.exists ());
final ParticipantIdentifierSchemesType aList = m.read (f);
assertNotNull (aList);
Expand All @@ -61,8 +61,8 @@ public void testReadParticipantIdentifierSchemes ()
public void testReadProcesses ()
{
final ProcessCodeListMarshaller m = new ProcessCodeListMarshaller ();
final File f = new File (ConvertV7_1.DESTINATION_BASE_PATH,
ProcessRow.CODE_LIST_NAME + ConvertV7_1.DESTINATION_FILENAME_SUFFIX + ".xml");
final File f = new File (ConvertV7_2.DESTINATION_BASE_PATH,
ProcessRow.CODE_LIST_NAME + ConvertV7_2.DESTINATION_FILENAME_SUFFIX + ".xml");
assertTrue (f.exists ());
final ProcessesType aList = m.read (f);
assertNotNull (aList);
Expand All @@ -72,8 +72,8 @@ public void testReadProcesses ()
public void testReadTransportProfiles ()
{
final TransportProfileCodeListMarshaller m = new TransportProfileCodeListMarshaller ();
final File f = new File (ConvertV7_1.DESTINATION_BASE_PATH,
TransportProfileRow.CODE_LIST_NAME + ConvertV7_1.DESTINATION_FILENAME_SUFFIX + ".xml");
final File f = new File (ConvertV7_2.DESTINATION_BASE_PATH,
TransportProfileRow.CODE_LIST_NAME + ConvertV7_2.DESTINATION_FILENAME_SUFFIX + ".xml");
assertTrue (f.exists ());
final TransportProfilesType aList = m.read (f);
assertNotNull (aList);
Expand Down

0 comments on commit 0c5f9a9

Please sign in to comment.