[JAVA-28929] - Upgrade to mustache to Spring boot 3 (#15551)
This commit is contained in:
parent
581e34a278
commit
f91f92b08e
|
@ -9,9 +9,9 @@
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.baeldung</groupId>
|
<groupId>com.baeldung</groupId>
|
||||||
<artifactId>parent-boot-2</artifactId>
|
<artifactId>parent-boot-3</artifactId>
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<relativePath>../parent-boot-2</relativePath>
|
<relativePath>../parent-boot-3</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@ -58,6 +58,7 @@
|
||||||
<mustache.compiler.api.version>0.9.10</mustache.compiler.api.version>
|
<mustache.compiler.api.version>0.9.10</mustache.compiler.api.version>
|
||||||
<datafactory.version>0.8</datafactory.version>
|
<datafactory.version>0.8</datafactory.version>
|
||||||
<webjars.bootstrap.version>3.3.7</webjars.bootstrap.version>
|
<webjars.bootstrap.version>3.3.7</webjars.bootstrap.version>
|
||||||
|
<start-class>com.baeldung.springmustache.SpringMustacheApplication</start-class>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -6,7 +6,6 @@ import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
|
@ -71,7 +71,6 @@ public class TodoMustacheServiceUnitTest {
|
||||||
|
|
||||||
Map<String, Object> context = new HashMap<>();
|
Map<String, Object> context = new HashMap<>();
|
||||||
assertThat(executeTemplate(m, context)).isEmpty();
|
assertThat(executeTemplate(m, context)).isEmpty();
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class SpringMustacheApplicationIntegrationTest {
|
||||||
|
|
||||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/article", String.class);
|
ResponseEntity<String> entity = this.restTemplate.getForEntity("/article", String.class);
|
||||||
|
|
||||||
Assert.assertTrue(entity.getStatusCode().equals(HttpStatus.OK));
|
Assert.assertEquals(entity.getStatusCode(), HttpStatus.OK);
|
||||||
Assert.assertTrue(entity.getBody().contains("Article Title 0"));
|
Assert.assertTrue(entity.getBody().contains("Article Title 0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue