Skip to content

Commit

Permalink
Merge pull request #6 from camunda-community-hub/dependabot/maven/spr…
Browse files Browse the repository at this point in the history
…ing.boot.version-3.1.1

build(deps): bump spring.boot.version from 2.7.8 to 3.1.1
  • Loading branch information
saig0 authored Jul 11, 2023
2 parents 919914d + 0df91f5 commit 266082e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<properties>
<java.version>17</java.version>
<feel.version>1.16.1</feel.version>
<spring.boot.version>2.7.8</spring.boot.version>
<spring.boot.version>3.1.1</spring.boot.version>
</properties>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
*/
package org.camunda.feel.playground;

import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

import org.camunda.feel.FeelEngine;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
Expand All @@ -25,8 +27,13 @@ public final class VersionApiTest {

@Test
void shouldReturnVersion() throws Exception {
var expectedVersion = FeelEngine.class.getPackage().getImplementationVersion();
assertThat(expectedVersion)
.describedAs("The version should match the pattern `x.y.z`")
.matches("(\\d+).(\\d+).(\\d+)");

mvc.perform(get("/api/v1/version"))
.andExpect(status().isOk())
.andExpect(content().json("{'feelEngineVersion': '1.16.0'}"));
.andExpect(content().json("{'feelEngineVersion': '" + expectedVersion + "'}"));
}
}

0 comments on commit 266082e

Please sign in to comment.