Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.chiba.test.xml.util
Class DOMComparatorPerformanceTest  view DOMComparatorPerformanceTest download DOMComparatorPerformanceTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.chiba.test.xml.util.DOMComparatorPerformanceTest
All Implemented Interfaces:
junit.framework.Test

public class DOMComparatorPerformanceTest
extends junit.framework.TestCase

The performance test for the DOM Comparator implementation.

Version:
$Id: DOMComparatorPerformanceTest.java,v 1.1 2003/09/11 21:02:26 joernt Exp $

Field Summary
private  int performanceLaps
           
private  org.w3c.dom.Document testDocument1
           
private  org.w3c.dom.Document testDocument2
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DOMComparatorPerformanceTest(java.lang.String name)
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
static junit.framework.Test suite()
           
 void testComparisonByEqualsPerformance()
           
 void testComparisonByHashCodePerformance()
           
 void testComparisonByInternPerformance()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testDocument1

private org.w3c.dom.Document testDocument1

testDocument2

private org.w3c.dom.Document testDocument2

performanceLaps

private int performanceLaps
Constructor Detail

DOMComparatorPerformanceTest

public DOMComparatorPerformanceTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: junit.framework.TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.


testComparisonByEqualsPerformance

public void testComparisonByEqualsPerformance()
                                       throws java.lang.Exception

testComparisonByHashCodePerformance

public void testComparisonByHashCodePerformance()
                                         throws java.lang.Exception

testComparisonByInternPerformance

public void testComparisonByInternPerformance()
                                       throws java.lang.Exception

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)