Skip to content

Commit

Permalink
minor test refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Apr 2, 2019
1 parent d9c7edf commit fb86dce
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/**
* Super class for all Identity Provider Tests.
*/
public abstract class KeycloakIdentityProviderTest extends PluggableProcessEngineTestCase {
public abstract class AbstractKeycloakIdentityProviderTest extends PluggableProcessEngineTestCase {

// TODO: read this from properties file
private static final String KEYCLOAK_URL = "https://localhost:9001/auth";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Admin group configuration test for the Keycloak identity provider.
*/
public class KeycloakConfigureAdminGroupTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminGroupTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use Keycloak internal ID as administratorUserId and flag useEmailAsCamundaUserId enabled.
*/
public class KeycloakConfigureAdminUserIdAndUseMailAsIdTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdAndUseMailAsIdTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use Keycloak internal ID as administratorUserId and flag useUsernameAsCamundaUserId enabled.
*/
public class KeycloakConfigureAdminUserIdAndUseUsernameAsIdTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdAndUseUsernameAsIdTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use email as administratorUserId and flag useEmailAsCamundaUserId enabled.
*/
public class KeycloakConfigureAdminUserIdAsMailTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdAsMailTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use username as administratorUserId and flag useEmailAsCamundaUserId enabled.
*/
public class KeycloakConfigureAdminUserIdAsUsernameAndUseMailAsIdTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdAsUsernameAndUseMailAsIdTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use username as administratorUserId and flag useEmailAsCamundaUserId enabled.
*/
public class KeycloakConfigureAdminUserIdAsUsernameAndUseUsernameAsIdTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdAsUsernameAndUseUsernameAsIdTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use username as administratorUserId.
*/
public class KeycloakConfigureAdminUserIdAsUsernameTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdAsUsernameTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Admin user configuration test for the Keycloak identity provider.
* Use Keycloak internal ID as administratorUserId.
*/
public class KeycloakConfigureAdminUserIdTest extends KeycloakIdentityProviderTest {
public class KeycloakConfigureAdminUserIdTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Tests group queries.
*/
public class KeycloakGroupQueryTest extends KeycloakIdentityProviderTest {
public class KeycloakGroupQueryTest extends AbstractKeycloakIdentityProviderTest {

public void testQueryNoFilter() {
List<Group> groupList = identityService.createGroupQuery().list();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Keycloak login test.
*/
public class KeycloakLoginTest extends KeycloakIdentityProviderTest {
public class KeycloakLoginTest extends AbstractKeycloakIdentityProviderTest {

public void testKeycloakLoginSuccess() {
assertTrue(identityService.checkPassword("[email protected]", "camunda1!"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Refresh access token test.
*/
public class KeycloakRefreshTokenTest extends KeycloakIdentityProviderTest {
public class KeycloakRefreshTokenTest extends AbstractKeycloakIdentityProviderTest {

/**
* Tests refreshing access token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* User query test for the Keycloak identity provider.
* Flags useEmailAsCamundaUserId and useUsernameAsCamundaUserId disabled.
*/
public class KeycloakUseKeycloakIdAsUserIdQueryTest extends KeycloakIdentityProviderTest {
public class KeycloakUseKeycloakIdAsUserIdQueryTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* User query test for the Keycloak identity provider.
* Flag useUsernameAsCamundaUserId enabled.
*/
public class KeycloakUseUsernameAsUserIdQueryTest extends KeycloakIdentityProviderTest {
public class KeycloakUseUsernameAsUserIdQueryTest extends AbstractKeycloakIdentityProviderTest {

@Override
protected void initializeProcessEngine() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* User query test for the Keycloak identity provider.
*/
public class KeycloakUserQueryTest extends KeycloakIdentityProviderTest {
public class KeycloakUserQueryTest extends AbstractKeycloakIdentityProviderTest {

public void testQueryNoFilter() {
List<User> result = identityService.createUserQuery().list();
Expand Down

0 comments on commit fb86dce

Please sign in to comment.