FOSSology
4.4.0
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 29 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 220 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 253 of file schedulerTest.php.
OjoScheduledTest::regressionTest | ( | ) |
Run a regression test for OJO.
Definition at line 353 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 196 of file schedulerTest.php.
|
protected |
Setup the test cases and initialize the objects.
Definition at line 73 of file schedulerTest.php.
|
protected |
Destruct the objects initialized during setUp()
Definition at line 95 of file schedulerTest.php.
OjoScheduledTest::testCli | ( | ) |
Run the test for CLI.
Definition at line 320 of file schedulerTest.php.
OjoScheduledTest::testRun | ( | ) |
Run the test.
Definition at line 267 of file schedulerTest.php.