1919import com .github .jasminb .jsonapi .ResourceConverter ;
2020import com .github .jasminb .jsonapi .exceptions .DocumentSerializationException ;
2121import org .json .JSONObject ;
22- import org .junit .Before ;
23- import org .junit .runner . RunWith ;
22+ import org .junit .jupiter . api . BeforeEach ;
23+ import org .junit .jupiter . api . extension . ExtendWith ;
2424import org .mockito .internal .util .collections .Sets ;
2525import org .skyscreamer .jsonassert .JSONAssert ;
2626import org .springframework .beans .factory .annotation .Autowired ;
3030import org .springframework .test .context .ActiveProfiles ;
3131import org .springframework .test .context .jdbc .Sql ;
3232import org .springframework .test .context .jdbc .Sql .ExecutionPhase ;
33- import org .springframework .test .context .junit4 . SpringRunner ;
33+ import org .springframework .test .context .junit . jupiter . SpringExtension ;
3434import org .springframework .test .web .servlet .MockMvc ;
3535import org .springframework .test .web .servlet .MvcResult ;
3636import org .springframework .test .web .servlet .request .RequestPostProcessor ;
4444
4545import static org .springframework .security .test .web .servlet .setup .SecurityMockMvcConfigurers .springSecurity ;
4646
47- @ RunWith ( SpringRunner .class )
47+ @ ExtendWith ( SpringExtension .class )
4848@ SpringBootTest (webEnvironment = WebEnvironment .RANDOM_PORT )
4949@ ActiveProfiles (ApplicationProfile .INTEGRATION_TEST )
5050@ Import (OAuthHelper .class )
@@ -67,7 +67,7 @@ public abstract class AbstractIntegrationTest {
6767 protected ObjectMapper objectMapper ;
6868 protected ResourceConverter resourceConverter ;
6969
70- @ Before
70+ @ BeforeEach
7171 public void setUp () {
7272 this .mockMvc = MockMvcBuilders
7373 .webAppContextSetup (this .context )
0 commit comments