Merge "Removes connectToHTTPVABElement method"
diff --git a/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/DynamicActivitiProcessTest.java b/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/DynamicActivitiProcessTest.java
index 21f63e4..f0c5c49 100644
--- a/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/DynamicActivitiProcessTest.java
+++ b/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/DynamicActivitiProcessTest.java
@@ -1,6 +1,7 @@
 package org.eclipse.basyx.regression.processengineconnector.tests;
 
-import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import static org.junit.Assert.assertEquals;
 
 import java.io.File;
 import java.io.IOException;
diff --git a/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/TestAASServicecall.java b/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/TestAASServicecall.java
index 8551f65..27127dd 100644
--- a/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/TestAASServicecall.java
+++ b/components/basys.components/src/test/java/org/eclipse/basyx/regression/processengineconnector/tests/TestAASServicecall.java
@@ -1,7 +1,7 @@
 package org.eclipse.basyx.regression.processengineconnector.tests;

 

+import static org.junit.Assert.assertEquals;

 import static org.junit.Assert.assertTrue;

-import static org.junit.jupiter.api.Assertions.assertEquals;

 

 import java.util.ArrayList;

 import java.util.Arrays;

diff --git a/examples/basys.examples/pom.xml b/examples/basys.examples/pom.xml
index 3b33e6c..b621b3f 100644
--- a/examples/basys.examples/pom.xml
+++ b/examples/basys.examples/pom.xml
@@ -91,7 +91,6 @@
   </build>

   

   <dependencies>

-		<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->

 		<!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->

 		<!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client -->

 		<!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->

diff --git a/sdks/java/basys.sdk/pom.xml b/sdks/java/basys.sdk/pom.xml
index 08fd55f..dfcb211 100644
--- a/sdks/java/basys.sdk/pom.xml
+++ b/sdks/java/basys.sdk/pom.xml
@@ -1,168 +1,162 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

-  <modelVersion>4.0.0</modelVersion>

-  <groupId>org.eclipse.basyx</groupId>

-  <artifactId>basyx.sdk</artifactId>

-  <version>0.0.1-SNAPSHOT</version>

-  <packaging>jar</packaging>

-  <name>BaSyx SDK</name>

-  

-  

+<project xmlns="http://maven.apache.org/POM/4.0.0"

+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

+	<modelVersion>4.0.0</modelVersion>

+

+	<groupId>org.eclipse.basyx</groupId>

+	<artifactId>basyx.sdk</artifactId>

+	<version>0.0.1-SNAPSHOT</version>

+	<name>BaSyx SDK</name>

+

+	<packaging>jar</packaging>

+

 	<properties>

-  		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

 	</properties>

-  <build>

-    <sourceDirectory>src/main/java</sourceDirectory>

-  	<testSourceDirectory>src/test/java</testSourceDirectory>    

-    

- 

-   <!-- Compile Sources -->

-    <plugins>

-      <plugin>

-        <artifactId>maven-compiler-plugin</artifactId>

-        <version>3.7.0</version>

-        <configuration>

-          <source>1.8</source>

-          <target>1.8</target>

-        </configuration>

-      </plugin>

-      

-      <!-- Attach sources to jar file -->

-      <plugin>

-            <groupId>org.apache.maven.plugins</groupId>

-            <artifactId>maven-source-plugin</artifactId>

-            <version>3.1.0</version>

-            <executions>

-                   <execution>

-                          <id>attach-sources</id>

-                          <goals>

-                                 <goal>jar</goal>

-                          </goals>

-                   </execution>

-            </executions>

-      </plugin>

 

-	<!-- Add sources for regression-support to sourceDirectory -->

-	 <plugin>

-		   <groupId>org.codehaus.mojo</groupId>

-		   <artifactId>build-helper-maven-plugin</artifactId>

-		   <version>3.0.0</version>

-		   <executions>

-				  <execution>

-						 <id>attachSupport</id>

-						 <phase>generate-sources</phase>

-						 <goals>

-								<goal>add-source</goal>

-						 </goals>

-						 <configuration>

-								<sources>

-									   <source>src/test/java/org/eclipse/basyx/testsuite/support</source>

-								</sources>

-						 </configuration>

-				  </execution>

-		   </executions>

-	 </plugin>

+	<build>

