<commit_before>/*
 * Copyright 2006-2008 The Kuali Foundation
 * 
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.opensource.org/licenses/ecl1.php
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.kra.budget.personnel;

import java.util.*;

import org.hamcrest.core.IsNull;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.kuali.kra.KraTestBase;
import org.kuali.kra.KcraNoDataTestBase;
import org.kuali.kra.bo.*;
import org.kuali.kra.budget.core.*;
import org.kuali.kra.budget.document.*;
import org.kuali.kra.proposaldevelopment.document.*;
import org.kuali.kra.infrastructure.KraServiceLocator;
import org.kuali.kra.infrastructure.TestUtilities;
import org.kuali.kra.service.*;
import org.kuali.kra.budget.*;
import org.kuali.rice.kns.UserSession;
import org.kuali.rice.kns.service.BusinessObjectService;
import org.kuali.rice.kns.service.DocumentService;
import org.kuali.rice.kns.service.KNSServiceLocator;
import org.kuali.rice.kns.util.GlobalVariables;
import org.kuali.rice.test.data.PerSuiteUnitTestData;
import org.kuali.rice.test.data.UnitTestData;
import org.kuali.rice.test.data.UnitTestFile;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

@PerSuiteUnitTestData(
        @UnitTestData(
            sqlFiles = {
                @UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_PERSON_DATA.sql", delimiter = ";")
                //@UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_PERIOD_TYPE.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_CATEGORY_TYPE.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_CATEGORY.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_CATEGORY_MAPPING.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_CATEGORY_MAPS.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_budget_details_cam_amts.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_budget_line_item_for_total.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_PERIOD_TYPE.sql", delimiter = ";")
                //,@UnitTestFile(filename = "classpath:sql/dml/load_budget_status.sql", delimiter = ";")
            }
            )
            )

public class BudgetPersonServiceImplTest extends KcraNoDataTestBase{
    
    private BudgetPersonService budgetPersonService;
    private BudgetPersonServiceImpl budgetPersonService2;
    //private BudgetService budgetService;
    

    @Before
    public void setUp() throws Exception {
        super.setUp();
        GlobalVariables.setUserSession(new UserSession("quickstart"));
        budgetPersonService = KraServiceLocator.getService(BudgetPersonService.class);
        budgetPersonService2 = (BudgetPersonServiceImpl) KraServiceLocator.getService(BudgetPersonService.class);
        //budgetService = KraServiceLocator.getService(BudgetService.class);
        
    }

    @After
    public void tearDown() throws Exception {
        GlobalVariables.setUserSession(null);
        budgetPersonService = null;
        super.tearDown();
    }
    
    @Test
    public void testCheckCorrectClass(){<commit_msg>KRACOEUS-3244 - fixing the file name - *nix system are case sensitive, windows is not :-)<commit_after>/*
 * Copyright 2006-2008 The Kuali Foundation
 * 
 * Licensed under the Educational Community License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.opensource.org/licenses/ecl1.php
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.kuali.kra.budget.personnel;

import java.util.*;

import org.hamcrest.core.IsNull;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.kuali.kra.KraTestBase;
import org.kuali.kra.KcraNoDataTestBase;
import org.kuali.kra.bo.*;
import org.kuali.kra.budget.core.*;
import org.kuali.kra.budget.document.*;
import org.kuali.kra.proposaldevelopment.document.*;
import org.kuali.kra.infrastructure.KraServiceLocator;
import org.kuali.kra.infrastructure.TestUtilities;
import org.kuali.kra.service.*;
import org.kuali.kra.budget.*;
import org.kuali.rice.kns.UserSession;
import org.kuali.rice.kns.service.BusinessObjectService;
import org.kuali.rice.kns.service.DocumentService;
import org.kuali.rice.kns.service.KNSServiceLocator;
import org.kuali.rice.kns.util.GlobalVariables;
import org.kuali.rice.test.data.PerSuiteUnitTestData;
import org.kuali.rice.test.data.UnitTestData;
import org.kuali.rice.test.data.UnitTestFile;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

@PerSuiteUnitTestData(
        @UnitTestData(
                sqlFiles = {
                        @UnitTestFile(filename = "classpath:sql/dml/load_BUDGET_PERSON_DATA.SQL", delimiter = ";")
                    }))
public class BudgetPersonServiceImplTest extends KcraNoDataTestBase {
    
    private BudgetPersonService budgetPersonService;
    private BudgetPersonServiceImpl budgetPersonService2;
    //private BudgetService budgetService;
    

    @Before
    public void setUp() throws Exception {
        super.setUp();
        GlobalVariables.setUserSession(new UserSession("quickstart"));
        budgetPersonService = KraServiceLocator.getService(BudgetPersonService.class);
        budgetPersonService2 = (BudgetPersonServiceImpl) KraServiceLocator.getService(BudgetPersonService.class);
        //budgetService = KraServiceLocator.getService(BudgetService.class);
        
    }

    @After
    public void tearDown() throws Exception {
        GlobalVariables.setUserSession(null);
        budgetPersonService = null;
        super.tearDown();
    }
    
    @Test
    public void testCheckCorrectClass(){
{'fraction_non_alphanumeric': 0.10542658583468875, 'fraction_numerical': 0.004435901227266006, 'mean_word_length': 3.7400140154169588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1091885', 'n_tokens_mistral': 2148, 'n_tokens_neox': 2072, 'n_words': 423}