2020import org .metaborg .core .language .ILanguageImpl ;
2121import org .metaborg .core .project .IProject ;
2222import org .metaborg .core .syntax .ParseException ;
23+ import org .metaborg .spoofax .core .shell .ShellFacet ;
2324import org .metaborg .spoofax .core .syntax .ISpoofaxSyntaxService ;
2425import org .metaborg .spoofax .core .unit .ISpoofaxParseUnit ;
2526import org .metaborg .spoofax .shell .hooks .IResultHook ;
@@ -42,6 +43,7 @@ public class ParseCommandTest {
4243 private IResultHook resultHook ;
4344 @ Mock private IProject project ;
4445 @ Mock private ILanguageImpl lang ;
46+ @ Mock private ShellFacet facet ;
4547
4648 @ Mock private InputResult inputResult ;
4749 @ Mock private ParseResult parseResult ;
@@ -60,9 +62,11 @@ public void setup() throws FileSystemException, ParseException {
6062
6163 when (project .location ()).thenReturn (sourceFile );
6264
63- when (resultFactory .createInputResult (any (), any (), any ())).thenReturn (inputResult );
65+ when (resultFactory .createInputResult (any (), any (), any (), any () )).thenReturn (inputResult );
6466 when (resultFactory .createParseResult (any ())).thenReturn (parseResult );
6567
68+ when (lang .facet (ShellFacet .class )).thenReturn (facet );
69+
6670 parseCommand = new ParseCommand (syntaxService , resultHook , resultFactory , project , lang );
6771 }
6872
0 commit comments