MPXJ: Microsoft Project Exchange

net.sf.mpxj.junit
Class MppTaskTest

java.lang.Object
  extended by TestCase
      extended by net.sf.mpxj.junit.MPXJTestCase
          extended by net.sf.mpxj.junit.MppTaskTest

public class MppTaskTest
extends MPXJTestCase

Tests to exercise MPP file read functionality for various versions of MPP file.


Field Summary
 
Fields inherited from class net.sf.mpxj.junit.MPXJTestCase
m_basedir, m_ikvm
 
Constructor Summary
MppTaskTest()
           
 
Method Summary
 void testBasicTask(ProjectFile mpp)
          Tests dozens of basic fields of a Task.
 void testMpd9Baseline()
          Test task data read from an MPD9 file.
 void testMpd9Relations()
          Tests Relations in an MPD9 file.
 void testMpd9Splits()
          Test Split Tasks in an MPD9 file.
 void testMpd9Task()
          Test task data read from an MPD9 file.
 void testMpp12Baseline()
          Test task data read from an MPP12 file.
 void testMpp12BaselineFrom14()
          Test task data read from an MPP12 file saved by Project 2010.
 void testMpp12Relations()
          Tests Relations in an MPP12 file.
 void testMpp12RelationsFrom14()
          Tests Relations in an MPP12 file saved by Project 2010.
 void testMpp12Splits()
          Test Split Tasks in an MPP12 file.
 void testMpp12SplitsFrom14()
          Test Split Tasks in an MPP12 file saved by Project 2010.
 void testMpp12Task()
          Test task data read from an MPP12 file.
 void testMpp12TaskFrom14()
          Test task data read from an MPP12 file saved by Project 2010.
 void testMpp14Baseline()
          Test task data read from an MPP14 file.
 void testMpp14Relations()
          Tests Relations in an MPP14 file.
 void testMpp14Splits()
          Test Split Tasks in an MPP14 file.
 void testMpp14Task()
          Test task data read from an MPP14 file.
 void testMpp14TaskFromProject2013()
          Test task data read from an MPP14 file.
 void testMpp9Baseline()
          Test task data read from an MPP9 file.
 void testMpp9BaselineFrom12()
          Test task data read from an MPP9 file saved from Project 2007.
 void testMpp9BaselineFrom14()
          Test task data read from an MPP9 file saved from Project 2010.
 void testMpp9Relations()
          Tests Relations in an MPP9 file.
 void testMpp9RelationsFrom12()
          Tests Relations in an MPP9 file saved by Project 2007.
 void testMpp9RelationsFrom14()
          Tests Relations in an MPP9 file saved by Project 2010.
 void testMpp9Splits()
          Test Split Tasks in an MPP9 file.
 void testMpp9SplitsFrom12()
          Test Split Tasks in an MPP9 file saved by Project 2007.
 void testMpp9SplitsFrom14()
          Test Split Tasks in an MPP9 file saved by Project 2010.
 void testMpp9Task()
          Test task data read from an MPP9 file.
 void testMpp9TaskFrom12()
          Test task data read from an MPP9 file saved by Project 2007.
 void testMpp9TaskFrom14()
          Test task data read from an MPP9 file saved by Project 2010.
 void testMspdiRelations()
          Tests Relations in an MSPDI file.
 void testMspdiSplits()
          Test Split Tasks in an MSPDI file.
 
Methods inherited from class net.sf.mpxj.junit.MPXJTestCase
assertEquals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MppTaskTest

public MppTaskTest()
Method Detail

testMpp9Task

public void testMpp9Task()
                  throws java.lang.Exception
Test task data read from an MPP9 file.

Throws:
java.lang.Exception

testMpp9TaskFrom12

public void testMpp9TaskFrom12()
                        throws java.lang.Exception
Test task data read from an MPP9 file saved by Project 2007.

Throws:
java.lang.Exception

testMpp9TaskFrom14

public void testMpp9TaskFrom14()
                        throws java.lang.Exception
Test task data read from an MPP9 file saved by Project 2010.

Throws:
java.lang.Exception

testMpp12Task

public void testMpp12Task()
                   throws java.lang.Exception
Test task data read from an MPP12 file.

Throws:
java.lang.Exception

testMpp12TaskFrom14

public void testMpp12TaskFrom14()
                         throws java.lang.Exception
Test task data read from an MPP12 file saved by Project 2010.

Throws:
java.lang.Exception

testMpp14Task

public void testMpp14Task()
                   throws java.lang.Exception
Test task data read from an MPP14 file.

Throws:
java.lang.Exception

testMpp14TaskFromProject2013

public void testMpp14TaskFromProject2013()
                                  throws java.lang.Exception
Test task data read from an MPP14 file.

Throws:
java.lang.Exception

testMpd9Task

public void testMpd9Task()
                  throws java.lang.Exception
Test task data read from an MPD9 file.

Throws:
java.lang.Exception

testMpp9Baseline

public void testMpp9Baseline()
                      throws java.lang.Exception
Test task data read from an MPP9 file.

Throws:
java.lang.Exception

testMpp9BaselineFrom12

public void testMpp9BaselineFrom12()
                            throws java.lang.Exception
Test task data read from an MPP9 file saved from Project 2007.

Throws:
java.lang.Exception

