private APISession login(LoginAPI loginAPI) throws LoginException { return loginAPI.login(TestEngineImpl.TECHNICAL_USER_NAME, TestEngineImpl.TECHNICAL_USER_PASSWORD); }
/** * Connects a user, identified by his (her) username and password, in order to use API methods of a tenant. * * @param username * the user name * @param password * the password * @throws LoginException * occurs when an exception is thrown during the login (userName does not exist, or couple (userName, password) is incorrect) * @since 7.2 */ public void login(String username, String password) throws LoginException { session = getLoginAPI(LoginAPI.class).login(username, password); }
/** * Connects a user, identified by his (her) username and password, in order to use API methods of a tenant. * * @param username * the user name * @param password * the password * @throws LoginException * occurs when an exception is thrown during the login (userName does not exist, or couple (userName, password) is incorrect) * @since 7.2 */ public void login(String username, String password) throws LoginException { session = getLoginAPI(LoginAPI.class).login(username, password); }
public void loginOnDefaultTenantWithDefaultTechnicalUser() throws BonitaException { final LoginAPI loginAPI = getLoginAPI(); setSession(loginAPI.login(TestEngineImpl.TECHNICAL_USER_NAME, TestEngineImpl.TECHNICAL_USER_NAME)); setAPIs(); }