Class TestRequest

java.lang.Object
sunlabs.brazil.server.Request
sunlabs.brazil.server.TestRequest

public class TestRequest extends Request
Version of Request for testing purposes. Arranges for all output to be captured in one place so the ouput of a test may be compared with the expected output.
  • Constructor Details

  • Method Details

    • put

      public Object put(String key, String value)
    • log

      public String log()
    • result

      public String result()
    • log

      public void log(int level, Object obj, String message)
      Description copied from class: Request
      Logs a message by calling Server.log. Typically a message is generated on the console or in a log file, if the level is less than the current server log setting.
      Overrides:
      log in class Request
      Parameters:
      level - The severity of the message.
      obj - The object that the message relates to.
      message - The message that will be logged.
      See Also: