Skip to content

Commit c101d0d

Browse files
committed
End test text blocks on their own line for consistency
1 parent 857a4de commit c101d0d

1 file changed

Lines changed: 60 additions & 30 deletions

File tree

src/test/java/org/openrewrite/java/migrate/AddMockitoJavaAgentToMavenSurefirePluginTest.java

Lines changed: 60 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ void addsMockitoAgentArgAndPropertiesGoalToMavenPlugins() {
6767
</plugin>
6868
</plugins>
6969
</build>
70-
</project>""",
70+
</project>
71+
""",
7172
"""
7273
<project>
7374
<modelVersion>4.0.0</modelVersion>
@@ -170,7 +171,8 @@ void addsByteBuddyAgentArgWithSurefirePluginAndNoExistingConfigurationWithOlderM
170171
</plugin>
171172
</plugins>
172173
</build>
173-
</project>""",
174+
</project>
175+
""",
174176
"""
175177
<project>
176178
<modelVersion>4.0.0</modelVersion>
@@ -221,7 +223,8 @@ void addsByteBuddyAgentArgWithSurefirePluginAndNoExistingConfigurationWithOlderM
221223
</plugin>
222224
</plugins>
223225
</build>
224-
</project>"""
226+
</project>
227+
"""
225228
)
226229
)
227230
);
@@ -280,7 +283,8 @@ void addsMockitoAgentArgToExistingConfigurationWithNoArgLineTag() {
280283
</plugin>
281284
</plugins>
282285
</build>
283-
</project>""",
286+
</project>
287+
""",
284288
"""
285289
<project>
286290
<modelVersion>4.0.0</modelVersion>
@@ -332,7 +336,8 @@ void addsMockitoAgentArgToExistingConfigurationWithNoArgLineTag() {
332336
</plugin>
333337
</plugins>
334338
</build>
335-
</project>"""
339+
</project>
340+
"""
336341
)
337342
)
338343
);
@@ -386,7 +391,8 @@ void addsMockitoAgentArgToExistingArgLineTagWithNoValue() {
386391
</plugin>
387392
</plugins>
388393
</build>
389-
</project>""",
394+
</project>
395+
""",
390396
"""
391397
<project>
392398
<modelVersion>4.0.0</modelVersion>
@@ -434,7 +440,8 @@ void addsMockitoAgentArgToExistingArgLineTagWithNoValue() {
434440
</plugin>
435441
</plugins>
436442
</build>
437-
</project>"""
443+
</project>
444+
"""
438445
)
439446
)
440447
);
@@ -491,7 +498,8 @@ void addsMockitoAgentArgPreservingExistingArgLineArguments() {
491498
</plugin>
492499
</plugins>
493500
</build>
494-
</project>""",
501+
</project>
502+
""",
495503
"""
496504
<project>
497505
<modelVersion>4.0.0</modelVersion>
@@ -542,7 +550,8 @@ void addsMockitoAgentArgPreservingExistingArgLineArguments() {
542550
</plugin>
543551
</plugins>
544552
</build>
545-
</project>"""
553+
</project>
554+
"""
546555
)
547556
)
548557
);
@@ -571,7 +580,8 @@ void onlyAddsConfigurationToPomWithMockitoInMultiModuleProject() {
571580
<relativePath/>
572581
</parent>
573582
574-
</project>""",
583+
</project>
584+
""",
575585
spec -> spec.path("pom.xml")
576586
),
577587
pomXml(
@@ -608,7 +618,8 @@ void onlyAddsConfigurationToPomWithMockitoInMultiModuleProject() {
608618
</plugin>
609619
</plugins>
610620
</build>
611-
</project>""",
621+
</project>
622+
""",
612623
"""
613624
<project>
614625
<modelVersion>4.0.0</modelVersion>
@@ -656,7 +667,8 @@ void onlyAddsConfigurationToPomWithMockitoInMultiModuleProject() {
656667
</plugin>
657668
</plugins>
658669
</build>
659-
</project>""",
670+
</project>
671+
""",
660672
spec -> spec.path("test-module1/pom.xml")
661673
)
662674
)
@@ -689,7 +701,8 @@ void addsMavenSurefireAndDependencyPluginsWhenAbsent() {
689701
<scope>test</scope>
690702
</dependency>
691703
</dependencies>
692-
</project>""",
704+
</project>
705+
""",
693706
"""
694707
<project>
695708
<modelVersion>4.0.0</modelVersion>
@@ -737,7 +750,8 @@ void addsMavenSurefireAndDependencyPluginsWhenAbsent() {
737750
</plugin>
738751
</plugins>
739752
</build>
740-
</project>"""
753+
</project>
754+
"""
741755
)
742756
)
743757
);
@@ -792,7 +806,8 @@ void addsGoalsTagWithPropertiesGoalToExistingMavenDependencyPluginWhenMissing()
792806
</plugin>
793807
</plugins>
794808
</build>
795-
</project>""",
809+
</project>
810+
""",
796811
"""
797812
<project>
798813
<modelVersion>4.0.0</modelVersion>
@@ -843,7 +858,8 @@ void addsGoalsTagWithPropertiesGoalToExistingMavenDependencyPluginWhenMissing()
843858
</plugin>
844859
</plugins>
845860
</build>
846-
</project>"""
861+
</project>
862+
"""
847863
)
848864
)
849865
);
@@ -901,7 +917,8 @@ void addsPropertiesGoalToExistingGoalsSectionInMavenDependencyPlugin() {
901917
</plugin>
902918
</plugins>
903919
</build>
904-
</project>""",
920+
</project>
921+
""",
905922
"""
906923
<project>
907924
<modelVersion>4.0.0</modelVersion>
@@ -953,7 +970,8 @@ void addsPropertiesGoalToExistingGoalsSectionInMavenDependencyPlugin() {
953970
</plugin>
954971
</plugins>
955972
</build>
956-
</project>"""
973+
</project>
974+
"""
957975
)
958976
)
959977
);
@@ -1001,7 +1019,8 @@ void addsArgLineAndPluginsButMakesNoAgentChangesIfMultipleArgLineTagsExist() {
10011019
</plugin>
10021020
</plugins>
10031021
</build>
1004-
</project>""",
1022+
</project>
1023+
""",
10051024
"""
10061025
<project>
10071026
<modelVersion>4.0.0</modelVersion>
@@ -1053,7 +1072,8 @@ void addsArgLineAndPluginsButMakesNoAgentChangesIfMultipleArgLineTagsExist() {
10531072
</plugin>
10541073
</plugins>
10551074
</build>
1056-
</project>"""
1075+
</project>
1076+
"""
10571077
)
10581078
)
10591079
);
@@ -1114,7 +1134,8 @@ void makesNoChangeWhenMockitoAgentFlagAlreadyExists() {
11141134
</plugin>
11151135
</plugins>
11161136
</build>
1117-
</project>"""
1137+
</project>
1138+
"""
11181139
)
11191140
)
11201141
);
@@ -1175,7 +1196,8 @@ void makesNoChangeWhenMockitoAgentFlagAlreadyExistsUsingSingleLineArgline() {
11751196
</plugin>
11761197
</plugins>
11771198
</build>
1178-
</project>"""
1199+
</project>
1200+
"""
11791201
)
11801202
)
11811203
);
@@ -1217,7 +1239,8 @@ void makesNoChangeWhenMockitoCoreDependencyIsNotOnClasspath() {
12171239
</plugin>
12181240
</plugins>
12191241
</build>
1220-
</project>"""
1242+
</project>
1243+
"""
12211244
)
12221245
)
12231246
);
@@ -1263,7 +1286,8 @@ void makesNoChangesWhenParentPomManagesSurefirePluginAndHasAgentConfiguration()
12631286
</plugins>
12641287
</pluginManagement>
12651288
</build>
1266-
</project>""",
1289+
</project>
1290+
""",
12671291
spec -> spec.path("pom.xml")
12681292
),
12691293
pomXml(
@@ -1300,7 +1324,8 @@ void makesNoChangesWhenParentPomManagesSurefirePluginAndHasAgentConfiguration()
13001324
</plugin>
13011325
</plugins>
13021326
</build>
1303-
</project>""",
1327+
</project>
1328+
""",
13041329
spec -> spec.path("test-module1/pom.xml")
13051330
)
13061331
)
@@ -1356,7 +1381,8 @@ void updatesIndividualPomsWhenParentPomManagesSurefirePluginWithoutAgentConfigur
13561381
</plugins>
13571382
</pluginManagement>
13581383
</build>
1359-
</project>""",
1384+
</project>
1385+
""",
13601386
spec -> spec.path("pom.xml")
13611387
),
13621388
pomXml(
@@ -1389,7 +1415,8 @@ void updatesIndividualPomsWhenParentPomManagesSurefirePluginWithoutAgentConfigur
13891415
</plugin>
13901416
</plugins>
13911417
</build>
1392-
</project>""",
1418+
</project>
1419+
""",
13931420
"""
13941421
<project>
13951422
<modelVersion>4.0.0</modelVersion>
@@ -1437,7 +1464,8 @@ void updatesIndividualPomsWhenParentPomManagesSurefirePluginWithoutAgentConfigur
14371464
</plugin>
14381465
</plugins>
14391466
</build>
1440-
</project>""",
1467+
</project>
1468+
""",
14411469
spec -> spec.path("test-module1/pom.xml")
14421470
)
14431471
)
@@ -1493,7 +1521,8 @@ void augmentsSurefirePluginDeclaredInPluginManagement() {
14931521
</plugins>
14941522
</pluginManagement>
14951523
</build>
1496-
</project>""",
1524+
</project>
1525+
""",
14971526
"""
14981527
<project>
14991528
<modelVersion>4.0.0</modelVersion>
@@ -1545,7 +1574,8 @@ void augmentsSurefirePluginDeclaredInPluginManagement() {
15451574
</plugins>
15461575
</pluginManagement>
15471576
</build>
1548-
</project>"""
1577+
</project>
1578+
"""
15491579
)
15501580
)
15511581
);

0 commit comments

Comments
 (0)