net.sourceforge.swimp.test.util
Class SwimpBaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.swimp.test.util.SwimpBaseTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
AbstractTestCoinPackedVectorBase, AbstractTestOsiSolverInterface, AllSwimpTests, OsiLPFromMpsFileFixture, TestCoinPackedMatrix

public abstract class SwimpBaseTestCase
extends junit.framework.TestCase

Base class for all test cases in the swIMP-project. Use this base class to give utility methods a home.

Author:
schickin

Field Summary
protected static java.lang.String tmpFilePrefix
           
protected static java.lang.String tmpFileSuffix
           
 
Constructor Summary
SwimpBaseTestCase()
           
SwimpBaseTestCase(java.lang.String arg0)
           
 
Method Summary
 java.util.Properties getSwimpProperties()
           
 java.lang.String getSwimpRootDir()
           
 java.io.File getTestDataFile(java.lang.String fileName)
          Return a file in the test data directory.
protected  void setUp()
           
protected  void tearDown()
           
 
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

tmpFilePrefix

protected static final java.lang.String tmpFilePrefix
See Also:
Constant Field Values

tmpFileSuffix

protected static final java.lang.String tmpFileSuffix
See Also:
Constant Field Values
Constructor Detail

SwimpBaseTestCase

public SwimpBaseTestCase()

SwimpBaseTestCase

public SwimpBaseTestCase(java.lang.String arg0)
Parameters:
arg0 -
Method Detail

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

getSwimpRootDir

public java.lang.String getSwimpRootDir()
Returns:
Returns the swimpRootDir.

getSwimpProperties

public java.util.Properties getSwimpProperties()
Returns:
Returns the swimpProperties.

getTestDataFile

public java.io.File getTestDataFile(java.lang.String fileName)
Return a file in the test data directory.

Parameters:
fileName - the filename of the test data file
Returns:
a Java File representation of the test data file