Commit 4afc5c34 authored by Ricco Førgaard's avatar Ricco Førgaard

Fixed final test in Level 1.

parent c8fd4ad8
...@@ -2,10 +2,9 @@ package com.nesstar.tutorial; ...@@ -2,10 +2,9 @@ package com.nesstar.tutorial;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import java.util.Locale;
import org.junit.Test; import org.junit.Test;
import com.nesstar.api.NesstarDB;
import com.nesstar.api.Server; import com.nesstar.api.Server;
/** /**
...@@ -14,6 +13,9 @@ import com.nesstar.api.Server; ...@@ -14,6 +13,9 @@ import com.nesstar.api.Server;
* *
* This tutorial will teach you to connect to a Nesstar Server. * This tutorial will teach you to connect to a Nesstar Server.
* *
* Everything goes through the NesstarDB which is obtained from
* its factory.
*
* To connect to the server you need the following info: * To connect to the server you need the following info:
* - URI: http://nina.nsd.uib.no * - URI: http://nina.nsd.uib.no
* - Username: eddiTUT * - Username: eddiTUT
...@@ -31,13 +33,12 @@ public class Level01 { ...@@ -31,13 +33,12 @@ public class Level01 {
/** /**
* Set the preferred language to English. * Set the preferred language to English.
* You need to use the NesstarDB.
*/ */
@Test @Test
public void setPreferredLanguage() { public void setPreferredLanguage() {
Server server = null; NesstarDB db = null;
Locale primaryLanguage = null;
assertEquals(db.getPreferredLanguages()[0].getLanguage(), "en");
assertEquals(primaryLanguage.getLanguage(), "en");
} }
} }
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