org.systemsbiology.gaggle.experiment.repository.unitTests
Class ExperimentRepositoryTest

java.lang.Object
  extended by TestCase
      extended by org.systemsbiology.gaggle.experiment.repository.unitTests.ExperimentRepositoryTest

public class ExperimentRepositoryTest
extends TestCase


Constructor Summary
ExperimentRepositoryTest()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void notestSingleFileAsRepository()
           
 void notestWebDirectRepository()
           
 void notestWebIndirectRepositoryWithExplicitIncorrectPassword()
           
 void notestWebIndirectRepositoryWithExplicitUserPassword()
           
 void notestWebIndirectRepositoryWithUserPasswordFromPropsFile()
          a file 'gaggle.props' must provide user and password.
 void testDirectoryRepository()
           
 void testExtractFilenamesFromWebPage()
          apache and tomcat render directory listings differently.
 void testHttpDirectDirectoryRepository()
           
 void testHttpDirectExplicitXmlFileRepository()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExperimentRepositoryTest

public ExperimentRepositoryTest()
Method Detail

testExtractFilenamesFromWebPage

public void testExtractFilenamesFromWebPage()
                                     throws java.lang.Exception
apache and tomcat render directory listings differently. this test make sure that the parsing class, HttpdirectRepository.getExperimentNames (), can handle both equally well.

Throws:
java.lang.Exception

testDirectoryRepository

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

testHttpDirectExplicitXmlFileRepository

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

testHttpDirectDirectoryRepository

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

notestSingleFileAsRepository

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

notestWebDirectRepository

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

notestWebIndirectRepositoryWithUserPasswordFromPropsFile

public void notestWebIndirectRepositoryWithUserPasswordFromPropsFile()
                                                              throws java.lang.Exception
a file 'gaggle.props' must provide user and password. this file may be in the current working directory, or in the user's home directory. for this test, these values are used: user=tester0 password=pw0 these match user and password info found in two files in the repository: db.unitTests> grep sample ~/halo/data/.permissions sample: tester0 db.unitTests> grep tester0 ~/halo/data/.passwd tester0: pw0

Throws:
java.lang.Exception

notestWebIndirectRepositoryWithExplicitIncorrectPassword

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

notestWebIndirectRepositoryWithExplicitUserPassword

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

main

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