hsm.setGoOn(false);
}
public final void testHiveDriver() throws Exception {
// create a user
HWIAuth user1 = new HWIAuth();
user1.setUser("hadoop");
user1.setGroups(new String[] { "hadoop" });
// create two sessions for user
HWISessionItem user1_item1 = hsm.createSession(user1, "session1");
HWISessionItem user1_item2 = hsm.createSession(user1, "session2");
// create second user
HWIAuth user2 = new HWIAuth();
user2.setUser("user2");
user2.setGroups(new String[] { "user2" });
// create one session for this user
HWISessionItem user2_item1 = hsm.createSession(user2, "session1");
// testing storage of sessions in HWISessionManager