Commit 8556c0e0 authored by Ricco Førgaard's avatar Ricco Førgaard

Added Level 3.

Level 3 is about Banks.
parent 2625ac8b
package com.nesstar.tutorial;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import com.nesstar.api.Server;
import com.nesstar.api.Study;
import com.nesstar.api.User;
import com.nesstar.api.cube.Cube;
/**
* Nesstar API Tutorial Level 3
* ============================
*
* When you already know what to get you go to the Bank.
*
*/
public class Level03 {
private Server server;
@Before
public void connectToServer() {
server = null;
}
/**
* Take a Bank object that knows about studies and ask
* it to get the study with the ID "foobarbaz"
*/
@Test
public void getAStudyFromTheBank() {
Study study = null;
assertEquals("the right label", study.getLabel());
}
/**
* Now, get the cube with the ID "cubeid".
*/
@Test
public void getACube() {
Cube cube = null;
assertEquals("the right cube", cube.getLabel());
}
/**
* You can also get users from the bank. Find the
* one with the username "leia".
*/
@Test
public void getUser() {
User user = null;
assertEquals("Leia", user.getName());
}
}
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