Revision f4b07d1e client/java/src/test/java/HlrcClientTests.java
client/java/src/test/java/HlrcClientTests.java | ||
---|---|---|
26 | 26 |
* |
27 | 27 |
*/ |
28 | 28 |
|
29 |
import de.uni-bielefeld.cit-ec.opensource.hlrc.client.HeadAnimations;
|
|
30 |
import de.uni-bielefeld.cit-ec.opensource.hlrc.client.Emotions;
|
|
31 |
import de.uni-bielefeld.cit-ec.opensource.hlrc.client.RobotController;
|
|
29 |
import de.uni_bielefeld.cit_ec.opensource.hlrc.client.HeadAnimations;
|
|
30 |
import de.uni_bielefeld.cit_ec.opensource.hlrc.client.Emotions;
|
|
31 |
import de.uni_bielefeld.cit_ec.opensource.hlrc.client.RobotController;
|
|
32 | 32 |
|
33 | 33 |
import org.junit.After; |
34 | 34 |
import org.junit.AfterClass; |
... | ... | |
62 | 62 |
|
63 | 63 |
@Before |
64 | 64 |
public void setUp() { |
65 |
this.r = new Robot("/home/kitchen/flobi", "RSB"); |
|
65 |
this.r = new RobotController("/home/kitchen/flobi", "RSB");
|
|
66 | 66 |
System.out.println("* HLRC CLIENT TESTS: @Before method"); |
67 | 67 |
} |
68 | 68 |
|
... | ... | |
75 | 75 |
public void testConstructor() { |
76 | 76 |
System.out.println("Constructor"); |
77 | 77 |
|
78 |
assertEquals("TestRobot", this.r.getRobotName()); |
|
78 |
assertEquals("TestRobot", this.r.getRobotControllerName());
|
|
79 | 79 |
assertEquals("RSB", r.getMiddleware()); |
80 | 80 |
} |
81 | 81 |
|
... | ... | |
94 | 94 |
@Test |
95 | 95 |
public void testEmotionCreation() { |
96 | 96 |
System.out.println("Emotion Message"); |
97 |
this.r.mw.createEmotionMessage(Emotions.SAD, 1000); |
|
97 |
this.r.mw.createCurrentEmotionMessage(Emotions.SAD, 1000);
|
|
98 | 98 |
} |
99 | 99 |
|
100 | 100 |
} |
Also available in: Unified diff