<commit_before>package org.unitils.core.util;

import java.lang.reflect.Method;

import org.junit.Assert;
import org.junit.Test;
import org.unitils.util.ReflectionUtils;


/**
 * Test <a href="https://jira.smals.be/i#browse/STVE-183">STVE-183</a>.
 * 
 * @author <NAME>
 * 
 * @since 
 * 
 */
public class ReflectionUtilsTest {

    @Test
    public void testString() throws NoSuchMethodException, SecurityException {
        Assert.assertNotNull(ReflectionUtils.getGetter(TestClass1.class, "str", false));
        Method setter = TestClass1.class.getMethod("setStr", String.class);
        Assert.assertNotNull(ReflectionUtils.getGetter(setter, false));
        Assert.assertNotNull(ReflectionUtils.getSetter(TestClass1.class, "str", false));
    }
    
    @Test
    public void testIntegerPrimitive() throws Exception {
        Assert.assertNotNull(ReflectionUtils.getGetter(TestClass1.class, "i", false));<commit_msg>I have changed the jira link.<commit_after>package org.unitils.core.util;

import java.lang.reflect.Method;

import org.junit.Assert;
import org.junit.Test;
import org.unitils.util.ReflectionUtils;


/**
 * Test <a href="https://unitils.atlassian.net/browse/UNI-263">STVE-183</a>.
 * 
 * @author <NAME>
 * 
 * @since 
 * 
 */
public class ReflectionUtilsTest {

    @Test
    public void testString() throws NoSuchMethodException, SecurityException {
        Assert.assertNotNull(ReflectionUtils.getGetter(TestClass1.class, "str", false));
        Method setter = TestClass1.class.getMethod("setStr", String.class);
        Assert.assertNotNull(ReflectionUtils.getGetter(setter, false));
        Assert.assertNotNull(ReflectionUtils.getSetter(TestClass1.class, "str", false));
    }
    
    @Test
    public void testIntegerPrimitive() throws Exception {
        Assert.assertNotNull(ReflectionUtils.getGetter(TestClass1.class, "i", false));
{'fraction_non_alphanumeric': 0.1288244766505636, 'fraction_numerical': 0.010735373054213635, 'mean_word_length': 4.1068493150684935, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '5529554', 'n_tokens_mistral': 578, 'n_tokens_neox': 561, 'n_words': 98}