public class AtmosphereTester extends Object
Constructor and Description |
---|
AtmosphereTester(WicketTester wicketTester,
Page page)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getPushedResponse() |
AtmosphereTester |
post(Object message)
Posts a message to all suspended responses
|
AtmosphereTester |
post(Object message,
String resourceUuid)
Posts a message to the suspended response with the given uuid
|
AtmosphereTester |
resetResponse()
Resets the suspended response to be empty
|
AtmosphereTester |
switchOffTestMode()
Sets back the lastResponse with the saved one by
switchOnTestMode() . |
AtmosphereTester |
switchOnTestMode()
Switches the current lastResponse with the suspendedResponse
so the application test can use WicketTester's assert methods.
|
public AtmosphereTester(WicketTester wicketTester, Page page)
wicketTester
- The testing helperpage
- The page to testpublic String getPushedResponse()
public AtmosphereTester resetResponse()
public AtmosphereTester post(Object message)
message
- The message to pushpublic AtmosphereTester post(Object message, String resourceUuid)
message
- The message to pushresourceUuid
- The identifier of the suspended http responsepublic AtmosphereTester switchOnTestMode()
public AtmosphereTester switchOffTestMode()
switchOnTestMode()
.Copyright © 2006–2021 Apache Software Foundation. All rights reserved.