Remove public modifier on JUnit5 lifecycle methods
See gh-17292
This commit is contained in:
@@ -49,7 +49,7 @@ class SampleTestApplicationWebIntegrationTests {
|
||||
private VehicleDetailsService vehicleDetailsService;
|
||||
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
void setup() {
|
||||
given(this.vehicleDetailsService.getVehicleDetails(VIN)).willReturn(new VehicleDetails("Honda", "Civic"));
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class UserVehicleServiceTests {
|
||||
private UserVehicleService service;
|
||||
|
||||
@BeforeEach
|
||||
public void setup() {
|
||||
void setup() {
|
||||
MockitoAnnotations.initMocks(this);
|
||||
this.service = new UserVehicleService(this.userRepository, this.vehicleDetailsService);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user