Skip to content

Commit 93c7678

Browse files
committed
Update ProfileSelectionExtension to use BeforeEachCallback for JUnit tests
1 parent 5a77e8e commit 93c7678

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/test/java/org/cloudfoundry/identity/uaa/extensions/profiles/ProfileSelectionExtension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.cloudfoundry.identity.uaa.extensions.profiles;
22

33
import org.junit.jupiter.api.Assumptions;
4-
import org.junit.jupiter.api.extension.BeforeTestExecutionCallback;
4+
import org.junit.jupiter.api.extension.BeforeEachCallback;
55
import org.junit.jupiter.api.extension.ExtensionContext;
66
import org.junit.platform.commons.util.AnnotationUtils;
77
import org.springframework.test.context.junit.jupiter.SpringExtension;
@@ -17,10 +17,10 @@
1717
* @see DisabledIfProfile
1818
* @see EnabledIfProfile
1919
*/
20-
public class ProfileSelectionExtension implements BeforeTestExecutionCallback {
20+
public class ProfileSelectionExtension implements BeforeEachCallback {
2121

2222
@Override
23-
public void beforeTestExecution(ExtensionContext context) {
23+
public void beforeEach(ExtensionContext context) {
2424
var activeProfiles = getActiveProfilesOrNull(context);
2525
if (activeProfiles == null) {
2626
return;

0 commit comments

Comments
 (0)