File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ public void testThrowsMessageContainsFilename() throws Exception {
32
32
SpotlessTaskImpl task = Mockito .mock (SpotlessTaskImpl .class , Mockito .CALLS_REAL_METHODS );
33
33
Mockito .when (task .getLogger ()).thenReturn (Mockito .mock (Logger .class ));
34
34
35
- File projectDir = Paths .get ("unitTests" ,"projectDir" ).toFile ();
35
+ File projectDir = Paths .get ("unitTests" , "projectDir" ).toFile ();
36
36
DirectoryProperty projectDirProperty = Mockito .mock (DirectoryProperty .class , Mockito .RETURNS_DEEP_STUBS );
37
37
Mockito .when (projectDirProperty .get ().getAsFile ()).thenReturn (projectDir );
38
38
39
39
Mockito .when (task .getProjectDir ()).thenReturn (projectDirProperty );
40
40
41
- File input = Paths .get ("unitTests" ,"projectDir" , "someInput" ).toFile ();
41
+ File input = Paths .get ("unitTests" , "projectDir" , "someInput" ).toFile ();
42
42
Formatter formatter = Mockito .mock (Formatter .class );
43
43
44
44
Assertions .assertThatThrownBy (() -> task .processInputFile (null , formatter , input )).hasMessageContaining (input .toString ());
You can’t perform that action at this time.
0 commit comments