summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials/travelsample
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-08-10 07:05:10 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-08-10 07:05:10 +0000
commit8d68817db9ca21f90fb720498fc4afbaf1fb3928 (patch)
tree9a971ddf9056edd91d6cf01662565559181bbb6e /sca-java-1.x/trunk/tutorials/travelsample
parent349f135affedfc00d6efee6468b3981c244f1606 (diff)
TUSCANY-3651 - Add assert to test case
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@983871 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/java/scatours/calendar/CalendarTestCase.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/java/scatours/calendar/CalendarTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/java/scatours/calendar/CalendarTestCase.java
index 8e0f003c4b..f67aa27043 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/java/scatours/calendar/CalendarTestCase.java
+++ b/sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/java/scatours/calendar/CalendarTestCase.java
@@ -18,6 +18,8 @@
*/
package scatours.calendar;
+import junit.framework.Assert;
+
import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCAContribution;
import org.apache.tuscany.sca.node.SCANode;
@@ -47,7 +49,9 @@ public class CalendarTestCase {
@Test
public void testCalendar() throws Exception {
Calendar calendar = ((SCAClient)node).getService(Calendar.class, "Calendar");
- System.out.println(calendar.getEndDate("07/10/96 04:05", 3));
+ String result = calendar.getEndDate("07/10/96 04:05", 3);
+ Assert.assertEquals("10/10/96 04:05", result);
+ System.out.println(result);
}
@After