File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
approvaltests-tests/src/test/java/org/approvaltests/reporters
approvaltests/src/main/java/org/approvaltests/reporters Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ void testFindItOnLinux()
3535 "/home/lars/.local/share/JetBrains/Toolbox/apps/intellij-idea-community-edition/bin/idea.sh" );
3636 verifyPaths (IntelliJToolboxResolver ::getDiffInfoLinux , "/home/lars" , validPaths );
3737 }
38- // "C:\Users\larse\AppData\Local\Programs\IntelliJ IDEA Ultimate\bin\idea64.exe"
3938 @ Test
4039 void testFindItOnWindows ()
4140 {
Original file line number Diff line number Diff line change 1010
1111public class DiffInfo
1212{
13+ private static final String [] WINDOWS_PROGRAM_FILES = loadProgramFilesPaths ();
1314 public String diffProgram ;
1415 public String parameters ;
1516 public List <String > fileExtensions ;
@@ -59,7 +60,10 @@ public boolean isEmpty()
5960 {
6061 return "" .equals (diffProgram );
6162 }
62- public static String [] getProgramFilesPaths ()
63+ public static String [] getProgramFilesPaths (){
64+ return WINDOWS_PROGRAM_FILES ;
65+ }
66+ public static String [] loadProgramFilesPaths ()
6367 {
6468 List <String > paths = new ArrayList <>();
6569 addIfNotNull ("ProgramFiles(x86)" , paths );
You can’t perform that action at this time.
0 commit comments