Package org.stringtree.mojasef.local

Examples of org.stringtree.mojasef.local.LocalPostRequest


   
    public void testPostMapRequest() {
        Map<String, String> args = new HashMap<String, String>();
        args.put("TEXT", "hello");
        args.put("twins", "Castor & Pollux");
        ByteTract request = new LocalPostRequest("ptest", args);
        Tract response = server.request(request);
        assertTrue(response.hasContent());
        assertEquals("hello from Castor & Pollux", response.getContent());
    }
View Full Code Here


        assertTrue(response.hasContent());
        assertEquals("hello from Castor & Pollux", response.getContent());
    }
   
    public void testPostStringRequest() {
        ByteTract request = new LocalPostRequest("pstest", "thing", "text/crinkly");
        Tract response = server.request(request);
        assertTrue(response.hasContent());
        assertEquals("hello from thing (text/crinkly)", response.getContent());
    }
View Full Code Here

TOP

Related Classes of org.stringtree.mojasef.local.LocalPostRequest

Copyright © 2018 www.massapicom. 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.