abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Duncan" <stephen.dun...@gmail.com>
Subject Hanging Client Test
Date Sat, 14 Oct 2006 18:59:45 GMT
This may not help much, but if anyone is looking to start
troubleshooting the problem, here's the section of code to focus on:

    // YAY! We're a working APP client

    // Now let's try to do a media post

    // Post the media resource
    options = client.getDefaultRequestOptions();
    options.setContentType("text/plain");
    options.setHeader("Connection", "close");
	  System.out.println("Test1");
    response = client.post(col_uri, new
ByteArrayInputStream("test".getBytes()), options);
	  System.out.println("Test2");
    assertEquals(201, response.getStatus());
    assertNotNull(response.getLocation());
    assertNotNull(response.getContentLocation());

"Test1" will print, but "Test2" will not.

-- 
Stephen Duncan Jr
www.stephenduncanjr.com

Mime
View raw message