• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOUnitTest and context().request().requestHandlerKey()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOUnitTest and context().request().requestHandlerKey()


  • Subject: WOUnitTest and context().request().requestHandlerKey()
  • From: Kaj Hejer <email@hidden>
  • Date: Sun, 1 Aug 2004 13:09:42 +0200

Hi!

In WO5.1 we did the following

WORequest aRequest = new WORequest(
       "GET", "/cgi-bin/medark.woa/wa/ShowKasus.wo?kasus=11&arkiv=1",
       "HTTP/1.1", null, null, null);
DirectAction aDirectAction = new DirectAction(aRequest);
KasusPage aKasusPage = (KasusPage) aDirectAction.showKasusAction();

//added for WO5.2 to make sure context().page() is set
aKasusPage.generateResponse();


and now as it looks from our old tests (this is a project I havn't touched for about a year) that


context().request().requestHandlerKey()

was set.

When running WO5.2.3 and WOUnitTest_r7 on osx 10.3.4 with java 1.4.2 context().request().requestHandlerKey() is null.

Any ideas how to make sure that context().request().requestHandlerKey() is set?

TIA!


-Kaj :) _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: WOUnitTest and context().request().requestHandlerKey()
      • From: Kaj Hejer <email@hidden>
  • Next by Date: Re: WOUnitTest and context().request().requestHandlerKey()
  • Next by thread: Re: WOUnitTest and context().request().requestHandlerKey()
  • Index(es):
    • Date
    • Thread