@@ -977,108 +977,6 @@ void addsPropertiesGoalToExistingGoalsSectionInMavenDependencyPlugin() {
977977 );
978978 }
979979
980- @ Test
981- void addsArgLineAndPluginsButMakesNoAgentChangesIfMultipleArgLineTagsExist () {
982- rewriteRun (
983- mavenProject ("test-project" ,
984- pomXml (
985- """
986- <project>
987- <modelVersion>4.0.0</modelVersion>
988- <groupId>org.sample</groupId>
989- <artifactId>test</artifactId>
990- <version>${revision}</version>
991-
992- <parent>
993- <groupId>org.springframework.boot</groupId>
994- <artifactId>spring-boot-starter-parent</artifactId>
995- <version>3.5.4</version>
996- <relativePath/>
997- </parent>
998-
999- <dependencies>
1000- <dependency>
1001- <groupId>org.springframework.boot</groupId>
1002- <artifactId>spring-boot-starter-test</artifactId>
1003- <scope>test</scope>
1004- </dependency>
1005- </dependencies>
1006- <build>
1007- <plugins>
1008- <plugin>
1009- <groupId>org.apache.maven.plugins</groupId>
1010- <artifactId>maven-surefire-plugin</artifactId>
1011- <configuration>
1012- <systemPropertyVariables>
1013- <propertyName>foobar</propertyName>
1014- </systemPropertyVariables>
1015- <argLine>-Duser.language=en</argLine>
1016- <argLine>-Xmx256m</argLine>
1017- <argLine>-XX:MaxPermSize=256m</argLine>
1018- </configuration>
1019- </plugin>
1020- </plugins>
1021- </build>
1022- </project>
1023- """ ,
1024- """
1025- <project>
1026- <modelVersion>4.0.0</modelVersion>
1027- <groupId>org.sample</groupId>
1028- <artifactId>test</artifactId>
1029- <version>${revision}</version>
1030-
1031- <parent>
1032- <groupId>org.springframework.boot</groupId>
1033- <artifactId>spring-boot-starter-parent</artifactId>
1034- <version>3.5.4</version>
1035- <relativePath/>
1036- </parent>
1037- <properties>
1038- <argLine></argLine>
1039- </properties>
1040-
1041- <dependencies>
1042- <dependency>
1043- <groupId>org.springframework.boot</groupId>
1044- <artifactId>spring-boot-starter-test</artifactId>
1045- <scope>test</scope>
1046- </dependency>
1047- </dependencies>
1048- <build>
1049- <plugins>
1050- <plugin>
1051- <groupId>org.apache.maven.plugins</groupId>
1052- <artifactId>maven-surefire-plugin</artifactId>
1053- <configuration>
1054- <systemPropertyVariables>
1055- <propertyName>foobar</propertyName>
1056- </systemPropertyVariables>
1057- <argLine>-Duser.language=en</argLine>
1058- <argLine>-Xmx256m</argLine>
1059- <argLine>-XX:MaxPermSize=256m</argLine>
1060- </configuration>
1061- </plugin>
1062- <plugin>
1063- <groupId>org.apache.maven.plugins</groupId>
1064- <artifactId>maven-dependency-plugin</artifactId>
1065- <executions>
1066- <execution>
1067- <goals>
1068- <goal>properties</goal>
1069- </goals>
1070- </execution>
1071- </executions>
1072- </plugin>
1073- </plugins>
1074- </build>
1075- </project>
1076- """
1077- )
1078- )
1079- );
1080- }
1081-
1082980 @ Test
1083981 void makesNoChangeWhenMockitoAgentFlagAlreadyExists () {
1084982 rewriteRun (
0 commit comments