|
From: <rga...@us...> - 2002-11-09 20:21:45
|
Update of /cvsroot/csms/csms-core/src/test/src/org/fanfoot/scoring In directory usw-pr-cvs1:/tmp/cvs-serv15578 Modified Files: TestScores.java TestEvent.java Log Message: Remove deprecated method calls and tidy up code layout Index: TestScores.java =================================================================== RCS file: /cvsroot/csms/csms-core/src/test/src/org/fanfoot/scoring/TestScores.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestScores.java 18 Oct 2002 15:06:19 -0000 1.1 --- TestScores.java 9 Nov 2002 20:21:42 -0000 1.2 *************** *** 1,14 **** /* ! * File is generated by 'Unit Tests Generator' developed under ! * 'Web Test Tools' project at http://sf.net/projects/wttools/ ! * Copyright (C) 2001 "Artur Hefczyc" <ko...@us...> ! * to all 'Web Test Tools' subprojects. * ! * No rigths to files and no responsibility for code generated ! * by this tool are belonged to author of 'unittestsgen' utility. * ! * $Id$ ! * $Author$ ! * $Date$ */ package org.fanfoot.scoring; --- 1,14 ---- /* ! * File is generated by 'Unit Tests Generator' developed under ! * 'Web Test Tools' project at http://sf.net/projects/wttools/ ! * Copyright (C) 2001 "Artur Hefczyc" <ko...@us...> ! * to all 'Web Test Tools' subprojects. * ! * No rigths to files and no responsibility for code generated ! * by this tool are belonged to author of 'unittestsgen' utility. * ! * $Id$ ! * $Author$ ! * $Date$ */ package org.fanfoot.scoring; *************** *** 18,207 **** import java.awt.event.AWTEventListener; import java.awt.event.WindowEvent; - import junit.extensions.*; - import junit.framework.*; ! ! /** ! * File <code>TestScores.java</code> is automaticaly generated by ! * 'unittestsgen' application. Code generator is created for java ! * sources and for 'junit' package by "Artur Hefczyc" ! * <ko...@us...><br/> ! * You should fulfil test methods with proper code for testing ! * purpose. All methods where you should put your code are below and ! * their names starts with 'test'.<br/> ! * You can run unit tests in many ways, however prefered are: ! * <ul> ! * <li>Run tests for one class only, for example for this class you ! * can run tests with command: ! * <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" org.fanfoot.scoring.TestScores ! * </pre> ! * </li> ! * <li>Run tests for all classes in one command call. Code generator ! * creates also <code>TestAll.class</code> which runs all ! * available tests: ! * <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" TestAll ! * </pre> ! * </li> ! * <li>But the most prefered way is to run all tests from ! * <em>Ant</em> just after compilation process finished.<br/> ! * To do it. You need: ! * <ol> ! * <li>Ant package from ! * <a href="http://jakarta.apache.org/">Ant</a> ! * </li> ! * <li>JUnit package from ! * <a href="http://www.junit.org/">JUnit</a> ! * </li> ! * <li>Put some code in your <code>build.xml</code> file ! * to tell Ant how to test your package. Sample code for ! * Ant's <code>build.xml</code> you can find in created file: ! * <code>sample-junit-build.xml</code>. And remember to have ! * <code>junit.jar</code> in CLASSPATH <b>before</b> you run Ant. ! * To generate reports by ant you must have <code>xalan.jar</code> ! * in your <code>ANT_HOME/lib/</code> directory. ! * </li> ! * </ol> ! * </li> ! * </ul> */ ! public class TestScores extends org.custommonkey.xmlunit.XMLTestCase { ! /** ! * Instance of tested class. ! */ ! protected Scores varScores; ! String BBCTestScoringConfigURL = "file:///home/rgardler/projects/fanfoot/src/testcases/resources/conf/BBCTestScoringConfig.xsl"; ! org.w3c.dom.Document docControl1; ! String strControl1 = "<score>" + "It works!" + "</score>"; ! java.util.logging.Logger logger = java.util.logging.Logger.getLogger("org.fanfoot.scoring"); ! ! /** ! * Public constructor for creating testing class. ! */ ! public TestScores(String name) { ! super(name); ! } // end of TestScores(String name) - /** - * This main method is used for run tests for this class only - * from command line. - */ - public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); - } // end of main(Stringp[] args) ! /** ! * This method is called every time before particular test execution. ! * It creates new instance of tested class and it can perform some more ! * actions which are necessary for performs tests. ! */ ! protected void setUp() { ! setIgnoreWhitespace(true); - Events evts = new Events(); - Event evt = new Event("test1"); - evt.putPart("part1", "value1"); - evts.add(evt); ! try { ! docControl1 = org.saafe.utils.XMLUtils.stringToXML(strControl1); ! } catch (Exception e) { ! e.printStackTrace(); ! fail("Failed to create control documents: " + e); ! } ! ScoringConfiguration sc = new ScoringConfiguration( ! BBCTestScoringConfigURL); ! try { ! varScores = new Scores(evts, sc); ! } catch (Exception e) { ! fail("Unable to set up the scores object: " + e); ! } ! } // end of setUp() ! /** ! * Returns all tests which should be performed for testing class. ! * By default it returns only name of testing class. Instance of this ! * is then created with its constructor. ! */ ! public static Test suite() { ! return new TestSuite(TestScores.class); ! } // end of suite() ! /** ! * for classes which doesn't contain any methods here is one additional ! * method for performing test on such classes. ! */ ! public void testNoMethods() { } - /** - * Method for testing how works original method: - * org.w3c.dom.Document calculate() - * from tested class - */ - public void testCalculate() { - } // end of testCalculate() ! /** ! * Method for testing how works original method: ! * org.fanfoot.scoring.ScoringConfiguration getConfiguration() ! * from tested class ! */ ! public void testGetConfiguration() { ! } // end of testGetConfiguration() - /** - * Method for testing how works original method: - * org.fanfoot.scoring.Events getEvents() - * from tested class - */ - public void testGetEvents() { - } // end of testGetEvents() ! /** ! * Method for testing how works original method: ! * org.w3c.dom.Document getScoresDocument() ! * from tested class ! */ ! public void testGetScoresDocument() { ! org.w3c.dom.Document doc = varScores.getScoresDocument(); ! try { ! logger.finest("Scores XML is " + org.saafe.utils.XMLUtils.xmlToString(doc)); ! } catch (Exception e) { ! logger.warning("Unable to convert scores doc to a string (for logging purposes): " + e); ! // do nothing as this is nothing to do with the tests ! } ! assertXMLEqual("Generated scores document", docControl1, ! doc); ! } // end of testGetScoresDocument() - /** - * Method for testing how works original method: - * void setConfiguration(org.fanfoot.scoring.ScoringConfiguration) - * from tested class - */ - public void testSetConfiguration1814716963() { - } // end of testSetConfiguration1814716963(org.fanfoot.scoring.ScoringConfiguration) ! /** ! * Method for testing how works original method: ! * void setEvents(org.fanfoot.scoring.Events) ! * from tested class ! */ ! public void testSetEvents713640177() { ! } // end of testSetEvents713640177(org.fanfoot.scoring.Events) - /** - * Method for testing how works original method: - * void setScoresDocument(org.w3c.dom.Document) - * from tested class - */ - public void testSetScoresDocument9554056() { - } // end of testSetScoresDocument9554056(org.w3c.dom.Document) - } // end of TestScores --- 18,204 ---- import java.awt.event.AWTEventListener; import java.awt.event.WindowEvent; import junit.extensions.*; import junit.framework.*; ! import org.custommonkey.xmlunit.XMLTestCase; ! import org.custommonkey.xmlunit.XMLUnit; /** ! * File <code>TestScores.java</code> is automaticaly generated by ! * 'unittestsgen' application. Code generator is created for java ! * sources and for 'junit' package by "Artur Hefczyc" ! * <ko...@us...><br/> ! * You should fulfil test methods with proper code for testing ! * purpose. All methods where you should put your code are below and ! * their names starts with 'test'.<br/> ! * You can run unit tests in many ways, however prefered are: ! * <ul> ! * <li> Run tests for one class only, for example for this class ! * you can run tests with command: <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" org.fanfoot.scoring.TestScores ! * </pre> </li> ! * <li> Run tests for all classes in one command call. Code ! * generator creates also <code>TestAll.class</code> which runs all ! * available tests: <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" TestAll ! * </pre> </li> ! * <li> But the most prefered way is to run all tests from <em>Ant ! * </em> just after compilation process finished.<br/> ! * To do it. You need: ! * <ol> ! * <li> Ant package from <a href="http://jakarta.apache.org/">Ant ! * </a> </li> ! * <li> JUnit package from <a href="http://www.junit.org/">JUnit ! * </a> </li> ! * <li> Put some code in your <code>build.xml</code> file to tell ! * Ant how to test your package. Sample code for Ant's <code>build.xml</code> ! * you can find in created file: <code>sample-junit-build.xml</code> ! * . And remember to have <code>junit.jar</code> in CLASSPATH <b> ! * before</b> you run Ant. To generate reports by ant you must ! * have <code>xalan.jar</code> in your <code>ANT_HOME/lib/</code> ! * directory. </li> ! * </ol> ! * </li> ! * </ul> ! * ! * ! *@author rgardler ! *@created 09 November 2002 */ ! public class TestScores extends xmlunit.XMLTestCase { ! /** Instance of tested class. */ ! protected Scores varScores; ! String BBCTestScoringConfigURL = "file:///home/rgardler/projects/fanfoot/src/testcases/resources/conf/BBCTestScoringConfig.xsl"; ! java.util.logging.Logger logger = java.util.logging.Logger.getLogger( "org.fanfoot.scoring" ); ! /** ! * Public constructor for creating testing class. ! * ! *@param name Description of the Parameter ! */ ! public TestScores( String name ) { ! super( name ); ! }// end of main(Stringp[] args) ! /** ! * This method is called every time before particular test ! * execution. It creates new instance of tested class and it can ! * perform some more actions which are necessary for performs ! * tests. ! */ ! protected void setUp() { ! XMLUnit.setIgnoreWhitespace( true ); ! Events evts = new Events(); ! Event evt = new Event( "test1" ); ! evt.putPart( "part1", "value1" ); ! evts.add( evt ); ! ScoringConfiguration sc = new ScoringConfiguration( ! BBCTestScoringConfigURL ); ! try { ! varScores = new Scores( evts, sc ); ! } catch ( Exception e ) { ! fail( "Unable to set up the scores object: " + e ); ! } ! }// end of suite() ! ! /** ! * for classes which doesn't contain any methods here is one ! * additional method for performing test on such classes. ! */ ! public void testNoMethods() { ! } ! ! ! /** ! * Method for testing how works original method: ! * org.w3c.dom.Document calculate() from tested class ! */ ! public void testCalculate() { ! }// end of testCalculate() ! ! ! /** ! * Method for testing how works original method: ! * org.fanfoot.scoring.ScoringConfiguration getConfiguration() from ! * tested class ! */ ! public void testGetConfiguration() { ! }// end of testGetConfiguration() ! ! ! /** ! * Method for testing how works original method: ! * org.fanfoot.scoring.Events getEvents() from tested class ! */ ! public void testGetEvents() { ! }// end of testGetEvents() ! ! ! /** ! * Method for testing how works original method: ! * org.w3c.dom.Document getScoresDocument() from tested class ! */ ! public void testGetScoresDocument() { ! org.w3c.dom.Document doc = varScores.getScoresDocument(); ! try { ! logger.finest( "Scores XML is " + org.saafe.utils.XMLUtils.xmlToString( doc ) ); ! } catch ( Exception e ) { ! logger.warning( "Unable to convert scores doc to a string (for logging purposes): " + e ); ! // do nothing as this is nothing to do with the tests } + } ! /** ! * Method for testing how works original method: void ! * setConfiguration(org.fanfoot.scoring.ScoringConfiguration) from ! * tested class ! */ ! public void testSetConfiguration1814716963() { ! }// end of testSetConfiguration1814716963(org.fanfoot.scoring.ScoringConfiguration) ! /** ! * Method for testing how works original method: void ! * setEvents(org.fanfoot.scoring.Events) from tested class ! */ ! public void testSetEvents713640177() { ! }// end of testSetEvents713640177(org.fanfoot.scoring.Events) ! /** ! * Method for testing how works original method: void ! * setScoresDocument(org.w3c.dom.Document) from tested class ! */ ! public void testSetScoresDocument9554056() { ! }// end of TestScores(String name) ! ! ! /** ! * This main method is used for run tests for this class only from ! * command line. ! * ! *@param args The command line arguments ! */ ! public static void main( String[] args ) { ! junit.textui.TestRunner.run( suite() ); ! }// end of setUp() ! ! ! /** ! * Returns all tests which should be performed for testing class. ! * By default it returns only name of testing class. Instance of ! * this is then created with its constructor. ! * ! *@return The test suite ! */ ! public static Test suite() { ! return new TestSuite( TestScores.class ); ! }// end of testSetScoresDocument9554056(org.w3c.dom.Document) ! } Index: TestEvent.java =================================================================== RCS file: /cvsroot/csms/csms-core/src/test/src/org/fanfoot/scoring/TestEvent.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TestEvent.java 18 Oct 2002 15:06:18 -0000 1.1 --- TestEvent.java 9 Nov 2002 20:21:42 -0000 1.2 *************** *** 1,76 **** /* ! * File is generated by 'Unit Tests Generator' developed under ! * 'Web Test Tools' project at http://sf.net/projects/wttools/ ! * Copyright (C) 2001 "Artur Hefczyc" <ko...@us...> ! * to all 'Web Test Tools' subprojects. * ! * No rigths to files and no responsibility for code generated ! * by this tool are belonged to author of 'unittestsgen' utility. * ! * $Id$ ! * $Author$ ! * $Date$ */ package org.fanfoot.scoring; - - import junit.framework.*; - import junit.extensions.*; - import java.awt.Toolkit; import java.awt.AWTEvent; import java.awt.event.AWTEventListener; import java.awt.event.WindowEvent; /** ! * File <code>TestEvent.java</code> is automaticaly generated by ! * 'unittestsgen' application. Code generator is created for java ! * sources and for 'junit' package by "Artur Hefczyc" ! * <ko...@us...><br/> ! * You should fulfil test methods with proper code for testing ! * purpose. All methods where you should put your code are below and ! * their names starts with 'test'.<br/> ! * You can run unit tests in many ways, however prefered are: ! * <ul> ! * <li>Run tests for one class only, for example for this class you ! * can run tests with command: ! * <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" org.fanfoot.scoring.TestEvent ! * </pre> ! * </li> ! * <li>Run tests for all classes in one command call. Code generator ! * creates also <code>TestAll.class</code> which runs all ! * available tests: ! * <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" TestAll ! * </pre> ! * </li> ! * <li>But the most prefered way is to run all tests from ! * <em>Ant</em> just after compilation process finished.<br/> ! * To do it. You need: ! * <ol> ! * <li>Ant package from ! * <a href="http://jakarta.apache.org/">Ant</a> ! * </li> ! * <li>JUnit package from ! * <a href="http://www.junit.org/">JUnit</a> ! * </li> ! * <li>Put some code in your <code>build.xml</code> file ! * to tell Ant how to test your package. Sample code for ! * Ant's <code>build.xml</code> you can find in created file: ! * <code>sample-junit-build.xml</code>. And remember to have ! * <code>junit.jar</code> in CLASSPATH <b>before</b> you run Ant. ! * To generate reports by ant you must have <code>xalan.jar</code> ! * in your <code>ANT_HOME/lib/</code> directory. ! * </li> ! * </ol> ! * </li> ! * </ul> */ ! public class TestEvent extends org.custommonkey.xmlunit.XMLTestCase ! { ! /** ! * Instance of tested class. ! */ protected Event varEvent; ! // Control XML docs String strType = "test"; --- 1,72 ---- /* ! * File is generated by 'Unit Tests Generator' developed under ! * 'Web Test Tools' project at http://sf.net/projects/wttools/ ! * Copyright (C) 2001 "Artur Hefczyc" <ko...@us...> ! * to all 'Web Test Tools' subprojects. * ! * No rigths to files and no responsibility for code generated ! * by this tool are belonged to author of 'unittestsgen' utility. * ! * $Id$ ! * $Author$ ! * $Date$ */ package org.fanfoot.scoring; import java.awt.AWTEvent; + import java.awt.Toolkit; import java.awt.event.AWTEventListener; import java.awt.event.WindowEvent; + import junit.extensions.*; + + import junit.framework.*; + import org.custommonkey.xmlunit.XMLTestCase; + import org.custommonkey.xmlunit.XMLUnit; /** ! * File <code>TestEvent.java</code> is automaticaly generated by ! * 'unittestsgen' application. Code generator is created for java ! * sources and for 'junit' package by "Artur Hefczyc" ! * <ko...@us...><br/> ! * You should fulfil test methods with proper code for testing ! * purpose. All methods where you should put your code are below and ! * their names starts with 'test'.<br/> ! * You can run unit tests in many ways, however prefered are: ! * <ul> ! * <li> Run tests for one class only, for example for this class ! * you can run tests with command: <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" org.fanfoot.scoring.TestEvent ! * </pre> </li> ! * <li> Run tests for all classes in one command call. Code ! * generator creates also <code>TestAll.class</code> which runs all ! * available tests: <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" TestAll ! * </pre> </li> ! * <li> But the most prefered way is to run all tests from <em>Ant ! * </em> just after compilation process finished.<br/> ! * To do it. You need: ! * <ol> ! * <li> Ant package from <a href="http://jakarta.apache.org/">Ant ! * </a> </li> ! * <li> JUnit package from <a href="http://www.junit.org/">JUnit ! * </a> </li> ! * <li> Put some code in your <code>build.xml</code> file to tell ! * Ant how to test your package. Sample code for Ant's <code>build.xml</code> ! * you can find in created file: <code>sample-junit-build.xml</code> ! * . And remember to have <code>junit.jar</code> in CLASSPATH <b> ! * before</b> you run Ant. To generate reports by ant you must ! * have <code>xalan.jar</code> in your <code>ANT_HOME/lib/</code> ! * directory. </li> ! * </ol> ! * </li> ! * </ul> ! * ! * ! *@author rgardler ! *@created 09 November 2002 */ ! public class TestEvent extends XMLTestCase { ! /** Instance of tested class. */ protected Event varEvent; ! // Control XML docs String strType = "test"; *************** *** 81,266 **** String strPart3Name = "part3"; String strPart3Value = ""; ! String strControl1 = ! "<event>" + ! "<uid/>" + ! "<type>" + strType + "</type>" + ! "<src/>" + ! "<" + strPart1Name + ">" + strPart1Value + "</" + strPart1Name + ">" + ! "<" + strPart2Name + ">" + strPart2Value + "</" + strPart2Name + ">" + ! "<" + strPart3Name + ">" + strPart3Value + "</" + strPart3Name + ">" + ! "</event>"; ! org.w3c.dom.Document docControl1; ! ! /** ! * Public constructor for creating testing class. ! */ ! public TestEvent(String name) { ! super(name); ! } // end of TestEvent(String name) /** ! * This main method is used for run tests for this class only ! * from command line. */ ! public static void main(String[] args) { ! junit.textui.TestRunner.run(suite()); ! } // end of main(Stringp[] args) /** ! * This method is called every time before particular test execution. ! * It creates new instance of tested class and it can perform some more ! * actions which are necessary for performs tests. */ protected void setUp() { ! setIgnoreWhitespace(true); ! varEvent = new Event(strType); ! varEvent.putPart(strPart1Name, strPart1Value); ! varEvent.putPart(strPart2Name, strPart2Value); ! varEvent.putPart(strPart3Name, strPart3Value); try { ! docControl1 = org.saafe.utils.XMLUtils.stringToXML(strControl1); ! } catch (Exception e) { ! e.printStackTrace(); ! fail("Failed to create control documents"); } ! } // end of setUp() ! /** ! * Returns all tests which should be performed for testing class. ! * By default it returns only name of testing class. Instance of this ! * is then created with its constructor. ! */ ! public static Test suite() { ! return new TestSuite(TestEvent.class); ! } // end of suite() /** ! * for classes which doesn't contain any methods here is one additional ! * method for performing test on such classes. */ public void testNoMethods() { } /** ! * Method for testing how works original method: ! * void appendXMLTo(org.w3c.dom.Document) ! * from tested class */ public void testAppendXMLTo9554056() { - } // end of testAppendXMLTo9554056(org.w3c.dom.Document) /** ! * Method for testing how works original method: ! * java.lang.String getPart(java.lang.String) ! * from tested class */ public void testGetPart1195259493() { - } // end of testGetPart1195259493(java.lang.String) /** ! * Method for testing how works original method: ! * java.util.Enumeration getPartNames() ! * from tested class */ public void testGetPartNames() { - } // end of testGetPartNames() /** ! * Method for testing how works original method: ! * java.util.Hashtable getParts() ! * from tested class */ public void testGetParts() { - } // end of testGetParts() /** ! * Method for testing how works original method: ! * java.lang.String getSrc() ! * from tested class */ public void testGetSrc() { - } // end of testGetSrc() /** ! * Method for testing how works original method: ! * java.lang.String getType() ! * from tested class */ public void testGetType() { - } // end of testGetType() /** ! * Method for testing how works original method: ! * java.lang.String getUID() ! * from tested class */ public void testGetUID() { - } // end of testGetUID() /** ! * Method for testing how works original method: ! * void putPart(java.lang.String, java.lang.String) ! * from tested class */ public void testPutPart11952594931195259493() { - } // end of testPutPart11952594931195259493(java.lang.String, java.lang.String) /** ! * Method for testing how works original method: ! * void setSrc(java.lang.String) ! * from tested class */ public void testSetSrc1195259493() { - } // end of testSetSrc1195259493(java.lang.String) /** ! * Method for testing how works original method: ! * void setType(java.lang.String) ! * from tested class */ public void testSetType1195259493() { - } // end of testSetType1195259493(java.lang.String) /** ! * Method for testing how works original method: ! * void setUID(java.lang.String) ! * from tested class */ public void testSetUID1195259493() { - } // end of testSetUID1195259493(java.lang.String) /** ! * Method for testing how works original method: ! * org.w3c.dom.Document toXMLDoc() ! * from tested class */ public void testToXMLDoc() { ! try { ! assertXMLEqual("Testing to XML", docControl1, varEvent.toXMLDoc()); ! } catch (Exception e) { ! e.printStackTrace(); ! fail("Failed to convert event to XML Document"); ! } ! } // end of testToXMLDoc() - } // end of TestEvent --- 77,268 ---- String strPart3Name = "part3"; String strPart3Value = ""; ! String strControl1 = ! "<event>" + ! "<uid/>" + ! "<type>" + strType + "</type>" + ! "<src/>" + ! "<" + strPart1Name + ">" + strPart1Value + "</" + strPart1Name + ">" + ! "<" + strPart2Name + ">" + strPart2Value + "</" + strPart2Name + ">" + ! "<" + strPart3Name + ">" + strPart3Value + "</" + strPart3Name + ">" + ! "</event>"; ! org.w3c.dom.Document docControl1; ! ! /** ! * Public constructor for creating testing class. ! * ! *@param name Description of the Parameter */ ! public TestEvent( String name ) { ! super( name ); ! }// end of main(Stringp[] args) ! ! /** ! * This method is called every time before particular test ! * execution. It creates new instance of tested class and it can ! * perform some more actions which are necessary for performs ! * tests. */ protected void setUp() { ! XMLUnit.setIgnoreWhitespace( true ); ! varEvent = new Event( strType ); ! varEvent.putPart( strPart1Name, strPart1Value ); ! varEvent.putPart( strPart2Name, strPart2Value ); ! varEvent.putPart( strPart3Name, strPart3Value ); try { ! docControl1 = org.saafe.utils.XMLUtils.stringToXML( strControl1 ); ! } catch ( Exception e ) { ! e.printStackTrace(); ! fail( "Failed to create control documents" ); } ! }// end of suite() ! ! /** ! * for classes which doesn't contain any methods here is one ! * additional method for performing test on such classes. */ public void testNoMethods() { } + /** ! * Method for testing how works original method: void ! * appendXMLTo(org.w3c.dom.Document) from tested class */ public void testAppendXMLTo9554056() { + }// end of testAppendXMLTo9554056(org.w3c.dom.Document) /** ! * Method for testing how works original method: java.lang.String ! * getPart(java.lang.String) from tested class */ public void testGetPart1195259493() { + }// end of testGetPart1195259493(java.lang.String) /** ! * Method for testing how works original method: ! * java.util.Enumeration getPartNames() from tested class */ public void testGetPartNames() { + }// end of testGetPartNames() /** ! * Method for testing how works original method: ! * java.util.Hashtable getParts() from tested class */ public void testGetParts() { + }// end of testGetParts() /** ! * Method for testing how works original method: java.lang.String ! * getSrc() from tested class */ public void testGetSrc() { + }// end of testGetSrc() /** ! * Method for testing how works original method: java.lang.String ! * getType() from tested class */ public void testGetType() { + }// end of testGetType() /** ! * Method for testing how works original method: java.lang.String ! * getUID() from tested class */ public void testGetUID() { + }// end of testGetUID() /** ! * Method for testing how works original method: void ! * putPart(java.lang.String, java.lang.String) from tested class */ public void testPutPart11952594931195259493() { + }// end of testPutPart11952594931195259493(java.lang.String, java.lang.String) /** ! * Method for testing how works original method: void ! * setSrc(java.lang.String) from tested class */ public void testSetSrc1195259493() { + }// end of testSetSrc1195259493(java.lang.String) /** ! * Method for testing how works original method: void ! * setType(java.lang.String) from tested class */ public void testSetType1195259493() { + }// end of testSetType1195259493(java.lang.String) /** ! * Method for testing how works original method: void ! * setUID(java.lang.String) from tested class */ public void testSetUID1195259493() { + }// end of testSetUID1195259493(java.lang.String) /** ! * Method for testing how works original method: ! * org.w3c.dom.Document toXMLDoc() from tested class */ public void testToXMLDoc() { ! try { ! assertXMLEqual( "Testing to XML", docControl1, varEvent.toXMLDoc() ); ! } catch ( Exception e ) { ! e.printStackTrace(); ! fail( "Failed to convert event to XML Document" ); ! } ! }// end of TestEvent(String name) ! ! ! /** ! * This main method is used for run tests for this class only from ! * command line. ! * ! *@param args The command line arguments ! */ ! public static void main( String[] args ) { ! junit.textui.TestRunner.run( suite() ); ! }// end of setUp() ! ! ! /** ! * Returns all tests which should be performed for testing class. ! * By default it returns only name of testing class. Instance of ! * this is then created with its constructor. ! * ! *@return The test suite ! */ ! public static Test suite() { ! return new TestSuite( TestEvent.class ); ! }// end of testToXMLDoc() ! ! } |