FileDocCategorySizeDatePackage
JUnitLaunchConfigDelegateTest.javaAPI DocAndroid 1.5 API3399Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.launch

JUnitLaunchConfigDelegateTest

public class JUnitLaunchConfigDelegateTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
private voidassertEqualsArrays(java.lang.String[][] a1, java.lang.String[][] a2)

        assertTrue(Arrays.deepEquals(a1, a2));        
    
private voidassertEqualsArrays(java.lang.String[] a1, java.lang.String[] a2)

        assertTrue(Arrays.deepEquals(a1, a2));        
    
public voidtestAbleToFetchJunitJar()

        assertTrue(JUnitLaunchConfigDelegate.getJunitJarLocation().endsWith("junit.jar"));
    
public voidtestFixBootpathExtWithAndroidJar()

        String[][] testArray = {
                null,
                { "android.jar"},
                null,
                { "some_other_jar.jar" },
        };
        
        String[][] expectedArray = {
                null,
                null,
                null,
                { "some_other_jar.jar" },
        };
        
       assertEqualsArrays(expectedArray, JUnitLaunchConfigDelegate.fixBootpathExt(testArray));
    
public voidtestFixBootpathExtWithNoAndroidJar()

        String[][] testArray = {
                null,
                { "somejar.jar"},
                null,
        };
        
        String[][] expectedArray = {
                null,
                { "somejar.jar"},
                null,
        };
        
        assertEqualsArrays(expectedArray, JUnitLaunchConfigDelegate.fixBootpathExt(testArray));
    
public voidtestFixClasspathWithJunitJar()

        String[] testArray = {
                JUnitLaunchConfigDelegate.getJunitJarLocation(),
        };
        
        String[] expectedArray = {
                JUnitLaunchConfigDelegate.getJunitJarLocation(),
        };
        
        assertEqualsArrays(expectedArray, 
                JUnitLaunchConfigDelegate.fixClasspath(testArray, "test"));
    
public voidtestFixClasspathWithNoJars()

        String[] testArray = {
        };
        
        String[] expectedArray = {
                JUnitLaunchConfigDelegate.getJunitJarLocation(),
        };
        
        assertEqualsArrays(expectedArray, 
                JUnitLaunchConfigDelegate.fixClasspath(testArray, "test"));
    
public voidtestFixClasspathWithoutJunitJar()

        String[] testArray = {
                "random.jar",
        };
        
        String[] expectedArray = {
                "random.jar",
                JUnitLaunchConfigDelegate.getJunitJarLocation(),
        };
        
        assertEqualsArrays(expectedArray, 
                JUnitLaunchConfigDelegate.fixClasspath(testArray, "test"));