📄 xppwritertest.java
字号:
/** * $RCSfile$ * $Revision: 7655 $ * $Date: 2007-03-22 13:50:33 -0700 (Thu, 22 Mar 2007) $ * * Copyright (C) 1999-2003 CoolServlets, Inc. All rights reserved. * * This software is the proprietary information of CoolServlets, Inc. * Use is subject to license terms. */package org.jivesoftware.util;import junit.framework.TestCase;/** * <p>Test the writing of dom4j documents using the XPP serializer.</p> * * @author Iain Shigeoka */public class XPPWriterTest extends TestCase { /** * <p>Create a new test with the given name.</p> * * @param name The name of the test */ public XPPWriterTest(String name){ super(name); } /** * <p>Run a standard config document through a round trip and compare.</p> */ public void testRoundtrip(){ // NOTE: disabling this test case until we get resources working again. /* try { Document doc = XPPReader.parseDocument(new FileReader("../conf/openfire.xml"),this.getClass()); XPPWriter.write(doc, new FileWriter("../conf/xmpp_writer_test_copy.xml")); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); } */ }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -