diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-17 13:21:30 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-17 13:21:30 +0000 |
commit | 1099bc9633be66080426a8683b702c3739318fcb (patch) | |
tree | 1a5e6a25020a1e1762fcc5d901d795eea97459dc /collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test | |
parent | 2189f061bea7839dfd33f8c9d78eb8c93e760e4d (diff) |
TUSCANY-3522: Commit the twitapp program Eranda Sooriyabandara has attached as part of the GSoC project Develop a 'NoSQL' Datastore component for Apache Cassandra, CouchDB, Hadoop/Hbase
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1104231 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java b/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java new file mode 100644 index 0000000000..f9d6baec8b --- /dev/null +++ b/collaboration/GSoC-2011-Eranda/twitapp/src/main/java/twitapp/test/TwitAppTest.java @@ -0,0 +1,32 @@ +package main.java.twitapp.test;
+
+import java.util.Iterator;
+
+import main.java.twitapp.services.AppManager;
+import main.java.twitapp.services.Twit;
+import main.java.twitapp.services.UserManager;
+
+public class TwitAppTest {
+
+ /**
+ * @param args
+ */
+ public static void main(String[] args) {
+ UserManager userManager = new UserManager();
+ userManager.addUser("eranda", "Eranda Sooriyabandara");
+ userManager.addUser("ishara", "Ishara Karunarathne");
+
+ AppManager manager1 = new AppManager("eranda");
+ manager1.twit("Won the world cup 2011");
+
+ AppManager manager2 = new AppManager("ishara");
+ manager2.follow("eranda");
+
+ Iterator<Twit> twits = manager2.getFollowerTwits("eranda");
+ while(twits.hasNext()){
+ System.out.println(twits.next().toString());
+ }
+
+ }
+
+}
|