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"));
}
}
Aggregations