You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jm...@apache.org on 2017/12/28 00:47:56 UTC
[incubator-plc4x] 18/19: add a simple authenication test
This is an automated email from the ASF dual-hosted git repository.
jmclean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
commit 039677cc3b51178860e2e2b6f758557d3686dbba
Author: Justin Mclean <jm...@apache.org>
AuthorDate: Thu Dec 28 10:39:05 2017 +1100
add a simple authenication test
---
.../PlcUsernamePasswordAuthenticationTest.java | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/plc4j/api/src/test/org/apache/plc4x/java/api/authentication/PlcUsernamePasswordAuthenticationTest.java b/plc4j/api/src/test/org/apache/plc4x/java/api/authentication/PlcUsernamePasswordAuthenticationTest.java
new file mode 100644
index 0000000..4275813
--- /dev/null
+++ b/plc4j/api/src/test/org/apache/plc4x/java/api/authentication/PlcUsernamePasswordAuthenticationTest.java
@@ -0,0 +1,19 @@
+package org.apache.plc4x.java.api.authentication;
+
+import org.junit.jupiter.api.Tag;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+class PlcUsernamePasswordAuthenticationTest {
+
+ @Test
+ @Tag("fast")
+ void authenication() {
+ PlcUsernamePasswordAuthentication authenication = new PlcUsernamePasswordAuthentication("user", "password");
+
+ assertTrue(authenication.getUsername().equals("user"), "Unexpected user name");
+ assertTrue(authenication.getPassword().equals("password"), "Unexpected password");
+ }
+
+}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
"commits@plc4x.apache.org" <co...@plc4x.apache.org>.