summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java')
-rw-r--r--branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java47
1 files changed, 22 insertions, 25 deletions
diff --git a/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java b/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java
index a2b1da894d..5dc9c0079f 100644
--- a/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java
+++ b/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/CustomerClientImpl.java
@@ -36,14 +36,14 @@ public class CustomerClientImpl implements CustomerClient {
// Call Collection.getFeed()
public Feed clientGetFeed() throws Exception {
// Get all the entries from the provider, return in a single feed
- System.out.println(">>> get the feed from the provider service");
+ //System.out.println(">>> get the feed from the provider service");
Feed feed = resourceCollection.getFeed();
- System.out.println("\n\n!!! Fetched feed title: " + feed.getTitle().getPlainText());
+ //System.out.println("\n\n!!! Fetched feed title: " + feed.getTitle().getPlainText());
int i = 0;
for (Object o : feed.getEntries()) {
com.google.gdata.data.Entry e = (com.google.gdata.data.Entry)o;
- System.out.print("Entry" + i + "\t");
- System.out.println(" id = " + e.getId() + "\t title = " + e.getTitle().getPlainText());
+ //System.out.print("Entry" + i + "\t");
+ //System.out.println(" id = " + e.getId() + "\t title = " + e.getTitle().getPlainText());
i++;
}
return feed;
@@ -53,11 +53,11 @@ public class CustomerClientImpl implements CustomerClient {
// Call Collection.get(entryID)
public Entry clientGetEntry(String entryID) throws Exception {
// Get an existing entry based on its id
- System.out.println(">>> get an existing entry from the provider service");
+ //System.out.println(">>> get an existing entry from the provider service");
Entry entry = resourceCollection.get(entryID);
- System.out.println("\n\n!!! Entry retrieved with id=" + entry.getId()
- + " title="
- + entry.getTitle().getPlainText());
+ //System.out.println("\n\n!!! Entry retrieved with id=" + entry.getId()
+ // + " title="
+ // + entry.getTitle().getPlainText());
return entry;
}
@@ -65,12 +65,11 @@ public class CustomerClientImpl implements CustomerClient {
// Call Collection.post(newEntry)
public Entry clientPost(Entry newEntry) throws Exception {
// Put a new entry to the provider
- System.out.println(">>> post a new entry to the provider service");
+ //System.out.println(">>> post a new entry to the provider service");
Entry confirmedNewEntry = resourceCollection.post(newEntry);
- System.out.println("!!! New entry posted with id=" + confirmedNewEntry.getId()
- + " title="
- + confirmedNewEntry.getTitle().getPlainText());
- System.out.println("\n");
+ //System.out.println("!!! New entry posted with id=" + confirmedNewEntry.getId()
+ // + " title="
+ // + confirmedNewEntry.getTitle().getPlainText());
return confirmedNewEntry;
}
@@ -78,11 +77,10 @@ public class CustomerClientImpl implements CustomerClient {
// Call Collection.delete(newEntry)
public void clientDelete(String entryID) throws Exception {
// Put a new entry to the provider
- System.out.println(">>> delete an existing entry from the provider service");
- System.out.println(">>> delete id=" + "urn:uuid:customer-1");
+ //System.out.println(">>> delete an existing entry from the provider service");
+ //System.out.println(">>> delete id=" + "urn:uuid:customer-1");
resourceCollection.delete(entryID);
- System.out.println("!!! entry with id" + entryID);
- System.out.println("\n");
+ //System.out.println("!!! entry with id" + entryID);
}
@@ -90,16 +88,15 @@ public class CustomerClientImpl implements CustomerClient {
// Call Collection.put(entry, updatedTitle)
public void clientPut(String entryID, String newTitle) throws Exception {
- System.out.println("clientPut");
+ //System.out.println("clientPut");
// Put a new entry to the provider
- System.out.println(">>> put id=" + entryID + " title=" + newTitle);
+ //System.out.println(">>> put id=" + entryID + " title=" + newTitle);
Entry entry = resourceCollection.get(entryID);
//change the title of this entry
entry.setTitle(new PlainTextConstruct(newTitle));
resourceCollection.put(entryID, entry);
- System.out.println("!!! Updated entry with id=" + entry.getId() + " title=" + entry.getTitle());
- System.out.println("\n");
+ //System.out.println("!!! Updated entry with id=" + entry.getId() + " title=" + entry.getTitle());
}
@@ -107,14 +104,14 @@ public class CustomerClientImpl implements CustomerClient {
// Call Collection.getFeed()
public Feed clientQuery(Query query) throws Exception {
// Get all the entries from the provider, return in a single feed
- System.out.println(">>> query the service");
+ //System.out.println(">>> query the service");
Feed feed = resourceCollection.query(query);
- System.out.println("\n\n!!! Query result feed title: " + feed.getTitle().getPlainText());
+ //System.out.println("\n\n!!! Query result feed title: " + feed.getTitle().getPlainText());
int i = 0;
for (Object o : feed.getEntries()) {
com.google.gdata.data.Entry e = (com.google.gdata.data.Entry)o;
- System.out.print("Entry" + i + "\t");
- System.out.println(" id = " + e.getId() + "\t title = " + e.getTitle().getPlainText());
+ //System.out.print("Entry" + i + "\t");
+ //System.out.println(" id = " + e.getId() + "\t title = " + e.getTitle().getPlainText());
i++;
}
return feed;