<commit_before>package io.bootique.command;

import io.bootique.BQCoreModule;
import io.bootique.BQModuleProvider;
import io.bootique.cli.Cli;
import io.bootique.meta.application.CommandMetadata;
import io.bootique.meta.application.OptionMetadata;
import io.bootique.unit.BQInternalTestFactory;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

import java.util.Arrays;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Stream;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

public class CommandDecoratorIT {

    @Rule
    public BQInternalTestFactory testFactory = new BQInternalTestFactory();

    private ThreadTester threadTester;
    private MainCommand mainCommand;
    private SuccessfulCommand successfulCommand;
    private FailingCommand failingCommand;

    @Before
    public void before() {

        this.threadTester = new ThreadTester();

        // test for previous tests side effects - the previous test must be cleanly shutdown...
        threadTester.assertPoolSize(0);

        this.mainCommand = new MainCommand();
        this.successfulCommand = new SuccessfulCommand();
        this.failingCommand = new FailingCommand();
    }

    @Test
    public void testAlsoRun_Instance() {
<commit_msg>attempt to debug Travis failures<commit_after>package io.bootique.command;

import io.bootique.BQCoreModule;
import io.bootique.BQModuleProvider;
import io.bootique.cli.Cli;
import io.bootique.meta.application.CommandMetadata;
import io.bootique.meta.application.OptionMetadata;
import io.bootique.unit.BQInternalTestFactory;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

import java.util.Arrays;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Stream;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

public class CommandDecoratorIT {

    @Rule
    public BQInternalTestFactory testFactory = new BQInternalTestFactory();

    private ThreadTester threadTester;
    private MainCommand mainCommand;
    private SuccessfulCommand successfulCommand;
    private FailingCommand failingCommand;

    @Before
    public void before() {

        try {
            this.threadTester = new ThreadTester();

            // test for previous tests side effects - the previous test must be cleanly shutdown...
            threadTester.assertPoolSize(0);

            this.mainCommand = new MainCommand();
            this.successfulCommand = new SuccessfulCommand();
            this.failingCommand = new FailingCommand();
        } catch (Throwable th) {
            th.printStackTrace();
            fail("error in before");
        }
    }

    @Test
    public void testAlsoRun_Instance() {

{'fraction_non_alphanumeric': 0.08535844471445929, 'fraction_numerical': 0.0006075334143377885, 'mean_word_length': 3.9149253731343285, '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': '2496892', 'n_tokens_mistral': 919, 'n_tokens_neox': 902, 'n_words': 223}