Spring Boot Junit5: How to fix receiving 405 when testing GETMapping
Im working on a Travel Blog project in Spring Boot and Im trying to do TDD. Im in the process of writing the tests for my BlogEntryController class which handles adding, deleting etc of BlogEntries. BlogEntryControllerTest package com.example.server; import com.example.server.controller.BlogEntryController; import com.example.server.models.user.BlogEntry; import com.example.server.repositories.BlogEntryRepository; import com.example.server.services.BlogEntryService; import com.fasterxml.jackson.databind.ObjectMapper; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mockito; import… Read More Spring Boot Junit5: How to fix receiving 405 when testing GETMapping