Skip to content

Commit 24339a3

Browse files
author
Nilanchal Panigrahy
committed
Misc improvements
1 parent cb1269b commit 24339a3

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

testing-movies-api/src/main/java/com/stacktips/movies/dto/MovieDto.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ public class MovieDto {
1111
@NotEmpty
1212
@NotNull
1313
private String title;
14-
1514
private String headline;
1615
private String thumbnail;
1716
private String language;

testing-movies-api/src/test/java/com/stacktips/movies/api/MoviesControllerTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ void testGetMovies() throws Exception {
7575

7676
@Test
7777
void testGetMoviesWhenXmlContentType() throws Exception {
78-
when(movieService.getMovies()).thenReturn(movies);
79-
8078
mockMvc.perform(get("/api/1.0/movies").contentType(MediaType.APPLICATION_XML))
8179
.andExpect(status().isUnsupportedMediaType());
8280
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.stacktips.movies.api;
2+
3+
import static org.junit.jupiter.api.Assertions.*;
4+
5+
class SearchControllerTest {
6+
7+
}

0 commit comments

Comments
 (0)