@Test public void testAddRoleWithInvalidData () { RolesImpl roles = new RolesImpl (mRunTime); try { roles.addRole ("", DOMAIN_NAME, USER_NAME, PASSWORD); fail ("no exception"); } catch (ExecutionException ee) { } try { roles.addRole (ROLE_NAME, DOMAIN_NAME, "", PASSWORD); fail ("no exception"); } catch (ExecutionException ee) { } }
@Override public void addRole (String role, String domain, String username, String password) { checkAndAddRole (SYMBOL_NAME + "." + role + ".", role, domain, username, password); }
RolesImpl implements Roles { @Override public void addRole (String role, String domain, String username, String password) { checkAndAddRole (SYMBOL_NAME + "." + role + ".", role, domain, username, password); } }
RolesImpl implements Roles { @Override public void addRole (String role, String domain, String username, String password) { checkAndAddRole (SYMBOL_NAME + "." + role + ".", role, domain, username, password); } RolesImpl(RunTime runTime); }
RolesImpl implements Roles { @Override public void addRole (String role, String domain, String username, String password) { checkAndAddRole (SYMBOL_NAME + "." + role + ".", role, domain, username, password); } RolesImpl(RunTime runTime); @Override void addRole(String role, String domain, String username, String password); @Override void addRole(String system, String role, String domain, String username, String password); @Override String getDomain(String role); @Override String getDomain(String system, String role); @Override String getUsername(String role); @Override String getUsername(String system, String role); @Override String getPassword(String role); @Override String getPassword(String system, String role); }
RolesImpl implements Roles { @Override public void addRole (String role, String domain, String username, String password) { checkAndAddRole (SYMBOL_NAME + "." + role + ".", role, domain, username, password); } RolesImpl(RunTime runTime); @Override void addRole(String role, String domain, String username, String password); @Override void addRole(String system, String role, String domain, String username, String password); @Override String getDomain(String role); @Override String getDomain(String system, String role); @Override String getUsername(String role); @Override String getUsername(String system, String role); @Override String getPassword(String role); @Override String getPassword(String system, String role);  }