+		<sourceDirectory>src/main/java</sourceDirectory>

+		<testSourceDirectory>src/test/java</testSourceDirectory>

 

+		<plugins>

+			<!-- Compile Sources using Java 8 -->

+			<plugin>

+				<artifactId>maven-compiler-plugin</artifactId>

+				<version>3.8.1</version>

+				<configuration>

+					<source>1.8</source>

+					<target>1.8</target>

+				</configuration>

+			</plugin>

 

-	  

-     <!-- Run Unit Tests -->

-      <plugin>

-         <groupId>org.apache.maven.plugins</groupId>

-         <artifactId>maven-surefire-plugin</artifactId>

-         <version>2.12.1</version>

-         <configuration>

-    		<excludes>

-      			<exclude>**/*HTTP*</exclude>

-      			<exclude>**/*TCP*</exclude>

-    		</excludes>

-  		 </configuration>

-     </plugin>

-	 

-	 <!-- Run Integration Tests -->

-	    <plugin>

-		  <groupId>org.apache.maven.plugins</groupId>

-		  <artifactId>maven-failsafe-plugin</artifactId>

-		  <version>2.12.4</version>

-		  <configuration>

-		    <includes>

-		      <include>**/*HTTP*</include>

-		      <include>**/*TCP*</include>

-		    </includes>

-		  </configuration>

-		  <executions>

-		    <execution>

-		      <goals>

-		        <goal>integration-test</goal>

-		        <goal>verify</goal>

-		      </goals>

-		    </execution>

-		  </executions>

-		</plugin>   

-    </plugins>

-   

-  </build>

-  <dependencies>

-  	<dependency>

-    	<groupId>junit</groupId>

-    	<artifactId>junit</artifactId>

-   		<version>4.12</version>

-	</dependency>

-	<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->

-	

-	<dependency>

-	    <groupId>com.google.code.gson</groupId>

-	    <artifactId>gson</artifactId>

-	    <version>2.8.5</version>

-	</dependency>

-	<dependency>

-	    <groupId>org.junit.jupiter</groupId>

-	    <artifactId>junit-jupiter-api</artifactId>

-	    <version>5.3.1</version>

-	</dependency>

-	<dependency>

-        <groupId>org.apache.derby</groupId>

-        <artifactId>derby</artifactId>

-        <version>10.14.2.0</version>

-      </dependency>

-      <dependency>

-        <groupId>javax.mail</groupId>

-        <artifactId>mail</artifactId>

-        <version>1.4</version>

-      </dependency>

-      <!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->

-	  <dependency>

-	    <groupId>javax.ws.rs</groupId>

-	    <artifactId>javax.ws.rs-api</artifactId>

-	    <version>2.1</version>

-	  </dependency>

-	  <!-- https://mvnrepository.com/artifact/org.glassfish.jersey.core/jersey-client -->

-	<dependency>

-	    <groupId>org.glassfish.jersey.core</groupId>

-	    <artifactId>jersey-client</artifactId>

-	    <version>2.26-b03</version>

-	</dependency>

-	<!-- https://mvnrepository.com/artifact/javax.servlet/servlet-api -->

-	<dependency>

-    	<groupId>javax.servlet</groupId>

-    	<artifactId>javax.servlet-api</artifactId>

-    	<version>4.0.1</version>

-    	<scope>provided</scope>

-	</dependency>

-	<!-- https://mvnrepository.com/artifact/org.apache.tomcat/tomcat-catalina (Tomcat 8, not 9) -->

-	<dependency>

-	    <groupId>org.apache.tomcat</groupId>

-	    <artifactId>tomcat-catalina</artifactId>

-	    <version>8.0.32</version>

-	    

-	</dependency>	

-	<dependency>

-    	<groupId>org.eclipse.milo</groupId>

-    	<artifactId>sdk-client</artifactId>

-    	<version>0.3.1</version>

-	</dependency>

-	<dependency>

-    	<groupId>org.eclipse.milo</groupId>

-    	<artifactId>sdk-server</artifactId>

-    	<version>0.3.1</version>

-	</dependency>

- </dependencies>

+			<!-- Attach sources to jar file -->

+			<plugin>

+				<groupId>org.apache.maven.plugins</groupId>

+				<artifactId>maven-source-plugin</artifactId>

