8000 Migration Tool - Removing AbstractKeycloak extends. by lhanusov · Pull Request #47691 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Migration Tool - Removing AbstractKeycloak extends. - #47691

Merged
stianst merged 1 commit into
keycloak:mainfrom
lhanusov:37283/migration-tool_extends
Apr 10, 2026
Merged

stianst merged 1 commit into
keycloak:mainfrom
lhanusov:37283/migration-tool_extends

Conversation

@lhanusov
@lhanusov lhanusov commented Apr 1, 2026
Copy link
Copy Markdown
Contributor

Closes #47517

@lhanusov
lhanusov requested a review from a team as a code owner April 1, 2026 13:36
@lhanusov lhanusov self-assigned this Apr 1, 2026
@lhanusov lhanusov added the area/test-framework Test framework — infrastructure, Realm DSL, page objects, migration utils label Apr 1, 2026
for (int i = 0; i < content.size(); i++) {
String l = content.get(i);
if (l.contains("extends AbstractKeycloakTest")) {
replaceLine(i, l.replace("extends AbstractKeycloakTest", ""));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
replaceLine(i, l.replace("extends AbstractKeycloakTest", ""));
replaceLine(i, l.replace(" extends AbstractKeycloakTest", ""));

}

if (l.contains("extends AbstractTestRealmKeycloakTest")) {
replaceLine(i, l.replace("extends AbstractTestRealmKeycloakTest", ""));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
replaceLine(i, l.replace("extends AbstractTestRealmKeycloakTest", ""));
replaceLine(i, l.replace(" extends AbstractTestRealmKeycloakTest", ""));

break;
}

if (l.contains("extends AbstractTestRealmKeycloakTest")) {
Copy link
Copy Markdown
8000
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (l.contains("extends AbstractTestRealmKeycloakTest")) {
if (l.contains(" extends AbstractTestRealmKeycloakTest")) {

if (abstractImport >= 0 || abstractTestRealmImport >= 0) {
for (int i = 0; i < content.size(); i++) {
String l = content.get(i);
if (l.contains("extends AbstractKeycloakTest")) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (l.contains("extends AbstractKeycloakTest")) {
if (l.contains(" extends AbstractKeycloakTest")) {

@stianst stianst left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Results in two spaces public class HostnameV2Test { fix would be to update search/ and replace to extends .. instead of just extends .. see suggested changes

Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
@lhanusov
lhanusov force-pushed the 37283/migration-tool_extends branch from 7c6a697 to 84dfd96 Compare April 10, 2026 09:15
@stianst
stianst merged commit 29aeb89 into keycloak:main Apr 10, 2026
84 checks passed
@stianst stianst mentioned this pull request Jun 1, 2026
sashyo pushed a commit to tide-foundation/keycloak-IGA that referenced this pull request Jul 20, 2026
Signed-off-by: Lukas Hanusovsky <lhanusov@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test-framework Test framework — infrastructure, Realm DSL, page objects, migration utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test migration util - Remove extends AbstractTestRealmKeycloakTest and AbstractKeycloakTest

2 participants

0