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 1515 */
1616package com .diffplug .spotless .protobuf ;
1717
18- import java .io .File ;
19-
2018import org .junit .jupiter .api .Test ;
2119
20+ import com .diffplug .spotless .ResourceHarness ;
2221import com .diffplug .spotless .StepHarnessWithFile ;
2322import com .diffplug .spotless .tag .BufTest ;
2423
2524@ BufTest
26- class BufStepTest {
25+ class BufStepTest extends ResourceHarness {
2726 @ Test
2827 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" );
3130 }
3231 }
3332}
You can’t perform that action at this time.
0 commit comments