<commit_before>/*
 * Copyright (C) 2015 Information Management Services, Inc.
 */
package org.naaccr.xml;

import org.junit.Assert;
import org.junit.Test;

public class NaaccrErrorUtilsTest {

    @Test
    public void testGetValidationError() {
        Assert.assertEquals("unknown NAACCR ID: ${0}", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID));
        Assert.assertEquals("unknown NAACCR ID: ${0}", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, (String[])null));
        Assert.assertEquals("unknown NAACCR ID: {blank}", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, (String)null));
        Assert.assertEquals("unknown NAACCR ID: ", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, ""));
        Assert.assertEquals("unknown NAACCR ID: xyz", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, "xyz"));
    }
    
}<commit_msg>Fixed compilation warning.<commit_after>/*
 * Copyright (C) 2015 Information Management Services, Inc.
 */
package org.naaccr.xml;

import org.junit.Assert;
import org.junit.Test;

public class NaaccrErrorUtilsTest {

    @Test
    public void testGetValidationError() {
        Assert.assertEquals("unknown NAACCR ID: ${0}", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID));
        Assert.assertEquals("unknown NAACCR ID: {blank}", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, (String)null));
        Assert.assertEquals("unknown NAACCR ID: ", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, ""));
        Assert.assertEquals("unknown NAACCR ID: xyz", NaaccrErrorUtils.getValidationError(NaaccrErrorUtils.CODE_BAD_NAACCR_ID, "xyz"));
    }
    
}
{'fraction_non_alphanumeric': 0.11260504201680673, 'fraction_numerical': 0.0061624649859943975, 'mean_word_length': 5.639405204460966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5709052', 'n_tokens_mistral': 573, 'n_tokens_neox': 557, 'n_words': 92}