The current implementation uses the ToolApi? to generate code in the VisualAge environment. It would be fairly easy to just generate a .java file for a test fixture, however to add to TestAll? would require some minor source parsing. If you are interested in doing this, let us know and I'll export the current source in a jar so you can make the modifications. If you do we would probably refactor the result into a code gen strategy to share some code -- TimM
Further reply...what about always generating the TestAll? from scratch - by getting a list of all test classes for the current package/directory? I'm assuming a convention that each package has its own TestAll? and that each test class can be identified in some way, eg TestClassABC?.java separately from the actual ClassABC?.java (assuming the same directory) -- I'd be happy to take this on -- send the jar to my email address -- KimptoC
Importing the bigben107.dat file into Visual Age 3.5 Enterprise does not display the BigBen Tools,XPdeveloper Mock VAJ or XPdeveloper Testing projects.However they are present in the repository.Right clicking a package and choosing 'Create Unit Test', results in creation of two classes which both complain of 'Superclass VajTestCase? is missing'. What gives? -- Sajeev
Reply to above question: I had the same problem. All errors are due to missing packages which need to be added to the workspace. Can be solved by going to menu "Window/Repository Explorer" then finding the package that is missing from the workspace (ie com.xdeveloper.testing) click on it, then right click on the edition, and choose "add to workspace" from the popup menu (do this for any other missing packages). Put the packages into the project where all your junit packages are. Also need to do the same thing for com.ibm.ivj.util.base and com.ibm.ivj.util.builders. Also have to add the following line "import junit.runner.Sorter.*;" to the junit.test.SorterTest Class so it stops complaining about the missing inner class. Also if you want the Junit test runner to be available as a right click menu you will need the "default.ini" file (which is not supplied with the junit3.5.zip file!). I found it here: vsys-www.informatik.uni-hamburg.de/documents/docs/junit/vaj/tools/test-ui/ you will need to create a new directory called "test-ui" under your VISUALAGE_INSTALL_DIR/ide/tools/ directory and copy the default.ini file into it. Then restart Visual age and it should be OK from there, I think. -- NickH