Reviewed code for all uses of FileInputStream, checking to see if the method should be closing the stream, and if so, closing it in the method as well as in the finally clause to ensure we don't leak file descriptors.
do not use a URL that could resolve when testing the Metacat inaccessible exception.
Add new test method to test getAccessControl.
use IOUtils for testing read/write of XML strings. This goes along with the utilities project change to use the same apache commons IO library. Be sure to clean the utilities checkout in order to catch the right utilities svn tag when building!
removed newline addition to test doc now that the newline problem is fixed in utilities project. Small adjustments to comments and debug statements to aid in debugging. Reordered tests to remove possible insertion between read and getLastDocid test.
use more unique scope (document id prefix) so that getlastdocid runs successfully. use superclass generateDocumentId() method
Add a debug statement to show existing doc id
add delay in insertSpatialDocs test to avoid buildIndex conflict
handle ben's change to the metacat client read api because it returns inputstream now
Change location of PropertyService to properties directory
Add debug statements
Convert properties to camel case
Extend MCTestCase to handle initialization of PropertyService
Use qualified test properties
Merge 1.9 changes into Head
Check into cvs head. Add initialize option statment at the beginging of the class.
Changes to remove ANT tokens for the turnkey install project
Add code to test upload same identifier twice.
In reuseSession and reuseInvalidSession method, metacat.logout statement were added to make sure it will use fresh Metacat object.
Add a new test to test new query method with qformat.
Add more test (update) on upload
Currently every MetacatClientTest will generate new doicd and the the docid will be reused. So it will generate problem. I add new method to persistent the doicd in a file and this problem was fixed.
The generateId method somethimes couldn't generate a unique id if you put theminto a big for loop. So i added append to a random number at the end. It works wll
Add delete method in inserting spatial data.
Add new method to keep inserting spatial data.
Fixed exception handler
fixed bugs in teh client that were preventing the lsid service from working right
fix to the earlier commit. the code was dependent on 1.5. this one isnt
fix to the generateDocid() function so that the docid generated always is bigger than the earlier one.
Added new function getLastDocid to the metacat client so that it isaccessible to clients that need it.
Add a new test case for testing get newest revision number.
Added a new method to check upload function when a data stream is passed.
Added code to test the upload functionality in the client
Added more debugging messgaes to the test in an attempt to find outwhat is wrong with the cookies.
Updated more tests on session reuse. Made the http calls set the sessionidexplicitly rather than relying on cookies being passed around statically.Still need to modify HttpMessage to get rid of the static cookie.
New versions of the Metacat client API that allow access to the sessionIdso that a session can be reused over several different instances.
Fixed the sessionId handling code to now properly return the sessionIdin the login response message. Updated junit tests to test this issue.
Modified metacat to now provide the session identifier in the responsexml message when a login is called. This has not been fully tested.I removed the HttpMessage class from metacat in favor of using the versionof that class that is found in the utilities module. This may cause some...
Add new test case to testing logout, user doesn't have permision to read, insert, update and delete documents. Add new test case to test inaccessible metacat.
Implemented the update and delete methods in the interface, along with tests.
Updated test so that the query test works. Now all tests should pass, butstill having the cntl-m issue on one server.
New test code for metacat client. Auto-generate id. Query and read fromthe inserted document. Still having some problems with the tests.
Implemented the "insert()" method and wrote a test to test it. The new testdepends on the property "newdocid" be set to something unique in the build.xmlfile so that the insert will work properly. Probably need to fix this to besome kind of autoincrement counter or random number so that it can be run...
Refactored to use IOUtil routines. Reformatted for within-file consistency.
Add a test case for query method.
Implemented the 'read' API call. Some more to go...
Wrote the login() function, the first of the series of API calls forthe metacat client to be implemented. Also wrote a test class totest the API functionality.