testMpp9BaselineFrom14

public void testMpp9BaselineFrom14()
                            throws java.lang.Exception
Test task data read from an MPP9 file saved from Project 2010.

Throws:
java.lang.Exception

testMpp12Baseline

public void testMpp12Baseline()
                       throws java.lang.Exception
Test task data read from an MPP12 file.

Throws:
java.lang.Exception

testMpp12BaselineFrom14

public void testMpp12BaselineFrom14()
                             throws java.lang.Exception
Test task data read from an MPP12 file saved by Project 2010.

Throws:
java.lang.Exception

testMpp14Baseline

public void testMpp14Baseline()
                       throws java.lang.Exception
Test task data read from an MPP14 file.

Throws:
java.lang.Exception

testMpd9Baseline

public void testMpd9Baseline()
                      throws java.lang.Exception
Test task data read from an MPD9 file.

Throws:
java.lang.Exception

testMpp9Splits

public void testMpp9Splits()
                    throws java.lang.Exception
Test Split Tasks in an MPP9 file.

Throws:
java.lang.Exception

testMpp9SplitsFrom12

public void testMpp9SplitsFrom12()
                          throws java.lang.Exception
Test Split Tasks in an MPP9 file saved by Project 2007.

Throws:
java.lang.Exception

testMpp9SplitsFrom14

public void testMpp9SplitsFrom14()
                          throws java.lang.Exception
Test Split Tasks in an MPP9 file saved by Project 2010.

Throws:
java.lang.Exception

testMpp12Splits

public void testMpp12Splits()
                     throws java.lang.Exception
Test Split Tasks in an MPP12 file.

Throws:
java.lang.Exception

testMpp12SplitsFrom14

public void testMpp12SplitsFrom14()
                           throws java.lang.Exception
Test Split Tasks in an MPP12 file saved by Project 2010.

Throws:
java.lang.Exception

testMpp14Splits

public void testMpp14Splits()
                     throws java.lang.Exception
Test Split Tasks in an MPP14 file.

Throws:
java.lang.Exception

testMspdiSplits

public void testMspdiSplits()
                     throws java.lang.Exception
Test Split Tasks in an MSPDI file.

Throws:
java.lang.Exception

testMpd9Splits

public void testMpd9Splits()
                    throws java.lang.Exception
Test Split Tasks in an MPD9 file. Currently split tasks are not supported in MPD files.

Throws:
java.lang.Exception

testMpp9Relations

public void testMpp9Relations()
                       throws java.lang.Exception
Tests Relations in an MPP9 file.

Throws:
java.lang.Exception

testMpp9RelationsFrom12

public void testMpp9RelationsFrom12()
                             throws java.lang.Exception
Tests Relations in an MPP9 file saved by Project 2007.

Throws:
java.lang.Exception

testMpp9RelationsFrom14

public void testMpp9RelationsFrom14()
                             throws java.lang.Exception
Tests Relations in an MPP9 file saved by Project 2010.

Throws:
java.lang.Exception

testMpd9Relations

public void testMpd9Relations()
                       throws java.lang.Exception
Tests Relations in an MPD9 file.

Throws:
java.lang.Exception

testMpp12Relations

public void testMpp12Relations()
                        throws java.lang.Exception
Tests Relations in an MPP12 file.

Throws:
java.lang.Exception

testMpp12RelationsFrom14

public void testMpp12RelationsFrom14()
                              throws java.lang.Exception
Tests Relations in an MPP12 file saved by Project 2010.

Throws:
java.lang.Exception

testMpp14Relations

public void testMpp14Relations()
                        throws java.lang.Exception
Tests Relations in an MPP14 file.

Throws:
java.lang.Exception

testMspdiRelations

public void testMspdiRelations()
                        throws java.lang.Exception
Tests Relations in an MSPDI file.

Throws:
java.lang.Exception

testBasicTask

public void testBasicTask(ProjectFile mpp)
                   throws java.lang.Exception
Tests dozens of basic fields of a Task.

Parameters:
mpp - The ProjectFile being tested.
Throws:
java.lang.Exception -

Columns not tested:

Overtime Cost, Remaining Overtime Cost, Actual Overtime Cost
Overtime Work, Remaining Overtime Work, Actual Overtime Work
Actual Start
Actual Finish
Baseline Cost
Baseline Start
Baseline Finish
Baseline Duration
Baseline Work
Confirmed (??? - don't know how to make this field 'Yes' in Project)
Cost Rate Table (calculated in Project)
Critical (Calculated in Steelray)
Estimated (test in another method)
External Task
Group By Summary
Hyperlink Subaddress
Linked Fields
Outline Code1-10
Objects
Overallocated
Preleveled Start
Preleveled Finish
Recurring
Resource Phonetics
Resource Type
Response Pending
Subproject File
Subproject Read Only
Predecessors
Summary
Task Calendar
Team Status Pending
Type
Unique ID Predecessors, Unique ID Succeessors
Update Needed
WBS Predecessors, WBS Succeessors
Work Contour


Fields that are not supported in the MPP9 format (usually return null or false)

AWCP
BCWP
BCWS
CV
Hyperlink Href
Project
Regular Work
Resource Group
Resource Initials
Resource Names
Successors
SV
VAC


Copyright © 2000-2014 Packwood Software. All Rights Reserved.