Skip to content

Instantly share code, notes, and snippets.

@hstaudacher
Created November 12, 2011 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hstaudacher/1360413 to your computer and use it in GitHub Desktop.
Save hstaudacher/1360413 to your computer and use it in GitHub Desktop.
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 = "/" )
public void checkRestfuseOnlineStatus() {
assertOk( response );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment