12-03-05 10:45 PM
[ http://issues.apache.org/jira/brows...ERS-61?page=all ]
Emmanuel Lecharny resolved DIRSNICKERS-61:
------------------------------------------
Resolution: Fixed
We have a way to store encoded and decoded PDU as XML in the sandbox project
Ldap Proxy.
So we can perfectly replay PDU easily. (even if some more work is to be done
, this is going in the good direction)
> A Snickers Testing Framework
> ----------------------------
>
> Key: DIRSNICKERS-61
> URL: http://issues.apache.org/jira/browse/DIRSNICKERS-61
> Project: Directory ASN1
> Type: Wish
> Components: General
> Reporter: Alex Karasulu
> Assignee: Wes McKean
>
> At the present moment the only thing really holding us in the incubator is the dep
endency on SNACC4J. Right now we don't really need to depend on it if we had a test
ing framework in hand where static serialized PDU's with known values can be tested
wit
h Snickers. Even when Snickers is fully functional a testing framework will still be requir
ed. We can't keep SNACC4J lying around even if it is just there to test for correct Snicker
s operation.
> To solve this problem we can create a special test case data file. These test cas
es can contain a serialized copy of the Java object representing the Message and a c
opy of the encoded PDU. Bi-directional transformations can be performed and verifie
d t
o test decoders and encoders this way. All that is needed is a utility for
generating these test case data files. An extention to JUnit can be written
to test correct encoding and decoding to and from the target objects. Thes
e tests can also be used te
st the performance of encoders and decoders.
> We could create a simple XML based test case data file that contains base6
4 encoded raw data elements like so:
> <snickers-testcase>
> <id>12345</id>
> <object>[base64encoded]</object>
> <pdu>[base64encoded]</pdu>
> </snickers-testcase>
> The base64 encoded data can even be split into separate lines to keep the file sor
t of human readable. We can build a UI to generate these files that uses SNACC4J an
d the project can reside on SF.net. Once we have the set of test case data files we
ne
ed snickers never needs to look back at SNACC4J.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[ Post a follow-up to this message ]
|