Create a JUnit class for Metacat action
We need a JUnit class for testing the action of metacat. These actions insert,
update, delete, with valid, invalid, wf, and non-wf docs, login, and logout ...
When it is done, we will be very convenience to test our Metacat.
#1 Updated by Jing Tao about 18 years ago
Test cases for successful and failed login as NCEAS, PISCO and LTER ladp users
Test cases for inserting valid, invalid, wf and non-wf xml dcouments were
Test cases for update, delete, read (for xml, html and zip qformat) and logout
action were created too.
These test case were created in
edu.ucsb.nceas.metacatjunittests.MetaCatServletTest class and run it by type
In order to testing insert data file. We need httpclient.jar and itislib.jar
file. We create another package for testing insert data file (including the
above test cases too). It is edu.ucsb.nceas.metacatunitnettests and in the
build.xml file two another targets were created. One is "gethttpclient". This
target will download morpho from cvs and run ant to get httpclient.jar. After
running gethttpclient, then we can run another target "nettest". In this test,
insert data file will be executed.
This is basic test. And we will put more there.