Skip to content

Commit 118cef4

Browse files
committed
. t Change test to show paths we expect to be found
1 parent 08d7fb9 commit 118cef4

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed
Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
package org.approvaltests.reporters;
22

3-
import org.approvaltests.Approvals;
43
import org.junit.jupiter.api.Test;
54
import org.lambda.query.Queryable;
65

6+
import static org.junit.jupiter.api.Assertions.assertNotEquals;
7+
78
class IntelliJMacResolverTest
89
{
910
@Test
1011
void testFindIt()
1112
{
12-
Queryable<String> q = new Queryable<>(String.class);
13-
IntelliJMacResolver.getDiffInfo("user/lars", f -> {
14-
q.add(f);
15-
return false;
16-
});
17-
Approvals.verifyAll("Files", q);
13+
String userHome = "Users/lars";
14+
Queryable<String> validPaths = Queryable.as(
15+
"/Applications/IntelliJ IDEA.app/Contents/MacOS/idea",
16+
"Users/lars/Applications/IntelliJ IDEA Ultimate.app/Contents/MacOS/idea",
17+
"Users/lars/Applications/IntelliJ IDEA Community.app/Contents/MacOS/idea",
18+
"Users/lars/Applications/IntelliJ IDEA Community Edition.app/Contents/MacOS/idea");
19+
for (String path : validPaths)
20+
{
21+
DiffInfo diffInfo = IntelliJMacResolver.getDiffInfo(userHome, f -> f.equals(path));
22+
assertNotEquals("", diffInfo.diffProgram);
23+
}
1824
}
1925
}

0 commit comments

Comments
 (0)