From ce109c546b4b7d4c30aa809163bfdc67581cae47 Mon Sep 17 00:00:00 2001 From: Steinar Overbeck Cook Date: Thu, 11 Feb 2016 10:45:12 +0100 Subject: [PATCH] =?UTF-8?q?Changed=20version=20from=20"1"=20to=20"2"=20in?= =?UTF-8?q?=20accordance=20with=20profile=20created=20by=20J=C3=B6rg=20Api?= =?UTF-8?q?tzsh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilder.java | 4 +++- .../difi/vefa/peppol/evidence/rem/RemEvidenceBuilderTest.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/peppol-evidence/src/main/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilder.java b/peppol-evidence/src/main/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilder.java index 8e0fc798..5dfe911d 100644 --- a/peppol-evidence/src/main/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilder.java +++ b/peppol-evidence/src/main/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilder.java @@ -33,8 +33,10 @@ */ public class RemEvidenceBuilder { + public static final String REM_VERSION = "2"; + private final EvidenceTypeInstance evidenceTypeInstance; - private final String version = "1"; + private final String version = REM_VERSION; private EventCode eventCode; private EventReason eventReason; private String evidenceIdentifier = UUID.randomUUID().toString(); diff --git a/peppol-evidence/src/test/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilderTest.java b/peppol-evidence/src/test/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilderTest.java index c1dbb328..a355cccc 100644 --- a/peppol-evidence/src/test/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilderTest.java +++ b/peppol-evidence/src/test/java/no/difi/vefa/peppol/evidence/rem/RemEvidenceBuilderTest.java @@ -70,7 +70,7 @@ public void createSampleRemEvidence() throws Exception { // Issue #2 assertNotNull(remEvidenceInstance.getVersion(), "The version attribute was not set!"); - assertEquals(remEvidenceInstance.getVersion(), "1"); + assertEquals(remEvidenceInstance.getVersion(), RemEvidenceBuilder.REM_VERSION); // ------------- Issue #2 --------------