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