cactus testing of business delegates

"David Lush" <[email protected]> Tue, 23 Jan 2007 15:49:32 -0000
Newsgroups gmane.comp.java.openamf.user
Message-ID <C4E45EF8549D704DB8B37E1ED5701C9522FBEC@officeserver.sbs.Powertec.co.uk>
Hi all,

            Just wondering if any of you have ever done any cactus
testing of your business delegates?

 

 If I instantiate the business delegates directly in my test case I have
the obvious problem that the http request and session are null when I
try to access them from inside a method on the business delegate. I'm
guessing this means that I need to pass any calls I want to invoke on a
business delegate via the AdvancedGateway in the form of an HTTP request
from my test case.

 

So in my setUp method I've instantiated and initialised a gateway as
follows. 

 

    protected void setUp() throws Exception {

        super.setUp();

        gateway = new AdvancedGateway();

        config.setInitParameter("OPENAMF_CONFIG",
"/WEB-INF/openamf-config.xml");

        gateway.init(this.config);

    }

 

But the thing I'm *really* stumped on, is how do I form my HTTP request
in such a way that I can make calls to method on the business delegate?
I guess I need to make the HTTP request in the form of an AMF message
and call the AdvancedGateway's service method? But I don't have a clue
how to start piecing that together

 

It'd be greatly appreciated if anyone could give me a couple of pointers
on where I need to be reading next please, or some sample code would be
just perfect  ;-)

 

Thank you 

 

Dave Lush

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user