* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
+ */
package org.wamblee.security.authorization;
import static org.wamblee.security.authorization.AuthorizationResult.*;
private AuthorizationService service;
private TestUserAccessor userAccessor;
-
protected AuthorizationService getService() {
return service;
protected void setUp() throws Exception {
super.setUp();
- userAccessor = new TestUserAccessor();
-
+ userAccessor = new TestUserAccessor();
+
rule1 = createRule(GRANTED, "users", "/oni/", AllOperation.class);
rule2 = createRule(DENIED, "users", "/abc/", ReadOperation.class);
rule3 = createRule(GRANTED, "users", "/abc/", AllOperation.class);
}
protected UserAccessor getUserAccessor() {
- return userAccessor;
+ return userAccessor;
}
-
- protected UserAdministration getUserAdministration() {
+
+ protected UserAdministration getUserAdministration() {
return userAccessor.getUserAdmin();
}