01: /**
02: * $RCSfile$
03: * $Revision: 7655 $
04: * $Date: 2007-03-22 13:50:33 -0700 (Thu, 22 Mar 2007) $
05: *
06: * Copyright (C) 1999-2003 CoolServlets, Inc. All rights reserved.
07: *
08: * This software is the proprietary information of CoolServlets, Inc.
09: * Use is subject to license terms.
10: */package org.jivesoftware.util;
11:
12: import junit.framework.TestCase;
13:
14: /**
15: * <p>Test the writing of dom4j documents using the XPP serializer.</p>
16: *
17: * @author Iain Shigeoka
18: */
19: public class XPPWriterTest extends TestCase {
20: /**
21: * <p>Create a new test with the given name.</p>
22: *
23: * @param name The name of the test
24: */
25: public XPPWriterTest(String name) {
26: super (name);
27: }
28:
29: /**
30: * <p>Run a standard config document through a round trip and compare.</p>
31: */
32: public void testRoundtrip() {
33: // NOTE: disabling this test case until we get resources working again.
34: /*
35: try {
36: Document doc = XPPReader.parseDocument(new FileReader("../conf/openfire.xml"),this.getClass());
37: XPPWriter.write(doc, new FileWriter("../conf/xmpp_writer_test_copy.xml"));
38: } catch (Exception e) {
39: e.printStackTrace();
40: fail(e.getMessage());
41: }
42: */
43: }
44: }
|