![]()  | 
  
    FOSSology
    3.2.0rc1
    
   Open Source License Compliance by Open Source Software 
   | 
 
Functional test cases for ojo agent using scheduler. More...


Public Member Functions | |
| testRun () | |
| Run the test.  More... | |
| testCli () | |
| Run the test for CLI.  More... | |
| regressionTest () | |
| Run a regression test for OJO.  More... | |
Protected Member Functions | |
| setUp () | |
| Setup the test cases and initialize the objects.  More... | |
| tearDown () | |
| Destruct the objects initialized during setUp()  More... | |
Private Member Functions | |
| setUpRepo () | |
| Setup test repo mimicking install.  | |
| rmRepo () | |
| Remove the test repo.  | |
| setUpTables () | |
| Setup tables required by copyright agent.  | |
| resultArrayContainsLicense ($resultArray, $licenseName) | |
| compareMatches ($left, $right) | |
| Compare two matches from OJO (slow)  More... | |
| compareMatchesFiles ($left, $right) | |
Private Attributes | |
| $testDb | |
| $dbManager | |
| $licenseDao | |
| $testInstaller | |
| $uploadDao | |
| $uploadPermDao | |
| $cliRunner | |
| $schedulerRunner | |
| $regressionFile | |
Functional test cases for ojo agent using scheduler.
Definition at line 37 of file schedulerTest.php.
      
  | 
  private | 
Compare two matches from OJO (slow)
The comparision algorithm is as follows:
| array | $left | Left match | 
| array | $right | Right match | 
Definition at line 221 of file schedulerTest.php.
      
  | 
  private | 
Compare two matches based on file name only (fast).
| array | $left | Left match | 
| array | $right | Right match | 
Definition at line 252 of file schedulerTest.php.
| OjoScheduledTest::regressionTest | ( | ) | 
Run a regression test for OJO.
Definition at line 352 of file schedulerTest.php.
      
  | 
  private | 
Check if the result array from ojo contains given license.
| array | $resultArray | Result array of a match | 
| string | $licenseName | License to search | 
Definition at line 197 of file schedulerTest.php.
      
  | 
  protected | 
Setup the test cases and initialize the objects.
Definition at line 81 of file schedulerTest.php.
      
  | 
  protected | 
Destruct the objects initialized during setUp()
Definition at line 103 of file schedulerTest.php.
| OjoScheduledTest::testCli | ( | ) | 
Run the test for CLI.
Definition at line 319 of file schedulerTest.php.
| OjoScheduledTest::testRun | ( | ) | 
Run the test.
Definition at line 266 of file schedulerTest.php.