// Path: src/test/java/com/asolutions/MockTestCase.java
// public class MockTestCase {
// 
// 	protected Mockery context = new JUnit4Mockery();
// 
// 	@Before
// 	public void setupMockery() {
// 		context.setImposteriser(ClassImposteriser.INSTANCE);
// 	}
// 	
// 	@After
// 	public void mockeryAssertIsSatisfied(){
// 		context.assertIsSatisfied();
// 	}
// 
// 	protected void checking(Expectations expectations) {
// 		context.checking(expectations);
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/sshd/IProjectAuthorizer.java
// public interface IProjectAuthorizer {
// 
// 	AuthorizationLevel userIsAuthorizedForProject(String username, String project) throws UnparsableProjectException;
// 
// }


import static org.junit.Assert.*;
import java.util.ArrayList;
import org.jmock.Expectations;
import org.junit.Test;
import com.asolutions.MockTestCase;
import com.asolutions.scmsshd.sshd.IProjectAuthorizer;
package com.asolutions.scmsshd.authorizors;





public class PassIfAnyInCollectionPassAuthorizorTest extends MockTestCase {
	
	private static final String PROJECT = "project";
	private static final String USERNAME = "username";

	@Test
	public void testAuthingWithEmptyChainFails() throws Exception {
		assertNull(new PassIfAnyInCollectionPassAuthorizor().userIsAuthorizedForProject(USERNAME, PROJECT));
	}
	
	@Test
	public void testIfAnyPassItPasses() throws Exception {
// Path: src/test/java/com/asolutions/MockTestCase.java
// public class MockTestCase {
// 
// 	protected Mockery context = new JUnit4Mockery();
// 
// 	@Before
// 	public void setupMockery() {
// 		context.setImposteriser(ClassImposteriser.INSTANCE);
// 	}
// 	
// 	@After
// 	public void mockeryAssertIsSatisfied(){
// 		context.assertIsSatisfied();
// 	}
// 
// 	protected void checking(Expectations expectations) {
// 		context.checking(expectations);
// 	}
// 
// }
// 
// Path: src/main/java/com/asolutions/scmsshd/sshd/IProjectAuthorizer.java
// public interface IProjectAuthorizer {
// 
// 	AuthorizationLevel userIsAuthorizedForProject(String username, String project) throws UnparsableProjectException;
// 
// }


// Path: src/test/java/com/asolutions/scmsshd/authorizors/PassIfAnyInCollectionPassAuthorizorTest.java
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.jmock.Expectations;
import org.junit.Test;
import com.asolutions.MockTestCase;
import com.asolutions.scmsshd.sshd.IProjectAuthorizer;

package com.asolutions.scmsshd.authorizors;





public class PassIfAnyInCollectionPassAuthorizorTest extends MockTestCase {
	
	private static final String PROJECT = "project";
	private static final String USERNAME = "username";

	@Test
	public void testAuthingWithEmptyChainFails() throws Exception {
		assertNull(new PassIfAnyInCollectionPassAuthorizor().userIsAuthorizedForProject(USERNAME, PROJECT));
	}
	
	@Test
	public void testIfAnyPassItPasses() throws Exception {
		final IProjectAuthorizer failsAuth = context.mock(IProjectAuthorizer.class, "failsAuth");