Commit 661d57f7 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Added test module with jar generated from documentation

parent bf83e2b3
......@@ -10,3 +10,4 @@
/deleteme/target/
/drip-api/nbproject/
/drip-tests/nbproject/
/drip-tests/target/
\ No newline at end of file
......@@ -8,6 +8,9 @@
</parent>
<artifactId>drip-tests</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>junit</groupId>
......@@ -37,7 +40,24 @@
<type>jar</type>
</dependency>
<dependency>
<groupId>nl.uva.sne.drip</groupId>
<artifactId>drip-api-json-client</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/../docs/apidocs/drip-api-json-client.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
</plugins>
</build>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
......
......@@ -24,16 +24,14 @@ import org.junit.BeforeClass;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.core.Response;
import nl.uva.sne.drip.data.v1.external.CloudCredentials;
import org.junit.Test;
/**
*
* @author S. Koulouzis.
*/
public class CloudCredentialsController {
public CloudCredentialsController() {
}
public class TestCloudCredentialsController {
@BeforeClass
public static void setUpClass() {
......@@ -51,12 +49,13 @@ public class CloudCredentialsController {
public void tearDown() {
}
// TODO add test methods here.
// The methods must be annotated with annotation @Test. For example:
//
// @Test
// public void hello() {}
@Test
public void hello() {
System.err.println("");
CloudCredentials cc = new CloudCredentials();
cc.setAccessKeyId("");
}
private void post(String lcmId, String metadataId, String storageId, int expected) {
// String payload = "{\"local-storage-id\" : \"" + storageId + "\"}";
......@@ -68,5 +67,4 @@ public class CloudCredentialsController {
// assertEquals(expected, resp.getStatus());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment