commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1029514 - in /commons/proper/email/trunk/src: java/org/apache/commons/mail/ test/html/ test/org/apache/commons/mail/ test/org/apache/commons/mail/
Date Sun, 31 Oct 2010 23:20:00 GMT
Author: sgoeschl
Date: Sun Oct 31 23:19:59 2010
New Revision: 1029514

Improving tests


Modified: commons/proper/email/trunk/src/java/org/apache/commons/mail/
--- commons/proper/email/trunk/src/java/org/apache/commons/mail/ (original)
+++ commons/proper/email/trunk/src/java/org/apache/commons/mail/ Sun Oct
31 23:19:59 2010
@@ -499,6 +499,7 @@ public class MultiPartEmail extends Emai
         BodyPart bodyPart = new MimeBodyPart();
         return bodyPart;
      * Creates a mime multipart object.
@@ -509,7 +510,7 @@ public class MultiPartEmail extends Emai
         MimeMultipart mmp = new MimeMultipart();
         return mmp;
      * Checks whether there are attachments.

Modified: commons/proper/email/trunk/src/test/html/
--- commons/proper/email/trunk/src/test/html/ (original)
+++ commons/proper/email/trunk/src/test/html/ Sun Oct 31 23:19:59 2010
@@ -20,257 +20,7 @@
 <html xmlns="">
-   <!--
-            This file is generated from XML source: DO NOT EDIT!
-   -->
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-	<link rel="stylesheet" href="./style/compressed.css" type="text/css" media="screen, projection"/>
-	<link rel="stylesheet" href="./style/style.css" type="text/css" media="screen, projection"/>
-	<!--[if IE]><link rel="stylesheet" href="./style/ie.css" type="text/css" media="screen,
-<link rel="alternate" title=" Archives" type="application/atom+xml"
href="" />
-     <meta name="author" content="The Apache Software Foundation" /><meta name="email"
content="" />
-    <title>Welcome! - The Apache Software Foundation</title>
- </head>
- 	<div class="navigation">
-		<ul>
-			<li><a href="./foundation" title="About the Foundation">Foundation</a></li>
-			<li><a href="" title="Apache Projects">Projects</a></li>
-			<li><a href="" title="Apache People">People</a></li>
-			<li><a href="./foundation/getinvolved.html" title="Get involved in Apache">Get
-			<li><a href="./foundation/support-apache.html" title="Support the mission of
Apache">Support Apache</a></li>			
-			<li class="dlink"><a href="./dyn/closer.cgi" title="Download Apache projects">Download</a></li>
-			<li><a href="" title="Foundation Blog">ASF
-		</ul>
-	</div>
-	<div class="container">
-	<hr class="space col"/>
-	<div class="block">
-		<div class="column span-24">
-      <div id="header">
-                          <h1>The Apache Software Foundation<br />
-  <span class="alt"><small>Celebrating a Decade of Open Source Leadership.</small></span></h1><p
class="blurb">The Apache Software Foundation provides support for the Apache community
of open-source software projects.  The <a href="">Apache
projects</a> are characterized by a collaborative, consensus based development process,
an open and pragmatic software license, and a desire to create high quality software that
leads the way in its field.</p><p class="highlight">We are more than a group of
projects sharing a server, we are a <em>community</em> of developers and users.</p>
-               </div>
-      </div>
-	</div>
-	<hr/>
-	<div class="block">
-    		<div class="column span-15 first append-1">
-			<h3>
-                          Want to speak at ApacheCon NA 2010?
-              </h3>
-		</div>
-		<div class="column span-8 las search">
-    			<form action="" method="get">
-		         <input value="*" name="sitesearch" type="hidden"/>
-		         <input size="10" name="q" id="query" type="text"/>
-		         <input name="Search" value="Go" type="submit"/>
-	       </form>
-		</div>
-	</div>
-	<div class="block content">
-		<div class="column span-15 colborder">
-<div class="section-content">
-<p><a href="">ApacheCon NA 2010</a>
returns to Atlanta this year on 1-5 November, and the 
-<a href="">Call for Participation
for technical talks</a> is now open!
-We're looking to have a better conference than ever, including tracks planned by our PMCs
as well 
-as your technical session submissions.  CFP ends 28-May!</p>
-<h4 id="news">
-   Latest News
-<div class="section-content">
-<p><em>If you would like to keep up with news and announcements from the foundation
and all its projects, you can subscribe to the <a href="foundation/mailinglists.html#foundation-announce">Apache
Announcements List</a> or you can visit <a href="">our
foundation blog</a></em>. Latest blog entries:</p>
-<div id="latestnews">
-<a href="">The
Apache Software Foundation Announces Apache Tomcat Version 7.0</a>
-<br /><i>Posted at: 1:16 PM Jun 29, 2010</i></p>
-<a href="">The
Apache Software Foundation Announces New Top-Level Projects</a>
-<br /><i>Posted at: 12:09 PM May 4, 2010</i></p>
-<a href="">Call
for Participation: Technical Talks -- ApacheCon North America 2010</a>
-<br /><i>Posted at: 5:52 PM Apr 28, 2010</i></p>
-<a href="">The
Apache Software Foundation Announces Apache Cassandra Release 0.6</a>
-<br /><i>Posted at: 1:05 PM Apr 13, 2010</i></p>
-<a href="">The
Apache Software Foundation Receives Approval for Sale to Oracle Corporation</a>
-<br /><i>Posted at: 11:59 AM Apr 1, 2010</i></p>
-         </div>
-    <div class="column span-8 last">
-      <div class="block">
-        <div class="nav column span-11">
-          <div>
-               <div class="menuheader"><a 
-href="">Apache Projects</a></div> 
-  <ul>
-          <li><a href="" title="Apache Web Server (httpd)">HTTP
-          <li><a href="" title="Atom Publishing Protocol
-          <li><a href="" title="Distributed Messaging
-          <li><a href="" title="Java-based build tool">Ant</a></li>

