LightVoting
 All Classes Namespaces Files Functions Variables Pages
CVotingAgentTest.java
Go to the documentation of this file.
1 
24 package org.lightvoting.simulation.agent;
25 
26 
27 import junit.framework.Test;
28 import junit.framework.TestCase;
29 import junit.framework.TestSuite;
30 import org.lightjason.agentspeak.configuration.CDefaultAgentConfiguration;
32 
33 
37 public final class CVotingAgentTest extends TestCase
38 {
44  public CVotingAgentTest( final String p_testName )
45  {
46  super( p_testName );
47  }
48 
54  public static Test suite()
55  {
56  return new TestSuite( CVotingAgentTest.class );
57  }
58 
59  /* TODO fix test */
60 
66  public void testCVotingAgent()
67  {
68  try
69  {
70  final CChairAgent l_chairAgent = new CChairAgent( "chair", new CDefaultAgentConfiguration<>(), new CEnvironment( 23, "foo.h5" ),
71  "RANDOM",
72  "BASIC",
73  "foo.h5"
74  );
75  final CVotingAgent l_agent = new CVotingAgent( "agent", new CDefaultAgentConfiguration<>(), l_chairAgent, new CEnvironment( 23, "foo.h5" ), 10,
76  "RANDOM",
77  "foo.h5"
78  );
79  l_agent.call();
80  }
81  catch ( final Exception l_exception )
82  {
83  l_exception.printStackTrace();
84  }
85  }
86 }
87 
void testCVotingAgent()
Testing CVotingAgent Class.
CVotingAgentTest(final String p_testName)
Create the test case.
Created by sophie on 21.02.17.
BDI agent with voting capabilities.