Class: Reigns::FakeDispatcherServlet

Inherits:
Object
  • Object
show all
Defined in:
lib/reigns/fake_dispatcher_servlet.rb

Instance Method Summary collapse

Instance Method Details

#contextObject



16
17
18
# File 'lib/reigns/fake_dispatcher_servlet.rb', line 16

def context
  @servlet.getWebApplicationContext()
end

#service(request) ⇒ Object



10
11
12
13
14
# File 'lib/reigns/fake_dispatcher_servlet.rb', line 10

def service(request)
  response = MockHttpServletResponse.new
  @servlet.service(request, response)
  response
end