org.apache.maven.plugin.eclipse.reader
Class ReadWorkspaceLocationsTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.maven.plugin.eclipse.reader.ReadWorkspaceLocationsTest
All Implemented Interfaces:
Test

public class ReadWorkspaceLocationsTest
extends TestCase

Version:
$Id: ReadWorkspaceLocationsTest.java 798342 2009-07-28 00:17:00Z aheritier $
Author:
Barrie Treloar

Constructor Summary
ReadWorkspaceLocationsTest()
           
 
Method Summary
protected  void setUp()
          
 void testGetProjectLocation_ForProjectAtWorkspaceLevel()
          Project's at the workspace level do not have a .location file.
 void testGetProjectLocation_ForProjectsOutsideWorkspace()
          Project's located other than at the workspace level have a .location file.
 void testGetProjectLocation_ForProjectsWithinProjects()
          Project's located other than at the workspace level have a .location file.
 void testReadDefinedServers_PrefsFileDoesNotExist()
           
 void testReadDefinedServers_PrefsFileExistsWithMissingRuntimes()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

ReadWorkspaceLocationsTest

public ReadWorkspaceLocationsTest()
Method Detail

setUp

protected void setUp()
              throws Exception

Overrides:
setUp in class TestCase
Throws:
Exception

testGetProjectLocation_ForProjectAtWorkspaceLevel

public void testGetProjectLocation_ForProjectAtWorkspaceLevel()
                                                       throws Exception
Project's at the workspace level do not have a .location file.

Therefore their project location is directly under the workspace.

Throws:
Exception

testGetProjectLocation_ForProjectsWithinProjects

public void testGetProjectLocation_ForProjectsWithinProjects()
                                                      throws Exception
Project's located other than at the workspace level have a .location file.

This URI specifies the fully qualified path to the project. Which may be located outside of the workspace as well.

Throws:
Exception

testGetProjectLocation_ForProjectsOutsideWorkspace

public void testGetProjectLocation_ForProjectsOutsideWorkspace()
                                                        throws Exception
Project's located other than at the workspace level have a .location file.

This URI specifies the fully qualified path to the project. Which may be located outside of the workspace as well.

Throws:
Exception

testReadDefinedServers_PrefsFileDoesNotExist

public void testReadDefinedServers_PrefsFileDoesNotExist()
                                                  throws Exception
Throws:
Exception

testReadDefinedServers_PrefsFileExistsWithMissingRuntimes

public void testReadDefinedServers_PrefsFileExistsWithMissingRuntimes()
                                                               throws Exception
Throws:
Exception


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.