Skip to content

Commit

Permalink
:dependabot: Bump spring-boot from 3.3.1 to 3.4.0-M1
Browse files Browse the repository at this point in the history
* :dependabot: Bump the spring-boot group with 5 updates

Bumps the spring-boot group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [org.springframework.boot:spring-boot-starter-jetty](https://github.com/spring-projects/spring-boot) | `3.3.1` | `3.3.2` |
| [org.springframework.boot:spring-boot-starter-web](https://github.com/spring-projects/spring-boot) | `3.3.1` | `3.3.2` |
| [org.springframework.boot:spring-boot-starter-thymeleaf](https://github.com/spring-projects/spring-boot) | `3.3.1` | `3.3.2` |
| [org.springframework.boot:spring-boot-starter-test](https://github.com/spring-projects/spring-boot) | `3.3.1` | `3.3.2` |
| [org.springframework.boot](https://github.com/spring-projects/spring-boot) | `3.3.1` | `3.3.2` |


Updates `org.springframework.boot:spring-boot-starter-jetty` from 3.3.1 to 3.3.2
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.3.1...v3.3.2)

Updates `org.springframework.boot:spring-boot-starter-web` from 3.3.1 to 3.3.2
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.3.1...v3.3.2)

Updates `org.springframework.boot:spring-boot-starter-thymeleaf` from 3.3.1 to 3.3.2
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.3.1...v3.3.2)

Updates `org.springframework.boot:spring-boot-starter-test` from 3.3.1 to 3.3.2
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.3.1...v3.3.2)

Updates `org.springframework.boot` from 3.3.1 to 3.3.2
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.3.1...v3.3.2)

---
updated-dependencies:
- dependency-name: org.springframework.boot:spring-boot-starter-jetty
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: spring-boot
- dependency-name: org.springframework.boot:spring-boot-starter-web
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: spring-boot
- dependency-name: org.springframework.boot:spring-boot-starter-thymeleaf
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: spring-boot
- dependency-name: org.springframework.boot:spring-boot-starter-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: spring-boot
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: spring-boot
...

Signed-off-by: dependabot[bot] <[email protected]>

* upgrade to spring boot 3.4.0-M1

* fix some code style issues

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: JKatzwinkel <[email protected]>
  • Loading branch information
