Skip to content

Commit 10d0794

Browse files
committed
fix ApplicationTest
1 parent 9748fb4 commit 10d0794

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/java/de/rwth/idsg/steve/ApplicationTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import org.junit.BeforeClass;
1515
import org.junit.Test;
1616

17+
import javax.xml.ws.soap.SOAPFaultException;
18+
1719
import static de.rwth.idsg.steve.utils.Helpers.getForOcpp12;
1820
import static de.rwth.idsg.steve.utils.Helpers.getForOcpp15;
1921
import static de.rwth.idsg.steve.utils.Helpers.getForOcpp16;
@@ -88,7 +90,10 @@ public void testOcpp15() {
8890
Assert.assertEquals(ocpp.cs._2012._06.AuthorizationStatus.ACCEPTED, auth.getIdTagInfo().getStatus());
8991
}
9092

91-
@Test
93+
/**
94+
* SOAPFaultException because we are sending an AuthorizeRequest from an random/unknown station.
95+
*/
96+
@Test(expected = SOAPFaultException.class)
9297
public void testOcpp16() {
9398
ocpp.cs._2015._10.CentralSystemService client = getForOcpp16(path);
9499

0 commit comments

Comments
 (0)