// Path: src/main/java/com/asolutions/scmsshd/sshd/UnparsableProjectException.java
// public class UnparsableProjectException extends Exception {
// 
// 	private static final long serialVersionUID = 643951700141491862L;
// 
// 	public UnparsableProjectException(String reason) {
// 		super(reason);
// 	}
// 
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.Test;
import com.asolutions.scmsshd.sshd.UnparsableProjectException;
package com.asolutions.asynchrony.customizations;




public class AsynchronyPathToProjectNameConverterTest {

	@Test
	public void testProjectGetter() throws Exception {
		assertEquals("proj-2", new AsynchronyPathToProjectNameConverter().convert("'/proj-2/git.git'"));
	}
	
	@Test
	public void testGetterThrowsUnparsableExceptionOnBadUrl() throws Exception {
		try{
			new AsynchronyPathToProjectNameConverter().convert("blork");
			fail("Didn't Throw");
		}
// Path: src/main/java/com/asolutions/scmsshd/sshd/UnparsableProjectException.java
// public class UnparsableProjectException extends Exception {
// 
// 	private static final long serialVersionUID = 643951700141491862L;
// 
// 	public UnparsableProjectException(String reason) {
// 		super(reason);
// 	}
// 
// }


// Path: src/test/java/com/asolutions/asynchrony/customizations/AsynchronyPathToProjectNameConverterTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.Test;
import com.asolutions.scmsshd.sshd.UnparsableProjectException;

package com.asolutions.asynchrony.customizations;




public class AsynchronyPathToProjectNameConverterTest {

	@Test
	public void testProjectGetter() throws Exception {
		assertEquals("proj-2", new AsynchronyPathToProjectNameConverter().convert("'/proj-2/git.git'"));
	}
	
	@Test
	public void testGetterThrowsUnparsableExceptionOnBadUrl() throws Exception {
		try{
			new AsynchronyPathToProjectNameConverter().convert("blork");
			fail("Didn't Throw");
		}
		catch (UnparsableProjectException e){