File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
plugin-maven/src/test/java/com/diffplug/spotless/maven/java Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2016-2020 DiffPlug
2+ * Copyright 2016-2021 DiffPlug
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1717
1818import org .junit .Test ;
1919
20+ import com .diffplug .spotless .JreVersion ;
2021import com .diffplug .spotless .maven .MavenIntegrationHarness ;
2122
2223public class GoogleJavaFormatTest extends MavenIntegrationHarness {
@@ -41,6 +42,18 @@ public void specificVersionSpecificStyle() throws Exception {
4142 runTest ("java/googlejavaformat/JavaCodeFormattedAOSP.test" );
4243 }
4344
45+ @ Test
46+ public void specificVersionReflowLongStrings () throws Exception {
47+ JreVersion .assume11OrGreater ();
48+ writePomWithJavaSteps (
49+ "<googleJavaFormat>" ,
50+ " <version>1.8</version>" ,
51+ " <reflowLongStrings>true</reflowLongStrings>" ,
52+ "</googleJavaFormat>" );
53+
54+ runTest ("java/googlejavaformat/JavaCodeFormattedReflowLongStrings.test" );
55+ }
56+
4457 private void runTest (String targetResource ) throws Exception {
4558 String path = "src/main/java/test.java" ;
4659 setFile (path ).toResource ("java/googlejavaformat/JavaCodeUnformatted.test" );
You can’t perform that action at this time.
0 commit comments