28 lines
806 B
Java
28 lines
806 B
Java
|
|
package omdsclient;
|
||
|
|
|
||
|
|
import at.vvo.omds.client.api.SOAPConnector;
|
||
|
|
import at.vvo.omds.client.api.UnfallCalcService;
|
||
|
|
import at.vvo.omds.client.api.unfall.*;
|
||
|
|
import org.junit.jupiter.api.Test;
|
||
|
|
|
||
|
|
import java.util.logging.Logger;
|
||
|
|
|
||
|
|
public class OmdsclientApplicationTests {
|
||
|
|
|
||
|
|
Logger log = Logger.getLogger(OmdsclientApplicationTests.class.getName());
|
||
|
|
SOAPConnector soapConnector = new SOAPConnector();
|
||
|
|
UnfallCalcService serviceWst = new UnfallCalcService(soapConnector);
|
||
|
|
|
||
|
|
@Test
|
||
|
|
public void contextLoads() throws Exception {
|
||
|
|
VerkaufsproduktUnfall input = DefaultUnfallBuilder.createDefault();
|
||
|
|
log.info(input.toString());
|
||
|
|
|
||
|
|
// Berechnung
|
||
|
|
VerkaufsproduktUnfall result = serviceWst.calc(input);
|
||
|
|
|
||
|
|
// zeige Ergebnis
|
||
|
|
log.info(result.toString());
|
||
|
|
}
|
||
|
|
}
|