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

sruehl 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 7a5d916  added test for random parameters on AdsPlcDriver
7a5d916 is described below

commit 7a5d916a03995540a2d992256fe815b61be0e191
Author: Sebastian Rühl <sru...@apache.org>
AuthorDate: Thu May 24 17:00:57 2018 +0200

    added test for random parameters on AdsPlcDriver
---
 .../src/test/java/org/apache/plc4x/java/ads/AdsPlcDriverTest.java   | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/plc4j/protocols/ads/src/test/java/org/apache/plc4x/java/ads/AdsPlcDriverTest.java
 
b/plc4j/protocols/ads/src/test/java/org/apache/plc4x/java/ads/AdsPlcDriverTest.java
index e1eb30d..932f790 100644
--- 
a/plc4j/protocols/ads/src/test/java/org/apache/plc4x/java/ads/AdsPlcDriverTest.java
+++ 
b/plc4j/protocols/ads/src/test/java/org/apache/plc4x/java/ads/AdsPlcDriverTest.java
@@ -44,7 +44,7 @@ public class AdsPlcDriverTest {
     public TcpHexDumper tcpHexDumper = new TcpHexDumper(0, 2);
 
     @Test
-    public void testAdsAddressPattern() throws Exception {
+    public void testAdsAddressPattern() {
         assertMatching(ADS_ADDRESS_PATTERN, "0.0.0.0.0.0:13");
         assertMatching(ADS_ADDRESS_PATTERN, "0.0.0.0.0.0:13/0.0.0.0.0.0:13");
 
@@ -62,10 +62,12 @@ public class AdsPlcDriverTest {
         assertMatching(ADS_URI_PATTERN, 
"ads:serial:///dev/com1/0.0.0.0.0.0:13");
         assertMatching(ADS_URI_PATTERN, "ads:serial://COM1/0.0.0.0.0.0:13");
         assertMatching(ADS_URI_PATTERN, 
"ads:serial:///dev/ttyUSB0/0.0.0.0.0.0:13");
+
+        assertMatching(ADS_URI_PATTERN, 
"ads:serial:///dev/ttyUSB0/0.0.0.0.0.0:13?some=random&parameters=true");
     }
 
     @Test
-    public void testDriverWithCompleteUrls() throws Exception {
+    public void testDriverWithCompleteUrls() {
         AdsPlcDriver SUT = new AdsPlcDriver(mock(AdsConnectionFactory.class));
         Stream.of(
             "ads:tcp://www.google.de/0.0.0.0.0.0:13",

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

Reply via email to