File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
testlib/src/test/java/com/diffplug/spotless/protobuf Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package com .diffplug .spotless .protobuf ;
17
17
18
- import java .io .File ;
19
-
20
18
import org .junit .jupiter .api .Test ;
21
19
20
+ import com .diffplug .spotless .ResourceHarness ;
22
21
import com .diffplug .spotless .StepHarnessWithFile ;
23
22
import com .diffplug .spotless .tag .BufTest ;
24
23
25
24
@ BufTest
26
- class BufStepTest {
25
+ class BufStepTest extends ResourceHarness {
27
26
@ Test
28
27
void test () throws Exception {
29
- try (StepHarnessWithFile harness = StepHarnessWithFile .forStep (BufStep .withVersion (BufStep .defaultVersion ()).create ())) {
30
- harness .testResource (new File ( "src/main/resources/protobuf/buf/buf.proto" ), "protobuf/buf/buf.proto" , "protobuf/buf/buf.proto.clean" );
28
+ try (StepHarnessWithFile harness = StepHarnessWithFile .forStep (this , BufStep .withVersion (BufStep .defaultVersion ()).create ())) {
29
+ harness .testResource ("protobuf/buf/buf.proto" , "protobuf/buf/buf.proto.clean" );
31
30
}
32
31
}
33
32
}
You can’t perform that action at this time.
0 commit comments