Skip to content
Snippets Groups Projects
Commit 7f17fbe2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test fixed

parent 8e8debc7
No related branches found
No related tags found
1 merge request!44Resolve "semantic zoom"
......@@ -74,7 +74,7 @@ public class ProjectRestImplTest extends RestTestFunctions {
ProjectRestImpl projectRest = createMockProjectRest("testFiles/model/sample.xml");
projectRest.getModelAsModelFile(token.getId(), "sample", "0", "", "", "", "", "");
fail("Exception expected");
} catch (InvalidArgumentException e) {
} catch (QueryException e) {
} catch (Exception e) {
e.printStackTrace();
throw e;
......
......@@ -11,6 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import lcsb.mapviewer.api.RestTestFunctions;
import lcsb.mapviewer.api.users.UserRestImpl;
import lcsb.mapviewer.common.Configuration;
public class UserRestImplTest extends RestTestFunctions {
Logger logger = Logger.getLogger(UserRestImplTest.class);
......@@ -33,7 +34,7 @@ public class UserRestImplTest extends RestTestFunctions {
@Test
public void test() throws Exception {
try {
Object response = userRestImpl.getUser(token.getId(), "", "");
Object response = userRestImpl.getUser(token.getId(), Configuration.ANONYMOUS_LOGIN, "");
assertNotNull(response);
} catch (Exception e) {
e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment