Skip to content

Instantly share code, notes, and snippets.

View hstaudacher's full-sized avatar
🥷
{...copilot}

Holger Staudacher hstaudacher

🥷
{...copilot}
View GitHub Profile
@hstaudacher
hstaudacher / RestfusePollTest.java
Created November 12, 2011 11:39
A simple Polling Test using restfuse
@RunWith( HttpJUnitRunner.class )
public class RestfusePollTest {
@Rule
public Destination destination = new Destination( "http://restfuse.com" );
@Context
private Response response;
@Context
@hstaudacher
hstaudacher / RestfuseTest.java
Created November 12, 2011 11:34
A simple Http Test using restfuse
@RunWith( HttpJUnitRunner.class )
public class RestfuseTest {
@Rule
public Destination destination = new Destination( "http://restfuse.com" );
@Context
private Response response; // will be injected after every request
@HttpTest( method = Method.GET, path = "/" )