|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.maven.plugin.ide.IdeUtilsTest
public class IdeUtilsTest
Test for IdeUtils
Constructor Summary | |
---|---|
IdeUtilsTest()
|
Method Summary | |
---|---|
void |
testGetProjectNameStringIdeDependency()
|
void |
testToRelativeAndFixSeparator_MECLIPSE_261()
See MECLIPSE-261. |
void |
testToRelativeAndFixSeparator_WhereOnDifferentDrivesAndAbsolutePaths()
When the file to add is on a different drive and an absolute path expect that the returned value is the same as the file to add (but with /s) |
void |
testToRelativeAndFixSeparator_WhereOnDifferentDrivesAndFileToAddRelative()
When the file to add is a relative file then expect the result to be relative to the basedir (not whatever the current processes basedir is set to) |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IdeUtilsTest()
Method Detail |
---|
public void testGetProjectNameStringIdeDependency()
public void testToRelativeAndFixSeparator_WhereOnDifferentDrivesAndAbsolutePaths() throws java.lang.Exception
java.lang.Exception
public void testToRelativeAndFixSeparator_WhereOnDifferentDrivesAndFileToAddRelative() throws java.lang.Exception
java.lang.Exception
public void testToRelativeAndFixSeparator_MECLIPSE_261() throws java.lang.Exception
When the base dir is a windows root directory the assumption that the full path to fileToAdd is basedir + "/" + fileToAdd is incorrect.
As the canonical form of a windows root dir ends in a slash, whereas the canonical form of any other file does not.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |