chore: bump org.asciidoctor:asciidoctorj from 2.5.13 to 3.0.0 (#1897)

This commit is contained in:
dependabot[bot]
2024-10-26 22:53:43 +02:00
committed by GitHub
parent 3f049ba53a
commit cf5101a633
9 changed files with 41 additions and 31 deletions

View File

@ -5,7 +5,6 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup;
import com.beust.jcommander.internal.Lists;
import java.util.List;
import org.hamcrest.CoreMatchers;
import org.junit.jupiter.api.BeforeEach;
@ -28,7 +27,7 @@ public class HintServiceTest {
void setup() {
Lesson lesson = new HttpBasics();
lesson.addAssignment(
new Assignment("test", "/HttpBasics/attack1", Lists.newArrayList("hint 1", "hint 2")));
new Assignment("test", "/HttpBasics/attack1", List.of("hint 1", "hint 2")));
Course course = new Course(List.of(lesson));
this.mockMvc = standaloneSetup(new HintService(course)).build();
}

View File

@ -29,8 +29,8 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup;
import com.beust.jcommander.internal.Lists;
import java.util.Arrays;
import java.util.List;
import org.hamcrest.CoreMatchers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
@ -74,8 +74,8 @@ public class LessonMenuServiceTest {
when(l1.getTitle()).thenReturn("ZA");
when(l2.getTitle()).thenReturn("AA");
when(lessonTracker.isLessonSolved()).thenReturn(false);
when(course.getLessons(any())).thenReturn(Lists.newArrayList(l1, l2));
when(course.getCategories()).thenReturn(Lists.newArrayList(Category.A1));
when(course.getLessons(any())).thenReturn(List.of(l1, l2));
when(course.getCategories()).thenReturn(List.of(Category.A1));
when(userTracker.getLessonProgress(any(Lesson.class))).thenReturn(lessonTracker);
when(userTrackerRepository.findByUser(any())).thenReturn(userTracker);
@ -91,8 +91,8 @@ public class LessonMenuServiceTest {
Lesson l1 = Mockito.mock(Lesson.class);
when(l1.getTitle()).thenReturn("ZA");
when(lessonTracker.isLessonSolved()).thenReturn(true);
when(course.getLessons(any())).thenReturn(Lists.newArrayList(l1));
when(course.getCategories()).thenReturn(Lists.newArrayList(Category.A1));
when(course.getLessons(any())).thenReturn(List.of(l1));
when(course.getCategories()).thenReturn(List.of(Category.A1));
when(userTracker.getLessonProgress(any(Lesson.class))).thenReturn(lessonTracker);
when(userTrackerRepository.findByUser(any())).thenReturn(userTracker);