<commit_before>package com.github.bogdanlivadariu.reporting.junit.builder;

import static org.junit.Assert.assertEquals;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBException;

import org.junit.Test;

/**
 * Unit test for simple App.
 */
public class JUnitReportBuilderTest {

    @Test(expected = NullPointerException.class)
    public void npeTest() throws IOException, JAXBException {
        List<String> xmlReports = null;
        new JUnitReportBuilder(xmlReports, "out");
    }

    @Test
    public void processedReportsTest() throws FileNotFoundException, JAXBException {
        List<String> xmlReports = new ArrayList<>();
        String report = this.getClass().getClassLoader().getResource("valid-report-1.xml").getPath();
        xmlReports.add(report);
        JUnitReportBuilder builder = new JUnitReportBuilder(xmlReports, "out");
        assertEquals("reports count is not right", 1, builder.getProcessedTestSuites().size());
        xmlReports.clear();
        builder = new JUnitReportBuilder(xmlReports, "out");
        assertEquals("reports count is not right", 0, builder.getProcessedTestSuites().size());
    }
}<commit_msg>disable test to test the codecov integration with gitter<commit_after>package com.github.bogdanlivadariu.reporting.junit.builder;

import static org.junit.Assert.assertEquals;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.JAXBException;

import org.junit.Test;

/**
 * Unit test for simple App.
 */
public class JUnitReportBuilderTest {

    @Test(expected = NullPointerException.class)
    public void npeTest() throws IOException, JAXBException {
        List<String> xmlReports = null;
        new JUnitReportBuilder(xmlReports, "out");
    }

    //@Test
    public void processedReportsTest() throws FileNotFoundException, JAXBException {
        List<String> xmlReports = new ArrayList<>();
        String report = this.getClass().getClassLoader().getResource("valid-report-1.xml").getPath();
        xmlReports.add(report);
        JUnitReportBuilder builder = new JUnitReportBuilder(xmlReports, "out");
        assertEquals("reports count is not right", 1, builder.getProcessedTestSuites().size());
        xmlReports.clear();
        builder = new JUnitReportBuilder(xmlReports, "out");
        assertEquals("reports count is not right", 0, builder.getProcessedTestSuites().size());
    }
}
{'fraction_non_alphanumeric': 0.11246559182068423, 'fraction_numerical': 0.0023594180102241447, 'mean_word_length': 4.118712273641851, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, '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': '4270113', 'n_tokens_mistral': 720, 'n_tokens_neox': 712, 'n_words': 164}