Hi to all,
in attach you'll find a zip containing a sample JUnit 4 Test case for the Basic
Authentication, to access public and protected resources on Apache on localhost
(see info in sources).
I'm implementing DigestAuthentication, so these classes are the step before, to
ensure that all is working.
For tests, I've done a little patch to BinarySerializer (only in closing
resources during load and save), and i created a new class,
ByteArraySerializer, useful to load any content from a server, and returning it
as a byte [] ... because BinarySerializer was not usable in these cases ...
Inside eclipse, run the WebQueryTestClientBasic class as a JUnit Test.
I've seen (as in my previous mail) that in some cases it seems that a
non-trapped exception will be throws ... someone has an idea ?
Oh, one last thing:
will it be possible inside GetQuery etc, to know the MIME Type of the content
loaded ?
Could be useful for example to change the Serializer to use ...
Tell me.
Bye,
Sandro