Skip to content

Commit 700114f

Browse files
committed
Add Selfie, and configure it to not use triple quote literals.
1 parent d467545 commit 700114f

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ VER_JGIT=6.7.0.202309050840-r
3232
VER_JUNIT=5.10.2
3333
VER_ASSERTJ=3.26.0
3434
VER_MOCKITO=5.12.0
35+
VER_SELFIE=2.2.0

testlib/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ dependencies {
1313
api "org.junit.jupiter:junit-jupiter:${VER_JUNIT}"
1414
api "org.assertj:assertj-core:${VER_ASSERTJ}"
1515
api "org.mockito:mockito-core:$VER_MOCKITO"
16+
api "com.diffplug.selfie:selfie-lib:${VER_SELFIE}"
17+
api "com.diffplug.selfie:selfie-runner-junit5:${VER_SELFIE}"
1618
runtimeOnly "org.junit.platform:junit-platform-launcher"
1719

1820
implementation "com.diffplug.durian:durian-io:${VER_DURIAN}"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright 2024 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 selfie;
17+
18+
import com.diffplug.selfie.junit5.SelfieSettingsAPI;
19+
20+
/** https://selfie.dev/jvm/get-started#quickstart */
21+
public class SelfieSettings extends SelfieSettingsAPI {
22+
@Override
23+
public boolean getJavaDontUseTripleQuoteLiterals() {
24+
return true;
25+
}
26+
}

0 commit comments

Comments
 (0)