+				<version>3.1.0</version>

+				<executions>

+					<execution>

+						<id>attach-sources</id>

+						<goals>

+							<goal>jar-no-fork</goal>

+						</goals>

+					</execution>

+				</executions>

+			</plugin>

+

+			<!-- Add sources for regression-support to sourceDirectory -->

+			<plugin>

+				<groupId>org.codehaus.mojo</groupId>

+				<artifactId>build-helper-maven-plugin</artifactId>

+				<version>3.0.0</version>

+				<executions>

+					<execution>

+						<id>attachSupport</id>

+						<phase>generate-sources</phase>

+						<goals>

+							<goal>add-source</goal>

+						</goals>

+						<configuration>

+							<sources>

+								<source>src/test/java/org/eclipse/basyx/testsuite/support</source>

+							</sources>

+						</configuration>

+					</execution>

+				</executions>

+			</plugin>

+

+			<!-- Run Unit Tests -->

+			<plugin>

+				<groupId>org.apache.maven.plugins</groupId>

+				<artifactId>maven-surefire-plugin</artifactId>

+				<version>3.0.0-M3</version>

+				<configuration>

+					<excludes>

+						<exclude>**/*HTTP*</exclude>

+						<exclude>**/*TCP*</exclude>

+					</excludes>

+				</configuration>

+			</plugin>

+

+			<!-- Run Integration Tests -->

+			<plugin>

+				<groupId>org.apache.maven.plugins</groupId>

+				<artifactId>maven-failsafe-plugin</artifactId>

+				<version>3.0.0-M3</version>

+				<configuration>

+					<includes>

+						<include>**/*HTTP*</include>

+						<include>**/*TCP*</include>

+					</includes>

+				</configuration>

+				<executions>

+					<execution>

+						<goals>

+							<goal>integration-test</goal>

+							<goal>verify</goal>

+						</goals>

+					</execution>

+				</executions>

+			</plugin>

+		</plugins>

+	</build>

+

+	<dependencies>

+		<!-- JUnit 4 for running JUnit tests -->

+		<dependency>

+			<groupId>junit</groupId>

+			<artifactId>junit</artifactId>

+			<version>4.12</version>

+		</dependency>

+

+		<!-- Eclipse Milo (for OPC-UA client) -->

+		<dependency>

+			<groupId>org.eclipse.milo</groupId>

+			<artifactId>sdk-client</artifactId>

+			<version>0.3.3</version>

+		</dependency>

+

+		<!-- Eclipse Milo (for OPC-UA server) -->

+		<dependency>

+			<groupId>org.eclipse.milo</groupId>

+			<artifactId>sdk-server</artifactId>

+			<version>0.3.3</version>

+		</dependency>

+

+		<!-- Java Servlet API (for HTTP provider) -->

+		<dependency>

+			<groupId>javax.servlet</groupId>

+			<artifactId>javax.servlet-api</artifactId>

+			<version>4.0.1</version>

+		</dependency>

+

+		<!-- Java REST API (for WebServiceRawClient) -->

+		<dependency>

+			<groupId>javax.ws.rs</groupId>

+			<artifactId>javax.ws.rs-api</artifactId>

+			<version>2.1.1</version>

+		</dependency>

+

+		<!-- Java REST Jersey client (for WebServiceRawClient) -->

+		<dependency>

+			<groupId>org.glassfish.jersey.core</groupId>

+			<artifactId>jersey-client</artifactId>

+			<version>2.29</version>

+		</dependency>

+

+		<!-- Jersey InjectionManager (for Jersey client)  -->

+		<dependency>

+			<groupId>org.glassfish.jersey.inject</groupId>

+			<artifactId>jersey-hk2</artifactId>

+			<version>2.29</version>

+		</dependency>

+

+		<!-- Tomcat 8 for HTTP server resource -->

+		<dependency>

+			<groupId>org.apache.tomcat</groupId>

+			<artifactId>tomcat-catalina</artifactId>

+			<version>8.0.53</version>

+		</dependency>

+	</dependencies>

 </project>
\ No newline at end of file
diff --git a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/http/serialization/json/TestJson.java b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/http/serialization/json/TestJson.java
index 204c19e..8c316cc 100644
--- a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/http/serialization/json/TestJson.java
+++ b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/http/serialization/json/TestJson.java
@@ -24,12 +24,11 @@
 import org.eclipse.basyx.testsuite.support.vab.stub.elements.SimpleVABElement;

 import org.junit.Test;

 

