File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
approvaltests-tests/src/test/java/org/approvaltests/reporters Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 11package org .approvaltests .reporters ;
22
3- import org .approvaltests .Approvals ;
43import org .junit .jupiter .api .Test ;
54import org .lambda .query .Queryable ;
65
6+ import static org .junit .jupiter .api .Assertions .assertNotEquals ;
7+
78class 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}
You can’t perform that action at this time.
0 commit comments