Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Philip Helger
*/
@Immutable
public class CPeppolMLR
public final class CPeppolMLR
{
public static final String MLR_CUSTOMIZATION_ID = "urn:fdc:peppol.eu:poacc:trns:mlr:3";
public static final String MLR_PROFILE_ID = "urn:fdc:peppol.eu:poacc:bis:mlr:3";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
import com.helger.commons.lang.EnumHelper;
import com.helger.commons.state.ISuccessIndicator;

/**
* Code list for the top-level MLR response codes.
*
* @author Philip Helger
*/
public enum EPeppolMLRResponseCode implements IHasID <String>, ISuccessIndicator
{
ACCEPTANCE ("AP"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public final class PeppolMLRMarshallerTest
private static final Logger LOGGER = LoggerFactory.getLogger (PeppolMLRMarshallerTest.class);

@Test
public void testRead ()
public void testReadGood ()
{
for (final File f : new FileSystemRecursiveIterator (new File ("src/test/resources/external/test-files")).withFilter (IFileFilter.filenameEndsWith (".xml")))
for (final File f : new FileSystemRecursiveIterator (new File ("src/test/resources/external/test-files/good")).withFilter (IFileFilter.filenameEndsWith (".xml")))
{
LOGGER.info ("Reading '" + f.getName () + "'");
final ApplicationResponseType aMLR = new PeppolMLRMarshaller ().read (f);
Expand Down
21 changes: 21 additions & 0 deletions peppol-mls/findbugs-exclude.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!--

Copyright (C) 2025 Philip Helger
philip[at]helger[dot]com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<FindBugsFilter>
<!-- Docs: http://findbugs.sourceforge.net/manual/filter.html -->
</FindBugsFilter>
116 changes: 116 additions & 0 deletions peppol-mls/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

Copyright (C) 2025 Philip Helger
philip[at]helger[dot]com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-commons-parent-pom</artifactId>
<version>10.0.3-SNAPSHOT</version>
</parent>
<artifactId>peppol-mls</artifactId>
<packaging>bundle</packaging>
<name>peppol-mls</name>
<description>Peppol Message Level Status (MLS) support</description>
<url>https://github.com/phax/peppol-commons/peppol-mls</url>
<inceptionYear>2025</inceptionYear>

<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>

<organization>
<name>Philip Helger</name>
<url>http://www.helger.com</url>
</organization>

<developers>
<developer>
<id>philip</id>
<name>Philip Helger</name>
<email>ph(at)helger.com</email>
<url>http://www.helger.com</url>
</developer>
</developers>

<dependencies>
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-commons</artifactId>
</dependency>
<dependency>
<groupId>com.helger.commons</groupId>
<artifactId>ph-jaxb</artifactId>
</dependency>
<dependency>
<groupId>com.helger.ubl</groupId>
<artifactId>ph-ubl21</artifactId>
<version>${ph-ubl.version}</version>
</dependency>
<dependency>
<groupId>com.helger.peppol</groupId>
<artifactId>peppol-id</artifactId>
</dependency>
<dependency>
<groupId>com.helger.schematron</groupId>
<artifactId>ph-schematron-xslt</artifactId>
<version>${ph-schematron.version}</version>
</dependency>

<dependency>
<groupId>com.helger.phive</groupId>
<artifactId>phive-api</artifactId>
<version>${phive.version}</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>com.helger.peppol.mls</Automatic-Module-Name>
<Export-Package>
com.helger.peppol.mls
</Export-Package>
<Import-Package>!javax.annotation.*,*</Import-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading