Class SongsControllerNTest

java.lang.Object
info.ejava.examples.db.jpa.songs.controller.SongsControllerNTest

@SpringBootTest(classes=NTestConfiguration.class, webEnvironment=RANDOM_PORT) @ActiveProfiles(resolver=TestProfileResolver.class) @Tag("springboot") public class SongsControllerNTest extends Object
  • Field Details

    • serverConfig

      @Autowired private info.ejava.examples.common.web.ServerConfig serverConfig
    • songDTOFactory

      @Autowired private SongDTOFactory songDTOFactory
    • wtc

      @Autowired private org.springframework.test.web.reactive.server.WebTestClient wtc
    • webClient

      @Autowired private org.springframework.web.reactive.function.client.WebClient webClient
    • restTemplate

      @Autowired private org.springframework.web.client.RestTemplate restTemplate
    • rtt

      @Autowired private org.springframework.boot.test.web.client.TestRestTemplate rtt
    • jsonUtil

      private info.ejava.examples.common.dto.DtoUtil jsonUtil
    • xmlUtil

      private info.ejava.examples.common.dto.DtoUtil xmlUtil
    • finderInitialized

      static boolean finderInitialized
    • songs

      private static Map<Integer,SongDTO> songs
  • Constructor Details

    • SongsControllerNTest

      public SongsControllerNTest()
  • Method Details

    • init

      @BeforeEach void init()
    • create_song

      @Test void create_song()
    • get_song

      @Test void get_song()
    • update_song

      @Test void update_song()
    • delete_song

      @Test void delete_song()
    • thenSongsEqual

      void thenSongsEqual(SongDTO result, SongDTO expected)
    • createSongs

      List<SongDTO> createSongs(int count)
    • createSong

      SongDTO createSong()
    • get_song

      SongDTO get_song(int id)