DZone Forums
Go Back   DZone Forums > Community > Enterprise Development > Testing & QA
Reload this Page Testing a C++ from JUnit
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Default 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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse JUnit 4 Plug-in Test misterb Eclipse 1 09-25-2009 10:36 AM
Junit test cases for a plugin failing when run from command line. sahuabinash Eclipse 0 09-17-2008 06:11 AM
LaunchConfiguration and JUnit pkazakov Eclipse 0 07-22-2008 07:43 AM
Best Testing Framework to Simulate a Distributed Network (functional testing) mbangwa Java 1 06-06-2008 12:07 AM
Help please with complex JUNIT test cases across classes patwa Java 0 05-07-2008 09:46 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com