🐛Fix: 修改已改为private的方法
This commit is contained in:
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.Test;
|
|||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
@@ -17,9 +18,7 @@ class MovieServiceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void listMovies() {
|
void listMovies() {
|
||||||
List<MovieVO> movies = movieService.listMovies();
|
Map<String, Object> movies = movieService.getMovies();
|
||||||
for (MovieVO movie : movies) {
|
System.out.println(movies);
|
||||||
System.out.println(movie);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user