<commit_before>package org.jboss.windup.tests.bootstrap;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class DisplayHelpCommandTest extends AbstractBootstrapTest {
    @Test
    public void noArgument() {
        test();
    }

    @Test
    public void longArgument() {
        test("--help");
    }

    @Test
    public void shortArgument() {
        test("-h");
    }

    private void test(String... args) {<commit_msg>Fixed a test failure that occurred intermittently, dependent upon the order of the tests<commit_after>package org.jboss.windup.tests.bootstrap;

import static org.junit.Assert.assertTrue;

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

public class DisplayHelpCommandTest extends AbstractBootstrapTest
{
    @Before
    public void insureHelpCacheIsAvailable()
    {
        bootstrap("--generateCaches");
    }

    @Test
    public void noArgument()
    {
        test();
    }

    @Test
    public void longArgument()
    {
        test("--help");
    }

    @Test
    public void shortArgument()
    {
        test("-h");
    }

    private void test(String... args)
    {
{'fraction_non_alphanumeric': 0.10767872903795234, 'fraction_numerical': 0.0, 'mean_word_length': 2.611464968152866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4233586', 'n_tokens_mistral': 332, 'n_tokens_neox': 323, 'n_words': 82}