-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from groldan/authservice_test_refactoring
Refactor AuthorizationService tests
- Loading branch information
Showing
11 changed files
with
716 additions
and
707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...-impl/src/test/java/org/geoserver/acl/authorization/AuthorizationServiceImplGeomTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* (c) 2023 Open Source Geospatial Foundation - all rights reserved | ||
* This code is licensed under the GPL 2.0 license, available at the root | ||
* application directory. | ||
*/ | ||
package org.geoserver.acl.authorization; | ||
|
||
import org.geoserver.acl.domain.adminrules.AdminRuleAdminService; | ||
import org.geoserver.acl.domain.adminrules.AdminRuleAdminServiceImpl; | ||
import org.geoserver.acl.domain.adminrules.MemoryAdminRuleRepository; | ||
import org.geoserver.acl.domain.rules.MemoryRuleRepository; | ||
import org.geoserver.acl.domain.rules.RuleAdminService; | ||
import org.geoserver.acl.domain.rules.RuleAdminServiceImpl; | ||
|
||
/** | ||
* {@link AuthorizationService} integration/conformance test working with geometries | ||
* | ||
* <p>Concrete implementations must supply the required services in {@link ServiceTestBase} | ||
*/ | ||
class AuthorizationServiceImplGeomTest extends AuthorizationServiceGeomTest { | ||
|
||
@Override | ||
protected RuleAdminService getRuleAdminService() { | ||
return new RuleAdminServiceImpl(new MemoryRuleRepository()); | ||
} | ||
|
||
@Override | ||
protected AdminRuleAdminService getAdminRuleAdminService() { | ||
return new AdminRuleAdminServiceImpl(new MemoryAdminRuleRepository()); | ||
} | ||
|
||
@Override | ||
protected AuthorizationService getAuthorizationService() { | ||
return new AuthorizationServiceImpl(super.adminruleAdminService, super.ruleAdminService); | ||
} | ||
} |
Oops, something went wrong.