-          <li><a href="" title="Apache Portable Runtime libraries">APR</a></li>

-          <li><a href="" title="Build Artifact Repository
-          <li><a href="" title="A Serialization System">Avro</a></li>

-          <li><a href="" title="Simple and intuitive build
system for Java applications">Buildr</a></li> 
-          <li><a href="" title="Spring based Integration
Framework which implements the Enterprise Integration Patterns">Camel</a></li>

-          <li><a href="" title="Highly scalable second-generation
distributed database">Cassandra</a></li> 
-          <li><a href="" title="User-friendly Java ORM
with Tools">Cayenne</a></li> 
-          <li><a href="" title="User-friendly page and component
oriented web framework">Click</a></li> 
-          <li><a href="" title="Web development framework:
separation of concerns, component-based">Cocoon</a></li> 
-          <li><a href="" title="Reusable Java components">Commons</a></li>

-          <li><a href="" title="Continuous Integration
and Build Server">Continuum</a></li> 
-          <li><a href="" title="RESTful document database">CouchDB</a></li>

-          <li><a href="" title="Service Framework">CXF</a></li>

-          <li><a href="" title="Database access">DB</a></li>

-          <li><a href="" title="Apache Directory Server">Directory</a></li>

-          <li><a href="" title="Embeddable software
libraries related to component and service management access">Excalibur</a></li>

-          <li><a href="" title="OSGi Framework and components.">Felix</a></li>

-          <li><a href="" title="Aggregated multi-channel
documentation, separation of concerns">Forrest</a></li> 
-          <li><a href="" title="Java2, Enterprise Edition
(J2EE) container">Geronimo</a></li> 
-          <li><a href="" title="Continuous integration of
open source projects">Gump</a></li> 
-          <li><a href="" title="Distributed computing platform">Hadoop</a></li>

-          <li><a href="" title="Open source implementation
of Java SE">Harmony</a></li> 
-          <li><a href="" title="Hadoop Database">HBase</a></li>

-          <li><a href="" title="Java toolset of low level HTTP
-          <li><a href="" title="Content Repository
for Java">Jackrabbit</a></li> 
-          <li><a href="" title="Server-side Java">Jakarta</a></li>

-          <li><a href="" title="Java Apache Mail Enterprise
-          <li><a href="" title="Content Management System">Lenya</a></li>

-          <li><a href="" title="Cross-language logging
-          <li><a href="" title="Search engine library">Lucene</a></li>

-          <li><a href="" title="Scalable machine learning
-          <li><a href="" title="Java project management
and comprehension tools">Maven</a></li> 
-          <li><a href="" title="Multipurpose Infrastructure
for Network Application">Mina</a></li> 
-          <li><a href="" title="JavaServer(tm) Faces implementation
and components">MyFaces</a></li> 
-          <li><a href="" title="Open Source Web Search Software">Nutch</a></li>

-          <li><a href="" title="Orchestration Director Engine:
Business Process Management (BPM), Process Orchestration and Workflow through service compositioni.">ODE</a></li>

