JUnitLaunchConfigDelegateTestpublic class JUnitLaunchConfigDelegateTest extends TestCase
Methods Summary |
---|
private void | assertEqualsArrays(java.lang.String[][] a1, java.lang.String[][] a2)
assertTrue(Arrays.deepEquals(a1, a2));
| private void | assertEqualsArrays(java.lang.String[] a1, java.lang.String[] a2)
assertTrue(Arrays.deepEquals(a1, a2));
| public void | testAbleToFetchJunitJar()
assertTrue(JUnitLaunchConfigDelegate.getJunitJarLocation().endsWith("junit.jar"));
| public void | testFixBootpathExtWithAndroidJar()
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 void | testFixBootpathExtWithNoAndroidJar()
String[][] testArray = {
null,
{ "somejar.jar"},
null,
};
String[][] expectedArray = {
null,
{ "somejar.jar"},
null,
};
assertEqualsArrays(expectedArray, JUnitLaunchConfigDelegate.fixBootpathExt(testArray));
| public void | testFixClasspathWithJunitJar()
String[] testArray = {
JUnitLaunchConfigDelegate.getJunitJarLocation(),
};
String[] expectedArray = {
JUnitLaunchConfigDelegate.getJunitJarLocation(),
};
assertEqualsArrays(expectedArray,
JUnitLaunchConfigDelegate.fixClasspath(testArray, "test"));
| public void | testFixClasspathWithNoJars()
String[] testArray = {
};
String[] expectedArray = {
JUnitLaunchConfigDelegate.getJunitJarLocation(),
};
assertEqualsArrays(expectedArray,
JUnitLaunchConfigDelegate.fixClasspath(testArray, "test"));
| public void | testFixClasspathWithoutJunitJar()
String[] testArray = {
"random.jar",
};
String[] expectedArray = {
"random.jar",
JUnitLaunchConfigDelegate.getJunitJarLocation(),
};
assertEqualsArrays(expectedArray,
JUnitLaunchConfigDelegate.fixClasspath(testArray, "test"));
|
|