use of ocpp.cs._2012._06.CentralSystemService in project steve by RWTH-i5-IDSG.
the class ApplicationTest method testOcpp12.
@Test
public void testOcpp12() {
ocpp.cs._2010._08.CentralSystemService client = getForOcpp12();
BootNotificationResponse boot = client.bootNotification(new BootNotificationRequest().withChargePointVendor(getRandomString()).withChargePointModel(getRandomString()), REGISTERED_CHARGE_BOX_ID);
Assert.assertNotNull(boot);
Assert.assertEquals(RegistrationStatus.ACCEPTED, boot.getStatus());
AuthorizeResponse auth = client.authorize(new AuthorizeRequest().withIdTag(REGISTERED_OCPP_TAG), REGISTERED_CHARGE_BOX_ID);
Assert.assertNotNull(auth);
Assert.assertEquals(AuthorizationStatus.ACCEPTED, auth.getIdTagInfo().getStatus());
}
use of ocpp.cs._2012._06.CentralSystemService in project steve by RWTH-i5-IDSG.
the class ApplicationTest method getForOcpp16.
private static ocpp.cs._2015._10.CentralSystemService getForOcpp16() {
JaxWsProxyFactoryBean f = getBean(path);
f.setServiceClass(ocpp.cs._2015._10.CentralSystemService.class);
return (ocpp.cs._2015._10.CentralSystemService) f.create();
}
use of ocpp.cs._2012._06.CentralSystemService in project steve by RWTH-i5-IDSG.
the class ApplicationTest method getForOcpp15.
private static ocpp.cs._2012._06.CentralSystemService getForOcpp15() {
JaxWsProxyFactoryBean f = getBean(path);
f.setServiceClass(ocpp.cs._2012._06.CentralSystemService.class);
return (ocpp.cs._2012._06.CentralSystemService) f.create();
}
use of ocpp.cs._2012._06.CentralSystemService in project steve by RWTH-i5-IDSG.
the class ApplicationTest method testOcpp15.
@Test
public void testOcpp15() {
CentralSystemService client = getForOcpp15();
ocpp.cs._2012._06.BootNotificationResponse boot = client.bootNotification(new ocpp.cs._2012._06.BootNotificationRequest().withChargePointVendor(getRandomString()).withChargePointModel(getRandomString()), REGISTERED_CHARGE_BOX_ID);
Assert.assertNotNull(boot);
Assert.assertEquals(ocpp.cs._2012._06.RegistrationStatus.ACCEPTED, boot.getStatus());
ocpp.cs._2012._06.AuthorizeResponse auth = client.authorize(new ocpp.cs._2012._06.AuthorizeRequest().withIdTag(REGISTERED_OCPP_TAG), REGISTERED_CHARGE_BOX_ID);
Assert.assertNotNull(auth);
Assert.assertEquals(ocpp.cs._2012._06.AuthorizationStatus.ACCEPTED, auth.getIdTagInfo().getStatus());
}
use of ocpp.cs._2012._06.CentralSystemService in project steve by RWTH-i5-IDSG.
the class ApplicationTest method getForOcpp12.
private static ocpp.cs._2010._08.CentralSystemService getForOcpp12() {
JaxWsProxyFactoryBean f = getBean(path);
f.setServiceClass(ocpp.cs._2010._08.CentralSystemService.class);
return (ocpp.cs._2010._08.CentralSystemService) f.create();
}
Aggregations