Skip to content

Commit

Permalink
Removes warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Schnicke <frank.schnicke@iese.fraunhofer.de>
  • Loading branch information
FrankSchnicke committed Apr 3, 2023
1 parent 80b5759 commit dce30af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;

import org.apache.http.conn.ssl.DefaultHostnameVerifier;
import org.glassfish.jersey.client.JerseyClientBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public void fileUploadedCorrectly() throws IOException {

}

@SuppressWarnings("deprecation")
private CloseableHttpResponse uploadDummyFileToSubmodelElement(String submodelElementIdShort) throws IOException {
CloseableHttpClient client = HttpClients.createDefault();

Expand All @@ -140,6 +141,7 @@ private CloseableHttpResponse uploadDummyFileToSubmodelElement(String submodelEl
return client.execute(uploadFile);
}

@SuppressWarnings("deprecation")
private CloseableHttpResponse uploadDummyAAS()
throws FileNotFoundException, IOException, UnsupportedEncodingException, ClientProtocolException {
File file = ResourceUtils.getFile("src/test/resources/aas/dummyAAS.json");
Expand All @@ -154,6 +156,7 @@ private CloseableHttpResponse uploadDummyAAS()
return client.execute(put);
}

@SuppressWarnings("deprecation")
private CloseableHttpResponse uploadDummySubmodel()
throws FileNotFoundException, IOException, UnsupportedEncodingException, ClientProtocolException {
File file = ResourceUtils.getFile("src/test/resources/aas/dummySubmodel.json");
Expand Down

0 comments on commit dce30af

Please sign in to comment.