View Javadoc
1   /*
2    * Copyright (C) 2010-2014 Hamburg Sud and the contributors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.aludratest.service.edifactfile;
17  
18  import org.aludratest.impl.log4testing.ElementName;
19  import org.aludratest.impl.log4testing.ElementType;
20  import org.aludratest.impl.log4testing.TechnicalArgument;
21  import org.aludratest.service.Verification;
22  import org.databene.edifatto.ComparisonSettings;
23  import org.databene.edifatto.compare.ComparisonModel;
24  import org.databene.edifatto.model.Interchange;
25  import org.w3c.dom.Element;
26  
27  /** 
28   * Verifies equality of EDIFACT or X12 documents.
29   * @author Volker Bergmann
30   */
31  public interface EdifactFileVerification extends Verification {
32  
33      /** Asserts that two EDIFACT or X12 interchanges are equal.
34       *  @param elementType 
35       *  @param elementName 
36       *  @param expected the expected interchange data
37       *  @param actual the actual interface data
38       *  @param settings the {@link ComparisonSettings} to apply 
39       *  @param model */
40      void assertInterchangesMatch(
41              @ElementType String elementType, 
42              @ElementName String elementName, 
43              Interchange expected, 
44              Interchange actual, 
45              @TechnicalArgument ComparisonSettings settings, 
46              @TechnicalArgument ComparisonModel<Element> model);
47  }