|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
prantl.ant.eclipse.EclipseTaskTest
public class EclipseTaskTest
Test fixture with unit test cases for the class EclipseTask.
EclipseTask
Constructor Summary | |
---|---|
EclipseTaskTest()
Creates a new instance of the test fixture. |
Method Summary | |
---|---|
static java.lang.String |
join(java.lang.String[] input,
java.lang.String delimiter)
Splits the input array into a string using the specified delimiter. |
static java.lang.String[] |
split(java.lang.String input,
java.lang.String delimiter)
Splits the input string into an array of strings using the specified delimiter. |
void |
testExecuteWithEmptyEclipseElement()
Tests executing the task with the following configuration: <eclipse /> |
void |
testExecuteWithEmptyProjectElement()
Tests executing the task with the following configuration: <eclipse> <project /> </eclipse> |
void |
testExecuteWithProjectElementWithName()
Tests executing the task with the following configuration: <eclipse> <project /> </eclipse> |
void |
testExecuteWithSettingsElementWithVersionAndEncoding()
Tests executing the task with the following configuration: <eclipse> <settings> <resources version="2" encoding="UTF-8" /> </settings> </eclipse> |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EclipseTaskTest()
Method Detail |
---|
public void testExecuteWithEmptyEclipseElement() throws java.lang.Exception
<eclipse />
java.lang.Exception
- If the task execution fails.public void testExecuteWithSettingsElementWithVersionAndEncoding() throws java.lang.Exception
<eclipse> <settings> <resources version="2" encoding="UTF-8" /> </settings> </eclipse>
java.lang.Exception
- If the task execution fails.public void testExecuteWithEmptyProjectElement() throws java.lang.Exception
<eclipse> <project /> </eclipse>
java.lang.Exception
- If the task execution fails.public void testExecuteWithProjectElementWithName() throws java.lang.Exception
<eclipse> <project /> </eclipse>
java.lang.Exception
- If the task execution fails.public static java.lang.String[] split(java.lang.String input, java.lang.String delimiter)
input
- The input string to be splitted.delimiter
- The delimiting token.
java.lang.NullPointerException
- If some of the input parameters are null.public static java.lang.String join(java.lang.String[] input, java.lang.String delimiter)
input
- The input array to be joined.delimiter
- The delimiting token.
java.lang.NullPointerException
- If some of the input parameters are null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |