Package com.trsst.client

Examples of com.trsst.client.Client.push()


            printPushUsage();
            return 127; // "command not found"
        }

        for (String id : arguments) {
            System.out.println(destinationClient.push(client.pull(id), url));
            // Feed feed = client.pull(id);
            // if ( feed != null ) {
            // feed = client.push(feed, url);
            // if ( feed != null ) {
            // out.println(feed);
View Full Code Here


            // verify string serialization roundtrip
            String raw = feed.toString();
            feed = (Feed) Abdera.getInstance().getParser()
                    .parse(new StringReader(raw)).getRoot();
            feed = client.push(feed, serviceURL);
            assertNotNull("String serialization", feed);
            assertEquals("Serialized feed retains id",
                    Common.fromFeedUrn(feed.getId()), feedId);
            assertEquals("Serialized feed contains no entries", feed
                    .getEntries().size(), 0);
View Full Code Here

            // verify string serialization with-entry roundtrip
            raw = feed.toString();
            feed = (Feed) Abdera.getInstance().getParser()
                    .parse(new StringReader(raw)).getRoot();
            feed = client.push(feed, serviceURL);
            assertNotNull("String serialization with entry", feed);
            assertEquals("Serialized feed with entry retains id",
                    Common.fromFeedUrn(feed.getId()), feedId);
            assertEquals("Serialized feed contains one entry", 1, feed
                    .getEntries().size());
View Full Code Here

            feed = (Feed) Abdera.getInstance().getParser()
                    .parse(new StringReader(raw)).getRoot();
            // this generates some errors on the console but it's ok
            try {
                feed = null;
                feed = client.push(feed, serviceURL);
            } catch (Throwable t) {
                // ignore: this is the exception we want to test
            }
            assertNull("Verification fails with edited entry", feed);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.