dependabot[bot] and JKatzwinkel authored Jul 22, 2024
1 parent e595b95 commit 87c794a
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![build](https://github.com/JKatzwinkel/tla-web/workflows/build/badge.svg)
![deploy](https://github.com/JKatzwinkel/tla-web/workflows/deploy/badge.svg)
![LINE](https://img.shields.io/badge/line--coverage-91.16%25-brightgreen.svg)
![METHOD](https://img.shields.io/badge/method--coverage-92.40%25-brightgreen.svg)
![LINE](https://img.shields.io/badge/line--coverage-91.37%25-brightgreen.svg)
![METHOD](https://img.shields.io/badge/method--coverage-94.04%25-brightgreen.svg)

TLA web frontend.

Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'maven-publish'
id 'de.undercouch.download' version '5.6.0'
id 'com.adarshr.test-logger' version '4.0.0'
id 'org.springframework.boot' version '3.3.1'
id 'org.springframework.boot' version '3.4.0-M1'
id 'com.github.ben-manes.versions' version '0.51.0'
id 'com.github.dawnwords.jacoco.badge' version '0.2.4'
}
Expand Down Expand Up @@ -70,13 +70,13 @@ dependencies {
implementation 'org.modelmapper:modelmapper:3.2.0'
implementation 'org.jooq:jool:0.9.15'

implementation('org.springframework.boot:spring-boot-starter-jetty:3.3.1') {
implementation('org.springframework.boot:spring-boot-starter-jetty:3.4.0-M1') {
exclude module: 'jetty-xml'
}
implementation('org.springframework.boot:spring-boot-starter-web:3.3.1') {
implementation('org.springframework.boot:spring-boot-starter-web:3.4.0-M1') {
exclude module: 'spring-boot-starter-tomcat'
}
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:3.3.1'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:3.4.0-M1'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.3.0'
implementation 'org.apache.commons:commons-lang3:3.14.0'

Expand All @@ -87,7 +87,7 @@ dependencies {
exclude group: 'bouncycastle'
}

testImplementation 'org.springframework.boot:spring-boot-starter-test:3.3.1'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.4.0-M1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.11.0-M2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.0-M2'
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tla/web/mvc/GlobalControllerAdvisor.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ public ModelAndView handleAnything(Exception e, HttpServletRequest request, Mode
return new ModelAndView("error/404", model.asMap(), HttpStatus.OK);
}

}
}
2 changes: 1 addition & 1 deletion src/main/java/tla/web/mvc/config/MvcConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
import tla.web.model.mappings.URLDecodeConverter;
import tla.web.mvc.GlobalControllerAdvisor;


@Configuration
public class MvcConfig implements WebMvcConfigurer {

@Bean
@Autowired
public GlobalControllerAdvisor globalAdvisoryController(
ApplicationProperties applicationProperties, BuildProperties buildProperties
) {
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/tla/web/mvc/LemmaDetailsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import tla.domain.dto.meta.AbstractDto;
import tla.web.model.Lemma;

public class LemmaDetailsTest extends ViewTest {
class LemmaDetailsTest extends ViewTest {

private static final String[] EXPECT_TOP_LEVEL_ELEM_IDS = {
"lemma-property-dict",
Expand Down Expand Up @@ -114,7 +114,7 @@ void testLemmaDetails_hieratic(Language lang) throws Exception {
void testLemmaDetails_passport() throws Exception {
final String id = "151410";
respondToDetailsRequestWithLemma(id);
makeDetailsRequest(id, Language.en).andExpect(
makeDetailsRequest(id, Language.EN).andExpect(
xpath("//div[@id='passport-properties']").exists()
).andExpect(
xpath("//div[@id='passport-properties']/p/span[@class='lemma_main_group_nominal_schenkel']").nodeCount(1)
Expand All @@ -125,7 +125,7 @@ void testLemmaDetails_passport() throws Exception {
@DisplayName("lemma without passport should be rendered regardless")
void testLemmaDetails_noPassport() throws Exception {
respondToDetailsRequestWithLemma("875255");
makeDetailsRequest("875255", Language.en).andExpect(
makeDetailsRequest("875255", Language.EN).andExpect(
xpath("//div[@id='lemma-property-type-subtype']//span[@id='type-subtype']/span").string(
messages.getMessage("lemma_type_root", null, Locale.ENGLISH)
)
Expand All @@ -136,7 +136,7 @@ void testLemmaDetails_noPassport() throws Exception {
@DisplayName("lemma details page should show attested timespan")
void testAttestedTimespan() throws Exception {
respondToDetailsRequestWithLemma("100090");
makeDetailsRequest("100090", Language.en).andExpect(
makeDetailsRequest("100090", Language.EN).andExpect(
xpath("//div[@id='lemma-property-attestations']/p/span/span[@id='attestation-timespan-from']/span[1]").string("2375")
).andExpect(
xpath("//div[@id='lemma-property-attestations']/p/span/span[@id='attestation-timespan-from']/span[2]").string(
Expand Down Expand Up @@ -166,7 +166,7 @@ void testLemmaDetails_demotic(Language lang) throws Exception {
@Test
void testModel() throws Exception {
respondToDetailsRequestWithLemma("31610");
ResultActions testResponse = makeDetailsRequest("31610", Language.en);
ResultActions testResponse = makeDetailsRequest("31610", Language.EN);
testResponse.andExpect(
model().attributeExists("annotations")
).andExpect(
Expand All @@ -178,7 +178,7 @@ void testModel() throws Exception {
@ValueSource(strings = {"100090"})
void testResponseOk(String id) throws Exception {
respondToDetailsRequestWithLemma(id);
makeDetailsRequest(id, Language.en).andExpect(
makeDetailsRequest(id, Language.EN).andExpect(
xpath("//div[@id='lemma-property-dict']").exists()
);
}
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/tla/web/mvc/ThsEntryDetailsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.http.HttpHeaders;
import org.springframework.test.web.servlet.ResultActions;

Expand All @@ -27,9 +27,9 @@
import tla.web.service.ThsService;

@Slf4j
public class ThsEntryDetailsTest extends ViewTest {
class ThsEntryDetailsTest extends ViewTest {

@MockBean
@MockitoBean
private ThsService service;

@Autowired
Expand Down Expand Up @@ -60,7 +60,7 @@ private ObjectDetails<ThsEntry> mapDetailsDTO(SingleDocumentWrapper<AbstractDto>
() -> assertEquals(ThsEntry.class, container.getObject().getClass(), "result is ths entry"),
() -> assertTrue(container.getObject() instanceof ThsEntry, "result is ths entry instance")
);
return new ObjectDetails<ThsEntry>(
return new ObjectDetails<>(
(ThsEntry) container.getObject(),
container.getRelated()
);
Expand Down
17 changes: 9 additions & 8 deletions src/test/java/tla/web/mvc/ViewTest.java
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
package tla.web.mvc;

import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.MessageSource;
import org.springframework.test.context.bean.override.mockito.MockitoBean;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.ResultActions;

import tla.web.repo.TlaClient;

import static org.hamcrest.Matchers.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;


@AutoConfigureMockMvc
@SpringBootTest
public class ViewTest {
class ViewTest { // NOSONAR

public static enum Language {
en;
EN;
}

@Autowired
protected MockMvc mockMvc;

@MockBean
@MockitoBean
protected TlaClient backend;

@Autowired
Expand All @@ -46,7 +47,7 @@ void testLocalization(ResultActions testResponse, String lang) throws Exception
}

void testLocalization(ResultActions testResponse) throws Exception {
testLocalization(testResponse, Language.en);
testLocalization(testResponse, Language.EN);
}

}
8 changes: 4 additions & 4 deletions src/test/java/tla/web/service/ServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.bean.override.mockito.MockitoBean;

import tla.domain.command.LemmaSearch;
import tla.domain.command.SentenceSearch;
Expand All @@ -28,9 +28,9 @@
import tla.web.repo.TlaClient;

@SpringBootTest
public class ServiceTest {
class ServiceTest {

@MockBean
@MockitoBean
private TlaClient backend;

@Autowired
Expand Down Expand Up @@ -209,4 +209,4 @@ void sentenceServiceTextInjectionSearchResults() throws Exception {
);
}

}
}

0 comments on commit 87c794a

Please sign in to comment.