BAEL-17950 Fix the integrations tests in xml (#7882)

-Fixed integration test issue and renamed the class back to *UnitTest as its not an integration test at all
This commit is contained in:
Dhawal Kapil
2019-09-27 19:32:22 +05:30
committed by Josh Cummings
parent cd032c9d73
commit 5373bc1719
2 changed files with 64 additions and 21 deletions

View File

@@ -11,7 +11,7 @@ import java.io.InputStream;
import static junit.framework.Assert.assertEquals;
public class CustomerIntegrationTest {
public class CustomerUnitTest {
@Test
public void whenUnmarshalXML_ThenFieldsAreMapped() throws JiBXException, FileNotFoundException {
@@ -21,7 +21,7 @@ public class CustomerIntegrationTest {
InputStream inputStream = classLoader.getResourceAsStream("Customer1.xml");
Customer customer = (Customer) uctx.unmarshalDocument(inputStream, null);
assertEquals("Stefan Jaegar", customer.getPerson().getName());
assertEquals("Stefan Jaeger", customer.getPerson().getName());
assertEquals("Davos Dorf", customer.getCity());
}