Class Scenario: an agent can 'befriend' another agent existing in the network

8

tests

0

failures

0

ignored

17.516s

duration

100%

successful

Tests

Test Duration Result
And Agent "AgentTwo" is created on the OfferNet 0s passed
And there is no "knows" link between "AgentOne" and "AgentTwo" 0.001s passed
And there is no "knows" link between "AgentTwo" and "AgentOne" 0s passed
And there is no "knows" link between "AgentTwo" and "AgentOne" 0s passed
Given Agent "AgentOne" is created on the OfferNet 0s passed
Then there is "knows" link between "AgentOne" and "AgentTwo" 0s passed
When Agent "AgentOne" befriends Agent "AgentTwo" 0s passed
classMethod 17.515s passed

Standard output

  #@ignore
  @indoc
  Scenario: an agent can introduce a new agent to the network by 'befriending' it ?[90m# AgentBehavior.feature:7?[0m
    The only way for the OfferNet to grow in a decentralized manner (i.e. without central controlling repository) is for new agents to get introduced to the network via old agent's recommendation.

    ?[32mGiven ?[0m?[32mAgent "?[0m?[32m?[1mAgentOne?[0m?[32m" is created on the OfferNet?[0m                             ?[90m# AgentBehaviorStepDefs.agentIsCreatedOnTheOfferNet(String)?[0m
    ?[32mAnd ?[0m?[32mAgent "?[0m?[32m?[1mAgentTwo?[0m?[32m" does not exist on the OfferNet?[0m                           ?[90m# AgentBehaviorStepDefs.agentDoesNotExistOnTheOfferNet(String)?[0m
    ?[32mWhen ?[0m?[32mAgent "?[0m?[32m?[1mAgentOne?[0m?[32m" befriends Agent "?[0m?[32m?[1mAgentTwo?[0m?[32m"?[0m                              ?[90m# AgentBehaviorStepDefs.agentBefriendsAgent(String,String)?[0m
    ?[32mThen ?[0m?[32mAgent "?[0m?[32m?[1mAgentTwo?[0m?[32m" exists on the OfferNet?[0m                                  ?[90m# AgentBehaviorStepDefs.agentExistsOnTheOfferNet(String)?[0m
    ?[32mThen ?[0m?[32mthere is "?[0m?[32m?[1mknows?[0m?[32m" link between "?[0m?[32m?[1mAgentOne?[0m?[32m" and "?[0m?[32m?[1mAgentTwo?[0m?[32m"?[0m                  ?[90m# AgentBehaviorStepDefs.thereIsLinkBetweenAnd(String,String,String)?[0m
    ?[32mAnd ?[0m?[32mthere is no "?[0m?[32m?[1mknows?[0m?[32m" link between "?[0m?[32m?[1mAgentTwo?[0m?[32m" and "?[0m?[32m?[1mAgentOne?[0m?[32m"?[0m                ?[90m# AgentBehaviorStepDefs.thereIsNoLinkBetweenAnd(String,String,String)?[0m