This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new d60b810  Increased the test coverage a little
d60b810 is described below

commit d60b810e8c2b148b16f15d40fd9b5ea85936efb1
Author: Christofer Dutz <christofer.d...@c-ware.de>
AuthorDate: Tue Mar 6 15:05:08 2018 +0100

    Increased the test coverage a little
---
 .../apache/plc4x/java/s7/connection/S7PlcConnectionTests.java    | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/connection/S7PlcConnectionTests.java
 
b/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/connection/S7PlcConnectionTests.java
index 75a4357..f27740a 100644
--- 
a/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/connection/S7PlcConnectionTests.java
+++ 
b/plc4j/protocols/s7/src/test/java/org/apache/plc4x/java/s7/connection/S7PlcConnectionTests.java
@@ -43,7 +43,8 @@ public class S7PlcConnectionTests {
     @Before
     public void setUp() throws Exception {
         InetAddress address = InetAddress.getByName("localhost");
-        s7PlcConnection = new S7PlcConnection(address, 1, 2, "");
+        s7PlcConnection = new S7PlcConnection(address, 1, 2,
+            
"pdu-size=1&max-amq-caller=2&max-amq-callee=3&unknown=parameter&unknown-flag");
     }
 
     @After
@@ -55,9 +56,9 @@ public class S7PlcConnectionTests {
     public void initialState() {
         assertThat("Rack is incorrect", s7PlcConnection.getRack(), equalTo(1) 
);
         assertThat("Slot is incorrect", s7PlcConnection.getSlot(), equalTo(2) 
);
-        assertThat("Pdu size is incorrect", s7PlcConnection.getParamPduSize(), 
equalTo(TpduSize.SIZE_1024));
-        assertThat("Max AMQ Caller size is incorrect", 
s7PlcConnection.getParamMaxAmqCaller(), equalTo(8) );
-        assertThat("Max AMQ Callee size is incorrect", 
s7PlcConnection.getParamMaxAmqCallee(), equalTo(8) );
+        assertThat("Pdu size is incorrect", s7PlcConnection.getParamPduSize(), 
equalTo(TpduSize.SIZE_128));
+        assertThat("Max AMQ Caller size is incorrect", 
s7PlcConnection.getParamMaxAmqCaller(), equalTo(2) );
+        assertThat("Max AMQ Callee size is incorrect", 
s7PlcConnection.getParamMaxAmqCallee(), equalTo(3) );
     }
 
     @Test

-- 
To stop receiving notification emails like this one, please contact
cd...@apache.org.

Reply via email to