8 namespace Fossology\Lib\Data\Clearing;
 
   23   private $matchId = 1234;
 
   26   private $percentage = 95;
 
   29   private $agentClearingEvent;
 
   31   protected function setUp() : 
void 
   33     $this->licenseRef = M::mock(LicenseRef::class);
 
   34     $this->agentRef = M::mock(AgentRef::class);
 
   36     $this->agentClearingEvent = 
new AgentClearingEvent($this->licenseRef, $this->agentRef, $this->matchId, $this->percentage);
 
   39   protected function tearDown() : 
void 
   44   public function testGetMatchId()
 
   46     assertThat($this->agentClearingEvent->getMatchId(), is($this->matchId));
 
   49   public function testGetLicenseRef()
 
   51     assertThat($this->agentClearingEvent->getLicenseRef(), is($this->licenseRef));
 
   54   public function testGetLicenseId()
 
   57     $this->licenseRef->shouldReceive(
'getId')
 
   60       ->andReturn($licenseId);
 
   62     assertThat($this->agentClearingEvent->getLicenseId(), is($licenseId));
 
   65   public function testGetLicenseShortName()
 
   67     $licenseShortname = 
"<licenseShortname>";
 
   68     $this->licenseRef->shouldReceive(
'getShortName')
 
   71       ->andReturn($licenseShortname);
 
   73     assertThat($this->agentClearingEvent->getLicenseShortName(),
 
   74       is($licenseShortname));
 
   77   public function testGetLicenseFullName()
 
   79     $licenseFullName = 
"<licenseFullName>";
 
   80     $this->licenseRef->shouldReceive(
'getFullName')
 
   83       ->andReturn($licenseFullName);
 
   85     assertThat($this->agentClearingEvent->getLicenseFullName(),
 
   86       is($licenseFullName));
 
   89   public function testGetEventType()
 
   91     assertThat($this->agentClearingEvent->getEventType(),
 
   92       is(ClearingResult::AGENT_DECISION_TYPE));
 
   95   public function testGetComment()
 
   97     assertThat($this->agentClearingEvent->getComment(), is(
""));
 
  100   public function testGetReportinfo()
 
  102     assertThat($this->agentClearingEvent->getReportinfo(), is(
""));
 
  105   public function testGetAcknowledgement()
 
  107     assertThat($this->agentClearingEvent->getAcknowledgement(), is(
""));
 
  110   public function testIsRemoved()
 
  112     assertThat($this->agentClearingEvent->isRemoved(), is(
false));
 
  115   public function testGetAgentRef()
 
  117     assertThat($this->agentClearingEvent->getAgentRef(), is($this->agentRef));
 
  120   public function testGetAgentId()
 
  123     $this->agentRef->shouldReceive(
'getAgentId')
 
  126       ->andReturn($agentId);
 
  128     assertThat($this->agentClearingEvent->getAgentId(), is($agentId));
 
  131   public function testGetAgentName()
 
  133     $agentName = 
"<agentName>";
 
  134     $this->agentRef->shouldReceive(
'getAgentName')
 
  137       ->andReturn($agentName);
 
  139     assertThat($this->agentClearingEvent->getAgentName(), is($agentName));
 
  142   public function testGetPercentage()
 
  144     assertThat($this->agentClearingEvent->getPercentage(), is($this->percentage));