Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Nov 4, 2024
1 parent 1931e61 commit b4c8509
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.helger.phive.api.execute.ValidationExecutionManager;
import com.helger.phive.api.result.ValidationResult;
import com.helger.phive.api.result.ValidationResultList;
import com.helger.phive.api.validity.IValidityDeterminator;
import com.helger.phive.xml.source.ValidationSourceXML;
import com.helger.ubl21.UBL21Marshaller;

Expand Down Expand Up @@ -85,7 +86,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}
else
Expand All @@ -97,7 +99,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.helger.phive.api.execute.ValidationExecutionManager;
import com.helger.phive.api.result.ValidationResult;
import com.helger.phive.api.result.ValidationResultList;
import com.helger.phive.api.validity.IValidityDeterminator;
import com.helger.phive.xml.source.ValidationSourceXML;
import com.helger.ubl22.UBL22Marshaller;

Expand Down Expand Up @@ -85,7 +86,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}
else
Expand All @@ -97,7 +99,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.helger.phive.api.execute.ValidationExecutionManager;
import com.helger.phive.api.result.ValidationResult;
import com.helger.phive.api.result.ValidationResultList;
import com.helger.phive.api.validity.IValidityDeterminator;
import com.helger.phive.xml.source.ValidationSourceXML;
import com.helger.ubl23.UBL23Marshaller;

Expand Down Expand Up @@ -85,7 +86,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}
else
Expand All @@ -97,7 +99,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import com.helger.phive.api.execute.ValidationExecutionManager;
import com.helger.phive.api.result.ValidationResult;
import com.helger.phive.api.result.ValidationResultList;
import com.helger.phive.api.validity.IValidityDeterminator;
import com.helger.phive.xml.source.ValidationSourceXML;
import com.helger.ubl24.UBL24Marshaller;

Expand Down Expand Up @@ -87,7 +88,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_INVOICE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}
else
Expand All @@ -99,7 +101,8 @@ public void testConvertAndValidateAll ()
aWriter.write (aUBLInvoice, aDestFile);

// Validate against EN16931 validation rules
aResultList = ValidationExecutionManager.executeValidation (MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
aResultList = ValidationExecutionManager.executeValidation (IValidityDeterminator.createDefault (),
MockSettings.VES_REGISTRY.getOfID (MockSettings.VID_CREDIT_NOTE),
ValidationSourceXML.create (new FileSystemResource (aDestFile)));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.helger.commons.annotation.ReturnsMutableCopy;
import com.helger.commons.collection.impl.CommonsArrayList;
import com.helger.commons.collection.impl.ICommonsList;
import com.helger.diver.api.version.VESID;
import com.helger.diver.api.coord.DVRCoordinate;
import com.helger.phive.api.executorset.ValidationExecutorSetRegistry;
import com.helger.phive.en16931.EN16931Validation;
import com.helger.phive.xml.source.IValidationSourceXML;
Expand Down Expand Up @@ -93,8 +93,8 @@ final class MockSettings
// "03.01a-INVOICE_uncefact.xml",
"03.02a-INVOICE_uncefact.xml" };

static final VESID VID_INVOICE = EN16931Validation.VID_UBL_INVOICE_1311;
static final VESID VID_CREDIT_NOTE = EN16931Validation.VID_UBL_CREDIT_NOTE_1311;
static final DVRCoordinate VID_INVOICE = EN16931Validation.VID_UBL_INVOICE_1313.getWithVersionLatestRelease ();
static final DVRCoordinate VID_CREDIT_NOTE = EN16931Validation.VID_UBL_CREDIT_NOTE_1313.getWithVersionLatestRelease ();

static final ValidationExecutorSetRegistry <IValidationSourceXML> VES_REGISTRY = new ValidationExecutorSetRegistry <> ();
static
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</developers>

<properties>
<phive-rules.version>3.1.12</phive-rules.version>
<phive-rules.version>3.2.1</phive-rules.version>
<picocli.version>4.7.6</picocli.version>
</properties>

Expand All @@ -73,7 +73,7 @@
<dependency>
<groupId>com.helger.ubl</groupId>
<artifactId>ph-ubl-parent-pom</artifactId>
<version>9.0.2</version>
<version>9.0.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

0 comments on commit b4c8509

Please sign in to comment.