Skip to content

Instantly share code, notes, and snippets.

@lfryc
Created May 31, 2012 20:27
Show Gist options
  • Select an option

  • Save lfryc/2845977 to your computer and use it in GitHub Desktop.

Select an option

Save lfryc/2845977 to your computer and use it in GitHub Desktop.
The Pernament and Named assertions
// invokable from e.g. JavaScript unit tests by the name
@NamedAssertion("named")
public void Pernament extends ServerAssertion {
}
// will be invoked each time the lifecycle event happens
// including push events
// the assertion will be delivered to client on first possible moment
@PernamentAssertion
public void Pernament extends ServerAssertion {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment