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

Extended descriptions of tests a little.

parent d16ffc3b
target/ target/
.classpath .classpath
.project .project
.settings
...@@ -34,12 +34,21 @@ import com.nesstar.api.search.SearchResultItem; ...@@ -34,12 +34,21 @@ import com.nesstar.api.search.SearchResultItem;
* You need to connect to the server as you learned * You need to connect to the server as you learned
* on Level 1. * on Level 1.
* *
* Also, this tutorial is in English. If your environment uses
* another language than that you need to change the
* language to English. This can be done in two ways:
* - Use the technique you learned on Level 1 to set the preferred
* language on a server.
* - Call Locale.setDefault(Locale.ENGLISH)
*
*/ */
public class Level02 { public class Level02 {
private Server server; private Server server;
/** /**
* Here you can connect to the server once and for all. * Here you can connect to the server once and for all.
* Remember to set the language to English here as well if
* you need to.
*/ */
@Before @Before
public void connectToServer() { public void connectToServer() {
...@@ -60,8 +69,8 @@ public class Level02 { ...@@ -60,8 +69,8 @@ public class Level02 {
} }
/** /**
* Now search for the term "<term that appears in one study and 1 or more other objects>". * Now search for the term "vegetable" again.
* Tell the search query to return Studies only. * This time, tell the search query to return Studies only.
* *
*/ */
@Test @Test
...@@ -75,10 +84,9 @@ public class Level02 { ...@@ -75,10 +84,9 @@ public class Level02 {
} }
/** /**
* If your search returns many hits, you can tell the * If your search returns many hits, you can tell the search query to
* search query to limit the number of results. Try * limit the number of results. Try searching for the term "health" and
* searching for the term "health" and * limit the number of results to 5 hits.
* limit the results to 5 hits.
*/ */
@Test @Test
public void limitNumberOfSearchResults() { public void limitNumberOfSearchResults() {
...@@ -89,9 +97,9 @@ public class Level02 { ...@@ -89,9 +97,9 @@ public class Level02 {
} }
/** /**
* This time you need to do a more complex search. The term * This time you need to do a more complex search. The term to search for
* to search for is "medicine" but you must use the exclude * is "medicine" but you must use the exclude method to narrow your search
* method to narrow your search down to 1 result. * down to 1 result.
* *
* Tip: You can call exclude more than one time. * Tip: You can call exclude more than one time.
*/ */
...@@ -104,10 +112,10 @@ public class Level02 { ...@@ -104,10 +112,10 @@ public class Level02 {
} }
/** /**
* Now you must find all studies that are about the * Now you must find all studies that are about the topic "health".
* topic "health".
* *
* Tip: use the DDI. * The search query can be limited to certain parts of the DDI. Limit
* this search to the element "topcClas" (2.2.1.2).
*/ */
@Test @Test
public void searchInSpecificDDIelements() { public void searchInSpecificDDIelements() {
...@@ -121,9 +129,8 @@ public class Level02 { ...@@ -121,9 +129,8 @@ public class Level02 {
} }
/** /**
* Finally a challenge. Using the knowlede from the previous * Finally, sing the knowledge from the previous lessons, you must find
* lessons, you must find 4 variables that have something to * 4 variables that have something to do with "school".
* do with "school".
*/ */
@Test @Test
public void findOnlyVariables() { public void findOnlyVariables() {
......
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