All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.writethemfirst.approvals.reporters.linux.Linux Maven / Gradle / Ivy

Go to download

Approval testing library for Java. Alleviates the burden of hand-writing assertions.

There is a newer version: 0.12.0
Show newest version
/*
 * Approvals-Java - Approval testing library for Java. Alleviates the burden of hand-writing assertions.
 * Copyright © 2018 Write Them First!
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see .
 */
package com.github.writethemfirst.approvals.reporters.linux;

import com.github.writethemfirst.approvals.Reporter;
import com.github.writethemfirst.approvals.reporters.FirstWorkingReporter;
import com.github.writethemfirst.approvals.reporters.JUnit5Reporter;
import com.github.writethemfirst.approvals.reporters.ThrowsReporter;
import com.github.writethemfirst.approvals.reporters.windows.Command;
import com.github.writethemfirst.approvals.reporters.windows.CommandReporter;


/**
 * Defines `Reporter`s which work on Linux only.
 */
public interface Linux {

    Reporter IDEA_ULTIMATE = new CommandReporter(new Command(
        "/usr/bin",
        "intellij-idea-ultimate-edition"),
        "diff %received% %approved%");

    Reporter IDEA_COMMUNITY = new CommandReporter(new Command(
        "/usr/bin",
        "idea.sh"),
        "diff %received% %approved%");

    Reporter BEYOND_COMPARE = new CommandReporter(new Command(
        "/usr/bin",
        "bcompare"),
        "%received% %approved%");


    Reporter DEFAULT = new FirstWorkingReporter(
        IDEA_ULTIMATE,
        IDEA_COMMUNITY,
        BEYOND_COMPARE,
        new JUnit5Reporter(),
        new ThrowsReporter());
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy