Search in sources :

Example 6 with SessionInfo

use of org.apache.zeppelin.common.SessionInfo in project zeppelin by apache.

the class ZeppelinClientIntegrationTest method testSession.

@Test
public void testSession() throws Exception {
    SessionInfo sessionInfo = zeppelinClient.getSession("invalid_session");
    assertNull(sessionInfo);
    try {
        zeppelinClient.stopSession("invalid_session");
        fail("Should fail to stop session after it is stopped");
    } catch (Exception e) {
        e.printStackTrace();
        assertTrue(e.getMessage().contains("No such session"));
    }
}
Also used : SessionInfo(org.apache.zeppelin.common.SessionInfo) Test(org.junit.Test)

Aggregations

SessionInfo (org.apache.zeppelin.common.SessionInfo)6 IOException (java.io.IOException)2 ManagedInterpreterGroup (org.apache.zeppelin.interpreter.ManagedInterpreterGroup)2 ArrayList (java.util.ArrayList)1 POST (javax.ws.rs.POST)1 GetRequest (kong.unirest.GetRequest)1 JsonNode (kong.unirest.JsonNode)1 JSONArray (kong.unirest.json.JSONArray)1 RemoteInterpreterProcess (org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess)1 Test (org.junit.Test)1