Class CXMLBuilderTest

java.lang.Object
de.hybris.platform.b2b.punchout.services.CXMLBuilderTest

@UnitTest public class CXMLBuilderTest extends Object
Unit test for CXMLBuilder.
  • Constructor Details

    • CXMLBuilderTest

      public CXMLBuilderTest()
  • Method Details

    • shouldCreateCXMLBuilder

      public void shouldCreateCXMLBuilder()
    • shouldCreateValidCXML

      public void shouldCreateValidCXML()
    • shouldCreateValidRootElemet

      public void shouldCreateValidRootElemet()
    • shouldUnmarshallFromStringXML

      public void shouldUnmarshallFromStringXML() throws FileNotFoundException
      Throws:
      FileNotFoundException
    • testStatusCodeAndMessage

      public void testStatusCodeAndMessage()
      Tests that supplying both response code and message are part of the Response part of the CXML instance.
    • testWhenOnlyStatusCode

      public void testWhenOnlyStatusCode()
      Tests that when a new builder is configured with response code only the result contains a Response object with the correct data.