Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /eyebrowse/src/test/org/tigris/eyebrowse/util/mail/

eyebrowse
Discussion topic

Back to topic list

CVS update: /eyebrowse/src/test/org/tigris/eyebrowse/util/mail/

Reply

Author aguenther
Full name Andreas Guenther
Date 2003-04-22 15:31:16 PDT
Message User: aguenther
Date: 03/04/22 15:31:16

Modified
 /eyebrowse/src/test/​org/tigris/eyebrowse​/util/mail/
  MboxParserTest.java

Log
 Changed function name, used constant for test iteration, and added some more comments to better reflect the JUnit test run against the parser.
 Target: HEAD (T1.1)

File Changes:

Directory: /eyebrowse/src/test/​org/tigris/eyebrowse​/util/mail/
====================​====================​====================​==

File [changed]: MboxParserTest.java
Url: http://eyebrowse.tig​ris.org/source/brows​e/eyebrowse/src/test​/org/tigris/eyebrows​e/util/mail/MboxPars​erTest.java.diff?r1=​1.1&r2=1.2
Delta lines: +8 -4
-------------------
--- MboxParserTest.java 22 Apr 2003 19:26:48 -0000 1.1
+++ MboxParserTest.java 22 Apr 2003 22:31:15 -0000 1.2
@@ -61,7 +61,7 @@
  * Tests Eyebrowse MboxParser.
  *
  * @author <a href="mailto:aguenth​er at collab dot net">An​dreas Guenther</a>
- * @version $Id: MboxParserTest.java,v 1.1 2003/04/22 19:26:48 aguenther Exp $
+ * @version $Id: MboxParserTest.java,v 1.2 2003/04/22 22:31:15 aguenther Exp $
  */
 public class MboxParserTest extends TestCase
 {
@@ -113,13 +113,17 @@
     }
 
     /**
- * Tests the MboxParser and MimeMessage extension classes.
+ * 100000 seems to be a reasonable number of objects to test
+ * proper file handle closure. These objects are successively
+ * created and destroyed.
      */
- public void testCreateManyParsers()
+ public void testInstanceCleanup()
     {
+ final int NUMBER_OF_PARSER_INS​TANCES_FOR_BREAKAGE = 100000;
+
         MboxParser tempParser = null;
 
- for (int i = 0; i < 100000; i++)
+ for (int i = 0; i < NUMBER_OF_PARSER_INS​TANCES_FOR_BREAKAGE;​ i++)
         {
             try
             {




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@eyeb​rowse.tigris.org
For additional commands, e-mail: cvs-help at eyebrowse dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /eyebrowse/src/test/org/tigris/eyebrowse/util/mail/ aguenther Andreas Guenther 2003-04-22 15:31:16 PDT
Messages per page: