org.openi.project
Class ProjectTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openi.project.ProjectTest
All Implemented Interfaces:
junit.framework.Test

public class ProjectTest
extends junit.framework.TestCase

Author:
plucas TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
static java.lang.String STD_PROJECT_NAME
           
 
Constructor Summary
ProjectTest(java.lang.String arg0)
          Constructor for ProjectTest.
 
Method Summary
static void main(java.lang.String[] args)
           
 void SaveNewMenu()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testApplicationRestore()
           
 void testBuildMenu()
          need to also test building two menu's in a row
 void testCreateMenu()
           
 void testCreateProjectContext()
           
 void testDataSource()
           
 void testDeleteAnalysis()
           
 void testGetContentType()
           
 void testListProjects()
           
 void testNewProject()
           
 void testOldProjectToNewFormat()
           
 void testProjectByCategory()
           
 void testProjectXmlMissing()
           
 void testRestoreAnalysis()
           
 void testRestoreStandardProjectFile()
           
 void testSaveAnalysis()
           
 void testSaveProjectViaBean()
           
 void testZipFile()
           
 void testZipWithoutPermission()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STD_PROJECT_NAME

public static final java.lang.String STD_PROJECT_NAME
See Also:
Constant Field Values
Constructor Detail

ProjectTest

public ProjectTest(java.lang.String arg0)
Constructor for ProjectTest.

Parameters:
arg0 -
Method Detail

main

public static void main(java.lang.String[] args)

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testSaveProjectViaBean

public void testSaveProjectViaBean()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testRestoreStandardProjectFile

public void testRestoreStandardProjectFile()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testCreateProjectContext

public void testCreateProjectContext()

testCreateMenu

public void testCreateMenu()
                    throws java.io.IOException
Throws:
java.io.IOException

testSaveAnalysis

public void testSaveAnalysis()
                      throws java.io.IOException
Throws:
java.io.IOException

testDataSource

public void testDataSource()
                    throws java.io.IOException
Throws:
java.io.IOException

testRestoreAnalysis

public void testRestoreAnalysis()
                         throws java.io.IOException
Throws:
java.io.IOException

testDeleteAnalysis

public void testDeleteAnalysis()
                        throws java.io.IOException
Throws:
java.io.IOException

testListProjects

public void testListProjects()
                      throws java.io.IOException
Throws:
java.io.IOException

testProjectByCategory

public void testProjectByCategory()
                           throws java.io.IOException
Throws:
java.io.IOException

testProjectXmlMissing

public void testProjectXmlMissing()

testNewProject

public void testNewProject()
                    throws java.io.IOException
Throws:
java.io.IOException

testOldProjectToNewFormat

public void testOldProjectToNewFormat()
                               throws java.io.IOException
Throws:
java.io.IOException

testApplicationRestore

public void testApplicationRestore()
                            throws java.io.IOException
Throws:
java.io.IOException

testBuildMenu

public void testBuildMenu()
                   throws java.io.IOException
need to also test building two menu's in a row

Throws:
java.io.IOException

SaveNewMenu

public void SaveNewMenu()
                 throws java.io.IOException
Throws:
java.io.IOException

testZipFile

public void testZipFile()
                 throws java.io.IOException
Throws:
java.io.IOException

testGetContentType

public void testGetContentType()

testZipWithoutPermission

public void testZipWithoutPermission()
                              throws java.io.IOException
Throws:
java.io.IOException