-          <li><a href="" title="Open for Business: enterprise
automation software">OFBiz</a></li> 
-          <li><a href="" title="OpenEJB: a modular, configurable,
and extendable EJB Container System and Server">OpenEJB</a></li> 
-          <li><a href="" title="OpenJPA: Object Relational
Mapping for Java">OpenJPA</a></li> 
-          <li><a href="" title="OpenWebBeans: JSR-299
Context and Dependency Injection for Java EE Platform Implementation">OpenWebBeans</a></li>

-          <li><a href="" title="Java library for working
with PDF documents">PDFBox</a></li> 
-          <li><a href="" title="Dynamic websites using Perl">Perl</a></li>

-          <li><a href="" title="Rich Internet applications
in Java">Pivot</a></li> 
-          <li><a href="" title="Java API for OLE 2 Compound
-          <li><a href="" title="Portal technology">Portals</a></li>

-          <li><a href="" title="Multiple language implementation
of the latest Advanced Message Queuing Protocol (AMQP)">Qpid</a></li> 
-          <li><a href="" title="Java blog server">Roller</a></li>

-          <li><a href="" title="XML Security in Java
and C++">Santuario</a></li> 
-          <li><a href="" title="Enterprise Service
-          <li><a href="" title="Opensocial Reference Implementation">Shindig</a></li>

-          <li><a href="" title="Web Framework for JCR Content
-          <li><a href="" title="Mail filter to identify
-          <li><a href="" title="Apache C++ Standard Library">STDCXX</a></li>

-          <li><a href="" title="Model 2 framework for building
Java web applications">Struts</a></li> 
-          <li><a href="" title="Version Control">Subversion</a></li>

-          <li><a href="" title="Enterprise Service Bus
and Mediation Framework">Synapse</a></li> 
-          <li><a href="" title="Component-based Java
Web Application Framework">Tapestry</a></li> 
-          <li><a href="" title="Content Analysis and Detection
-          <li><a href="" title="Dynamic websites using TCL">TCL</a></li>

-          <li><a href="" title="A templating framework for
web application user interfaces">Tiles</a></li> 
-          <li><a href="" title="A Java Servlet and JSP
-          <li><a href="" title="A fast, scalable
and extensible HTTP/1.1 compliant caching proxy server">TrafficServer</a></li>

-          <li><a href="" title="A Java Servlet Web Application
Framework and associated component library">Turbine</a></li> 
-          <li><a href="" title="An SCA based Service Composition
-          <li><a href="" title="Framework and annotators
for unstructured information analysis">UIMA</a></li> 
-          <li><a href="" title="A Java Templating Engine">Velocity</a></li>

-          <li><a href="" title="Component-based Java Web
Application Framework.">Wicket</a></li> 
-          <li><a href="">Web Services</a></li>

-          <li><a href="" title="XSLT processors in Java
and C++">Xalan</a></li> 
-          <li><a href="" title="XML parsers in Java, C++
and Perl">Xerces</a></li> 
-          <li><a href="" title="XML solutions focused on the
-          <li><a href="" title="XML-Java binding tool">XMLBeans</a></li>

-          <li><a href="" title="Conversion from XML
to graphical output">XML Graphics</a></li> 
-      </ul>
-          </div>
-        </div>
-        <div class="nav column prepend-1 span-12 last">
-               <h6><a 
-  <ul>
-          <li><a href="/foundation/faq.html">FAQ</a></li> 
-          <li><a href="/licenses/">Licenses</a></li> 
-          <li><a href="/foundation/news.html">News</a></li> 
-          <li><a href="">Blog</a></li>

-          <li><a href="/foundation/records/">Public Records</a></li>

-          <li><a href="/press/">Press Inquiries</a></li> 
-          <li><a href="/foundation/contact.html">Contact</a></li>

-      </ul>
-      <h6><a 
-href="/foundation/support-apache.html">Support Apache</a></h6>
-  <ul>
-          <li><a href="/foundation/sponsorship.html">Sponsorship</a></li>

-          <li><a href="/foundation/contributing.html">Donations</a></li>

-          <li><a href="/foundation/buy_stuff.html">Buy Stuff</a></li>

-          <li><a href="/foundation/thanks.html">Thanks</a></li> 
-      </ul>
-      <h6><a 
-href="/foundation/foundation-projects.html">Foundation Projects</a></h6>
-  <ul>
-          <li><a href="" title="Inactive project repository">Attic</a></li>

