com.github.writethemfirst.approvals.reporters.windows.Windows Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of approvals-java Show documentation
Show all versions of approvals-java Show documentation
Approval testing library for Java. Alleviates the burden of hand-writing assertions.
/*
* 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.windows;
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;
/**
* Defines `Reporter`s which work on Windows only.
*/
public interface Windows {
Reporter IDEA = new CommandReporter(new Command(
"%programFiles%\\JetBrains",
"idea64.exe"),
"diff %received% %approved%");
/**
* Download KDiff3 from https://sourceforge.net/projects/kdiff3/files/
*/
Reporter KDIFF = new CommandReporter(new Command(
"%programFiles%\\KDiff3",
"kdiff3.exe"),
"%received% %approved% -o %approved%");
/**
* Download GVim from http://www.vim.org/download.php
*/
Reporter GVIM = new CommandReporter(new Command(
"%programFiles%\\Vim",
"gvim.exe"),
"-d %approved% %received% %received%");
/**
* Download TortoiseSVN from https://tortoisesvn.net/downloads.html
*/
Reporter TORTOISE_SVN = new CommandReporter(new Command(
"%programFiles%\\TortoiseSVN",
"TortoiseMerge.exe"));
Reporter BEYOND_COMPARE_3 = new CommandReporter(new Command(
"%programFiles%\\Beyond Compare 3",
"BCompare.exe"));
Reporter BEYOND_COMPARE_4 = new CommandReporter(new Command(
"%programFiles%\\Beyond Compare 3",
"BCompare.exe"));
Reporter WINMERGE = new CommandReporter(new Command(
"%programFiles%\\WinMerge",
"WinMergeU.exe"));
Reporter ARAXIS = new CommandReporter(new Command(
"%programFiles%\\Araxis",
"Compare.exe"));
Reporter CODE_COMPARE = new CommandReporter(new Command(
"%programFiles%\\Devart",
"CodeCompare.exe"),
"%received% %approved%");
Reporter DEFAULT = new FirstWorkingReporter(
KDIFF,
IDEA,
TORTOISE_SVN,
BEYOND_COMPARE_4,
BEYOND_COMPARE_3,
WINMERGE,
ARAXIS,
CODE_COMPARE,
GVIM,
new JUnit5Reporter(),
new ThrowsReporter());
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy