Skip to content

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

core-java-modules/core-java-string-operations/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,11 @@
6969
<release>21</release>
7070
<!-- Needed due to a bug with JDK 21, described here: https://issues.apache.org/jira/browse/MCOMPILER-546?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&focusedCommentId=17767513 -->
7171
<debug>false</debug>
72-
<compilerArgs>
73-
<arg>--enable-preview</arg>
74-
</compilerArgs>
7572
</configuration>
7673
</plugin>
7774
<plugin>
7875
<groupId>org.apache.maven.plugins</groupId>
7976
<artifactId>maven-surefire-plugin</artifactId>
80-
<configuration>
81-
<forkCount>0</forkCount>
82-
<argLine>--enable-preview</argLine>
83-
</configuration>
8477
</plugin>
8578
</plugins>
8679
</build>

core-java-modules/core-java-string-operations/src/test/java/com/baeldung/stringinterpolation/StringInterpolationUnitTest.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.baeldung.stringinterpolation;
22

3-
import static java.lang.StringTemplate.STR;
43
import static org.junit.jupiter.api.Assertions.assertEquals;
54

65
import java.text.MessageFormat;
@@ -11,6 +10,7 @@
1110
import org.junit.jupiter.api.Test;
1211

1312
public class StringInterpolationUnitTest {
13+
1414
private final String EXPECTED_STRING = "String Interpolation in Java with some Java examples.";
1515

1616
@Test
@@ -70,14 +70,6 @@ public void givenTwoString_thenInterpolateWithMessageFormat() {
7070
assertEquals(EXPECTED_STRING, result);
7171
}
7272

73-
@Test
74-
public void whenInterpolateWithStringTemplate_thenGetExpectedResult() {
75-
String first = "Interpolation";
76-
String second = "Java";
77-
String result = STR."String \{first} in \{second} with some \{second} examples.";
78-
assertEquals(EXPECTED_STRING, result);
79-
}
80-
8173
@Test
8274
public void givenTwoString_thenInterpolateWithStringSubstitutor() {
8375
String baseString = "String ${first} in ${second} with some ${second} examples.";

0 commit comments

Comments
 (0)