FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\BusinessRules\ClearingDecisionProcessorTest Class Reference
Inheritance diagram for Fossology\Lib\BusinessRules\ClearingDecisionProcessorTest:
Inheritance graph
Collaboration diagram for Fossology\Lib\BusinessRules\ClearingDecisionProcessorTest:
Collaboration graph

Public Member Functions

 testMakeDecisionFromLastEvents ()
 
 testMakeDecisionFromLastEventsWithNoLicenseKnownTypeShouldNotCreateANewDecisionWhenNoLicensesShouldBeRemoved ()
 
 testMakeDecisionFromLastEventsWithNoLicenseKnownTypeShouldNotCreateANewDecisionWhenNoLicensesShouldBeRemovedAndTheScopeDoesNotChange ()
 
 testMakeDecisionFromLastEventsWithNoLicenseKnownType ()
 
 testMakeDecisionFromLastEventsWithInvalidType ()
 
 testGetCurrentClearingsWithoutDecisions ()
 

Public Attributes

const MATCH_ID = 231
 
const PERCENTAGE = 315
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 createScannerDetectedLicenses ($licenseId=13, $licenseShortname="licA", $licenseFullName="License-A")
 

Private Member Functions

 createClearingEvent ($eventId, $timestamp, $licenseId, $licenseShortName, $licenseFullName, $eventType=ClearingEventTypes::USER, $isRemoved=false, $reportInfo="<reportInfo>", $comment="<comment>")
 

Private Attributes

 $uploadTreeId
 
 $userId
 
 $groupId
 
 $agentLicenseEventProcessor
 
 $dbManager
 
 $clearingDao
 
 $itemTreeBounds
 
 $clearingDecisionProcessor
 
 $clearingEventProcessor
 
 $timestamp
 
 $includeSubFolders
 

Detailed Description

Definition at line 30 of file ClearingDecisionProcessorTest.php.

Member Function Documentation

◆ createClearingEvent()

Fossology\Lib\BusinessRules\ClearingDecisionProcessorTest::createClearingEvent (   $eventId,
  $timestamp,
  $licenseId,
  $licenseShortName,
  $licenseFullName,
  $eventType = ClearingEventTypes::USER,
  $isRemoved = false,
  $reportInfo = "<reportInfo>",
  $comment = "<comment>" 
)
private
Parameters
$eventId
$timestamp
$licenseId
$licenseShortName
$licenseFullName
int$eventType
bool$isRemoved
string$reportInfo
string$comment
Returns
ClearingEvent

Definition at line 520 of file ClearingDecisionProcessorTest.php.

◆ createScannerDetectedLicenses()

Fossology\Lib\BusinessRules\ClearingDecisionProcessorTest::createScannerDetectedLicenses (   $licenseId = 13,
  $licenseShortname = "licA",
  $licenseFullName = "License-A" 
)
protected
Returns
array

Definition at line 530 of file ClearingDecisionProcessorTest.php.


The documentation for this class was generated from the following file: