You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ps...@apache.org on 2003/04/30 06:18:28 UTC
cvs commit: jakarta-log4j-sandbox/tests/src/java/org/apache/log4j/net XMLDecoderTest.java
psmith 2003/04/29 21:18:28
Added: tests/src/java/org/apache/log4j/net XMLDecoderTest.java
Log:
Added a VERY basic Test case for the file loading portion of XMLDecoder.
Revision Changes Path
1.1 jakarta-log4j-sandbox/tests/src/java/org/apache/log4j/net/XMLDecoderTest.java
Index: XMLDecoderTest.java
===================================================================
/*
* Created on 29/04/2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.apache.log4j.net;
import java.io.File;
import java.util.List;
import junit.framework.TestCase;
import org.apache.log4j.xml.XMLDecoder;
/**
* @author Paul Smith <ps...@apache.org>
*
*/
public class XMLDecoderTest extends TestCase {
/**
* Constructor for XMLDecoderTest.
* @param arg0
*/
public XMLDecoderTest(String arg0) {
super(arg0);
}
/*
* Test for Vector decode(File)
*/
public void testDecodeFile() throws Exception {
XMLDecoder xmlDecoder = new XMLDecoder();
List events = xmlDecoder.decode(new File("tests/witness/eventSet.1.xml"));
assertTrue("Should have returned at least 418 events: " + events.size(), events.size()==418);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org