Commit c4e9e6b3 authored by Ricco Førgaard's avatar Ricco Førgaard

Fixed level 7 about publishing.

parent 4afc5c34
package com.nesstar.tutorial; package com.nesstar.tutorial;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull;
import java.io.IOException; import java.io.IOException;
...@@ -32,12 +32,20 @@ public class Level07 { ...@@ -32,12 +32,20 @@ public class Level07 {
/** /**
* Publish the study to the server. * Publish the study to the server.
*
* You will find the necessary data in src/test/resources.
*
* Please note: You MUST change the ID of the study in the DDI file.
* Otherwise everybody will be publishing the same study to the same server.
* You are also encouraged to change the name of the study. That makes it
* easier to find it in WebView.
*
* You can see the result in in a browser by navigating to http://nina.nsd.uib.no/webview
*/ */
@Test @Test
public void publishDataAndMetadata() throws NotAuthorizedException, IOException { public void publishDataAndMetadata() throws NotAuthorizedException, IOException {
Study study = null; Study study = null;
assertEquals("foo", study.getLabel()); assertNotNull(study);
} }
} }
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