|
Testing a C++ from JUnit -
07-28-2008, 11:05 PM
Hi,
This probably seems like a pretty strange request/question. I'm reasonably test driven and have been undertaking a fair amount of work to include as many unit/integration tests with all the apps we develop. These are currently all driven by JUnit and make use of DBUnit/JMock where appropriate to allow for complete unit testing in isolation and complete integration testing with external control.
One of our apps integrates with a 3rd party front end written in C++. Our hook into it is via a Java interface that is called from some 3rd party java code. My understanding is their C++ app interfaces with their java code using JNI.
I've been trying to work out what possible means there are to simulate interactivity with the C++ front end using JUnit and have so far come up completely empty. The only option I've seen so far is to simulate the call from their java interface to our java interface and pretend that nothing else happens from users interacting with the GUI and it hitting our java interface. It doesn't seem like a bad option, but it's not exactly end-to-end testing.
So, has anyone done something like this in the past or know anything about how to test a C++ GUI app from within JUnit?
Thanks
Ryan
|