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

unit test for configuration.miriamTypes

parent c59b00ec
No related branches found
No related tags found
1 merge request!58some refactoring giving additional Rest API functionlaity
package lcsb.mapviewer.api.configuration;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.List;
......@@ -14,6 +15,7 @@ import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import lcsb.mapviewer.api.RestTestFunctions;
import lcsb.mapviewer.model.map.MiriamType;
import lcsb.mapviewer.model.map.reaction.type.StateTransitionReaction;
import lcsb.mapviewer.model.map.species.GenericProtein;
import lcsb.mapviewer.services.view.ConfigurationView;
......@@ -81,7 +83,6 @@ public class ConfigurationRestImplTest extends RestTestFunctions {
e.printStackTrace();
throw e;
}
}
@Test
......@@ -94,7 +95,17 @@ public class ConfigurationRestImplTest extends RestTestFunctions {
e.printStackTrace();
throw e;
}
}
@Test
public void testGetMiriamTypes() throws Exception {
try {
Map<?,?> list = configurationRestImpl.getMiriamTypes(token.getId());
assertNotNull(list.get(MiriamType.PUBMED.name()));
} catch (Exception e) {
e.printStackTrace();
throw e;
}
}
}
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