|
From: <pe...@us...> - 2003-11-22 00:23:49
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders
In directory sc8-pr-cvs1:/tmp/cvs-serv17112/src/java/org/neuclear/id/builders
Modified Files:
NamedObjectBuilder.java
Log Message:
All unit tests in commons, id and xmlsec now work.
AssetController now successfully processes payments in the unit test.
Payment Web App has working form that creates a TransferRequest presents it to the signer
and forwards it to AssetControlServlet. (Which throws an XML Parser Exception) I think the XMLReaderServlet is bust.
Index: NamedObjectBuilder.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders/NamedObjectBuilder.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** NamedObjectBuilder.java 21 Nov 2003 17:55:16 -0000 1.13
--- NamedObjectBuilder.java 22 Nov 2003 00:23:46 -0000 1.14
***************
*** 2,5 ****
--- 2,11 ----
* $Id$
* $Log$
+ * Revision 1.14 2003/11/22 00:23:46 pelle
+ * All unit tests in commons, id and xmlsec now work.
+ * AssetController now successfully processes payments in the unit test.
+ * Payment Web App has working form that creates a TransferRequest presents it to the signer
+ * and forwards it to AssetControlServlet. (Which throws an XML Parser Exception) I think the XMLReaderServlet is bust.
+ *
* Revision 1.13 2003/11/21 17:55:16 pelle
* misc fixes
***************
*** 203,207 ****
* This simple wrapper takes most of the contents of a NamedObject and puts it into a Serializable form that can be signed.
*/
! public class NamedObjectBuilder extends SignedElement implements Named,Cloneable {
public NamedObjectBuilder(final String name, final String tagName, final String prefix, final String nsURI) throws NeuClearException {
super(tagName, prefix, nsURI);
--- 209,213 ----
* This simple wrapper takes most of the contents of a NamedObject and puts it into a Serializable form that can be signed.
*/
! public class NamedObjectBuilder extends SignedElement implements Named, Cloneable {
public NamedObjectBuilder(final String name, final String tagName, final String prefix, final String nsURI) throws NeuClearException {
super(tagName, prefix, nsURI);
***************
*** 433,448 ****
* whose class is <tt>Object</tt> will result in throwing an
* exception at run time.
! *
* @return a clone of this instance.
- * @throws CloneNotSupportedException if the object's class does not
- * support the <code>Cloneable</code> interface. Subclasses
- * that override the <code>clone</code> method can also
- * throw this exception to indicate that an instance cannot
- * be cloned.
* @see Cloneable
*/
! public Object clone() throws CloneNotSupportedException {
try {
! return new NamedObjectBuilder(getElement().c());
} catch (XMLSecurityException e) {
throw new RuntimeException(e);
--- 439,451 ----
* whose class is <tt>Object</tt> will result in throwing an
* exception at run time.
! *
* @return a clone of this instance.
* @see Cloneable
*/
! public Object clone() {
try {
! final Element elem = (Element) getElement().clone();
! DocumentHelper.createDocument(elem);
! return new NamedObjectBuilder(elem);
} catch (XMLSecurityException e) {
throw new RuntimeException(e);
|