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

Extended descriptions of tests a little.

parent d16ffc3b
target/
.classpath
.project
.settings
......@@ -34,12 +34,21 @@ import com.nesstar.api.search.SearchResultItem;
* You need to connect to the server as you learned
* 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 {
private Server server;
/**
* 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
public void connectToServer() {
......@@ -60,8 +69,8 @@ public class Level02 {
}
/**
* Now search for the term "<term that appears in one study and 1 or more other objects>".
* Tell the search query to return Studies only.
* Now search for the term "vegetable" again.
* This time, tell the search query to return Studies only.
*
*/
@Test
......@@ -75,10 +84,9 @@ public class Level02 {
}
/**
* If your search returns many hits, you can tell the
* search query to limit the number of results. Try
* searching for the term "health" and
* limit the results to 5 hits.
* If your search returns many hits, you can tell the search query to
* limit the number of results. Try searching for the term "health" and
* limit the number of results to 5 hits.
*/
@Test
public void limitNumberOfSearchResults() {
......@@ -89,9 +97,9 @@ public class Level02 {
}
/**
* This time you need to do a more complex search. The term
* to search for is "medicine" but you must use the exclude
* method to narrow your search down to 1 result.
* This time you need to do a more complex search. The term to search for
* is "medicine" but you must use the exclude method to narrow your search
* down to 1 result.
*
* Tip: You can call exclude more than one time.
*/
......@@ -104,10 +112,10 @@ public class Level02 {
}
/**
* Now you must find all studies that are about the
* topic "health".
* Now you must find all studies that are about the 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
public void searchInSpecificDDIelements() {
......@@ -121,9 +129,8 @@ public class Level02 {
}
/**
* Finally a challenge. Using the knowlede from the previous
* lessons, you must find 4 variables that have something to
* do with "school".
* Finally, sing the knowledge from the previous lessons, you must find
* 4 variables that have something to do with "school".
*/
@Test
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