<commit_before>package gov.nih.nci.cabig.caaers.web.admin;

import gov.nih.nci.cabig.caaers.AbstractTestCase;
import gov.nih.nci.cabig.caaers.CaaersContextLoader;
import gov.nih.nci.cabig.ctms.suite.authorization.ProvisioningSessionFactory;
import gov.nih.nci.cabig.ctms.suite.authorization.SuiteRole;

import java.util.List;

/**
 * 
 * @author Monish
 *
 */
public class UserCommandTest extends AbstractTestCase {

	private UserCommand command;

    @Override
    protected void setUp() throws Exception {
        CaaersContextLoader.getApplicationContext().getBean("Messages");  //initialize messages
        super.setUp();
        switchToSuperUser();
        command = new UserCommand();
    }

    public void testGetAllGlobalRoles(){
		
		List<SuiteRole> globalRoles = command.getAllGlobalRoles();
<commit_msg>Fixing tests<commit_after>package gov.nih.nci.cabig.caaers.web.admin;

import gov.nih.nci.cabig.caaers.AbstractTestCase;
import gov.nih.nci.cabig.caaers.CaaersContextLoader;
import gov.nih.nci.cabig.caaers.tools.Messages;
import gov.nih.nci.cabig.ctms.suite.authorization.ProvisioningSessionFactory;
import gov.nih.nci.cabig.ctms.suite.authorization.SuiteRole;

import java.util.List;

/**
 * 
 * @author Monish
 *
 */
public class UserCommandTest extends AbstractTestCase {

	private UserCommand command;

    @Override
    protected void setUp() throws Exception {
        CaaersContextLoader.getApplicationContext().getBean(Messages.class);  //initialize messages
        super.setUp();
        switchToSuperUser();
        command = new UserCommand();
    }

    public void testGetAllGlobalRoles(){
		
		List<SuiteRole> globalRoles = command.getAllGlobalRoles();

{'fraction_non_alphanumeric': 0.10919881305637982, 'fraction_numerical': 0.0, 'mean_word_length': 4.155963302752293, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4770036', 'n_tokens_mistral': 563, 'n_tokens_neox': 546, 'n_words': 87}