File tree Expand file tree Collapse file tree 4 files changed +38
-1
lines changed
plugin-gradle/src/test/java/com/diffplug/gradle/spotless
main/java/com/diffplug/spotless/tag
test/java/com/diffplug/spotless/protobuf Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ apply plugin: 'com.adarshr.test-logger'
3
3
def special = [
4
4
' Npm' ,
5
5
' Black' ,
6
- ' Clang'
6
+ ' Clang' ,
7
+ ' Buf'
7
8
]
8
9
9
10
boolean isCiServer = System . getenv(). containsKey(" CI" )
Original file line number Diff line number Diff line change 17
17
18
18
import java .io .IOException ;
19
19
20
+ import com .diffplug .spotless .tag .BufTest ;
21
+
20
22
import org .junit .jupiter .api .Test ;
21
23
24
+ @ BufTest
22
25
class BufIntegrationTest extends GradleIntegrationHarness {
23
26
@ Test
24
27
void buf () throws IOException {
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2022 DiffPlug
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ package com .diffplug .spotless .tag ;
17
+
18
+ import org .junit .jupiter .api .Tag ;
19
+
20
+ import java .lang .annotation .Retention ;
21
+ import java .lang .annotation .Target ;
22
+
23
+ import static java .lang .annotation .ElementType .METHOD ;
24
+ import static java .lang .annotation .ElementType .TYPE ;
25
+ import static java .lang .annotation .RetentionPolicy .RUNTIME ;
26
+
27
+ @ Target ({TYPE , METHOD })
28
+ @ Retention (RUNTIME )
29
+ @ Tag ("Buf" )
30
+ public @interface BufTest {}
Original file line number Diff line number Diff line change 17
17
18
18
import java .io .File ;
19
19
20
+ import com .diffplug .spotless .tag .BufTest ;
21
+
20
22
import org .junit .jupiter .api .Test ;
21
23
22
24
import com .diffplug .spotless .StepHarnessWithFile ;
23
25
26
+ @ BufTest
24
27
class BufStepTest {
25
28
@ Test
26
29
void test () throws Exception {
You can’t perform that action at this time.
0 commit comments