-          <li><a href="/foundation/conferences.html" title="Meetings of developers
and users">Conferences</a></li> 
-          <li><a href="" title="Helping newcomers to
the ASF">Community Development</a></li> 
-          <li><a href="" title="Shepherd for new projects">Incubator</a></li>

-          <li><a href="/dev/infrastructure.html" title="Upholding the Foundation">Infrastructure</a></li>

-          <li><a href="/jcp/" title="Apache and the Java Community Process">JCP</a></li>

-          <li><a href="" title="The Innovation Laboratories
of the Apache Software Foundation">Labs</a></li> 
-          <li><a href="/legal/" title="Legal Affairs">Legal Affairs</a></li>

-          <li><a href="/security/" title="Security">Security</a></li>

-          <li><a href="/travel/" title="Travel Assistance">Travel Assistance</a></li>

-      </ul>
-      <h6>How it works</h6>
-  <ul>
-          <li><a href="/foundation/how-it-works.html">Introduction</a></li>

-          <li><a href="/foundation/how-it-works.html#meritocracy">Meritocracy</a></li>

-          <li><a href="/foundation/how-it-works.html#structure">Structure</a></li>

-          <li><a href="/foundation/how-it-works.html#roles">Roles</a></li>

-          <li><a href="/foundation/how-it-works.html#management">Collaboration</a></li>

-          <li><a href="/foundation/how-it-works.html#incubator">Incubator</a></li>

-          <li><a href="/foundation/how-it-works.html#other">Other entities</a></li>

-          <li><a href="/foundation/glossary.html">Glossary</a></li>

-          <li><a href="/foundation/voting.html">Voting</a></li> 
-      </ul>
-      <h6><a 
-href="/foundation/getinvolved.html">Get Involved</a></h6>
-  <ul>
-          <li><a href="/dyn/closer.cgi">Download</a></li> 
-          <li><a href="/foundation/mailinglists.html">Mailing Lists</a></li>

-          <li><a href="/dev/version-control.html">Version Control</a></li>

-          <li><a href="/dev/" title="Operations and howto documents for PMCs and
contributors">Developer Info</a></li> 
-      </ul>
-      <h6>Community</h6>
-  <ul>
-          <li><a href="">People</a></li>

-          <li><a href="/memorials/">Memorials</a></li> 
-          <li><a href="" title="Apache Podcasts">Feathercast</a></li>

-          <li><a href="" title="Apache Project Blogs">Project
-          <li><a href="" title="Apache Committers'
-      </ul>
-      <h6></h6>
-  <ul>
-      </ul>
-        </div>
-      </div>
-    </div>
-    <div class="column span-24 footer">
-      <hr/>
-        <p>Copyright &#169; 2010 The Apache Software Foundation, Licensed under
the <a href="">Apache License, Version 2.0</a>.<br/>
-        Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
-      </div>
-    </div>
-  </div>
+    <b>This is a HTML message with an inline image - <img src="../images/asf_logo_wide.gif"/>
and NO attachment</b>
+ </body>

Modified: commons/proper/email/trunk/src/test/org/apache/commons/mail/
--- commons/proper/email/trunk/src/test/org/apache/commons/mail/ (original)
+++ commons/proper/email/trunk/src/test/org/apache/commons/mail/ Sun Oct
31 23:19:59 2010
@@ -98,6 +98,7 @@ public class EmailLiveTest extends BaseE
+        email.setBounceAddress(EmailConfiguration.TEST_FROM);
@@ -245,8 +246,7 @@ public class EmailLiveTest extends BaseE
     public void testImageHtmlEmailLocal() throws Exception
-        // use a simple HTML page with one image - please note that the Apache logo
-        // is defined in CSS and not in HTML.
+        // use a simple HTML page with one image 
         File htmlFile = new File("./src/test/html/");
         String htmlMsg1 = FileUtils.readFileToString(htmlFile);

Modified: commons/proper/email/trunk/src/test/org/apache/commons/mail/
--- commons/proper/email/trunk/src/test/org/apache/commons/mail/ (original)
+++ commons/proper/email/trunk/src/test/org/apache/commons/mail/ Sun
Oct 31 23:19:59 2010
@@ -196,6 +196,7 @@ public class MultiPartEmailTest extends 
     public void testAttach() throws MalformedURLException, EmailException
         EmailAttachment attachment;
         // ====================================================================
         // Test Success - File
         // ====================================================================
@@ -204,6 +205,7 @@ public class MultiPartEmailTest extends 
         attachment.setDescription("Test Attachment Desc");
+        assertTrue(;
         // ====================================================================
         // Test Success - URL

View raw message