package com.krillsson.sysapi.auth;

import junit.framework.TestCase;

public class BasicAuthorizerTest extends TestCase {

}
@@ -33,92 +33,1087 @@
 h;%0A%0A
+%0A
 import 
-junit.framework.TestCase;%0A%0Apublic class BasicAuthorizerTest extends TestCase %7B%0A
+com.krillsson.sysapi.UserConfiguration;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Apublic class BasicAuthorizerTest %7B%0A%0A    private final String correctUser = %22user%22;%0A    private UserConfiguration userConfiguration;%0A%0A    private BasicAuthorizer authorizer;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        userConfiguration = new UserConfiguration(correctUser, %22%22);%0A        authorizer = new BasicAuthorizer(userConfiguration);%0A    %7D%0A%0A    @Test%0A    public void correctRoleAndName() throws Exception %7B%0A        assertTrue(authorizer.authorize(new UserConfiguration(correctUser, %22%22), BasicAuthorizer.AUTHENTICATED_ROLE));%0A    %7D%0A%0A    @Test%0A    public void incorrectRole() throws Exception %7B%0A        assertFalse(authorizer.authorize(new UserConfiguration(correctUser, %22%22), %22derp%22));%0A    %7D%0A%0A    @Test%0A    public void incorrectUser() throws Exception %7B%0A        assertFalse(authorizer.authorize(new UserConfiguration(%22derp%22, %22%22), BasicAuthorizer.AUTHENTICATED_ROLE));%0A    %7D
 %0A%7D

Add trivial unit tests for BasicAuthorizer