+import com.google.common.collect.Sets;

 import com.google.gson.JsonArray;

 import com.google.gson.JsonObject;

 import com.google.gson.JsonPrimitive;

 

-import jersey.repackaged.com.google.common.collect.Sets;

-

 /**

  * Tests if the json serialization is behaving as expected

  * 

diff --git a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/provider/VABMultiAASProviderTest.java b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/provider/VABMultiAASProviderTest.java
index 4306d9a..d8a45b9 100644
--- a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/provider/VABMultiAASProviderTest.java
+++ b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/aas/backend/provider/VABMultiAASProviderTest.java
@@ -4,8 +4,8 @@
 package org.eclipse.basyx.testsuite.regression.aas.backend.provider;

 

 import static org.junit.Assert.assertEquals;

+import static org.junit.Assert.assertNull;

 import static org.junit.Assert.fail;

-import static org.junit.jupiter.api.Assertions.assertNull;

 

 import org.eclipse.basyx.aas.api.exception.ServerException;

 import org.eclipse.basyx.aas.backend.provider.VABMultiAASProvider;

diff --git a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/ReferencedArrayListTest.java b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/ReferencedArrayListTest.java
index cc3d14b..e5a2020 100644
--- a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/ReferencedArrayListTest.java
+++ b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/ReferencedArrayListTest.java
@@ -4,8 +4,8 @@
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotEquals;
 import static org.junit.Assert.assertNotSame;
+import static org.junit.Assert.assertSame;
 import static org.junit.Assert.fail;
-import static org.junit.jupiter.api.Assertions.assertSame;
 
 import java.util.ArrayList;
 import java.util.LinkedList;
diff --git a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/TestVABXmlProviderFactory.java b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/TestVABXmlProviderFactory.java
index e36e214..5348be9 100644
--- a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/TestVABXmlProviderFactory.java
+++ b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/regression/vab/provider/TestVABXmlProviderFactory.java
@@ -7,13 +7,13 @@
 import org.eclipse.basyx.vab.provider.hashmap.VABHashmapProvider;
 import org.eclipse.basyx.vab.provider.list.ReferencedArrayList;
 import org.eclipse.basyx.vab.provider.xml.VABXmlProviderFactory;
-import org.junit.jupiter.api.Test;
+import org.junit.Test;
 
-class TestVABXmlProviderFactory {
+public class TestVABXmlProviderFactory {
 
 	@SuppressWarnings({ "rawtypes", "unchecked" })
 	@Test
-	void testResources() throws Exception {
+	public void testResources() throws Exception {
 
 		VABXmlProviderFactory factory = new VABXmlProviderFactory();
 		VABHashmapProvider provider = factory.createVABElements(TestXmlParser.xmlTestContent);
diff --git a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/support/backend/servers/AASHTTPServer.java b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/support/backend/servers/AASHTTPServer.java
index 94b39d0..121161b 100644
--- a/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/support/backend/servers/AASHTTPServer.java
+++ b/sdks/java/basys.sdk/src/test/java/org/eclipse/basyx/testsuite/support/backend/servers/AASHTTPServer.java
@@ -14,12 +14,12 @@
 import org.apache.catalina.startup.Tomcat;

 

 /**

- * Starter Class for Apache Tomcat 9.0.14 HTTP server that adds the provided servlets and respective mappings on startup.

+ * Starter Class for Apache Tomcat 8.0.53 HTTP server that adds the provided servlets and respective mappings on startup.

  * 

  * @author pschorn, espen

  * 

  */

-public class AASHTTPServer extends Thread {

+public class AASHTTPServer {

 	private Tomcat tomcat;

 	   

 	/**

@@ -55,7 +55,7 @@
 

 			// Add new Servlet and Mapping to tomcat environment

 			Tomcat.addServlet(rootCtx, Integer.toString(servlet.hashCode()), servlet);

-			rootCtx.addServletMapping(mapping, Integer.toString(servlet.hashCode()));

+			rootCtx.addServletMappingDecoded(mapping, Integer.toString(servlet.hashCode()));

 		}

 	}