Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r30 - trunk/src: main/jibx test/java/com/artilekt/modules/jetmailer

jetmailer
Discussion topic

Back to topic list

svn commit: r30 - trunk/src: main/jibx test/java/com/artilekt/modules/jetmailer

Reply

Author volenin
Full name Vladimir Olenin
Date 2006-09-11 12:24:56 PDT
Message Author: volenin
Date: 2006-09-11 12:24:55-0700
New Revision: 30

Added:
   trunk/src/test/java/​com/artilekt/modules​/jetmailer/message2.​xml
Modified:
   trunk/src/main/jibx/​message-binding.xml
   trunk/src/test/java/​com/artilekt/modules​/jetmailer/JiBXSeria​lizerTest.java

Log:


Modified: trunk/src/main/jibx/​message-binding.xml
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/main/jibx/message-​binding.xml?view=dif​f&rev=30&p1=​trunk/src/main/jibx/​message-binding.xml​&p2=trunk/src/mai​n/jibx/message-bindi​ng.xml&r1=29​&r2=30
====================​====================​====================​==================
--- trunk/src/main/jibx/​message-binding.xml (original)
+++ trunk/src/main/jibx/​message-binding.xml 2006-09-11 12:24:55-0700
@@ -8,7 +8,7 @@
     <value name="subject" field="subject"/>
     <value name="body" field="body"/>
 
- <collection name="attachments" field="attachments" factory="org.jibx.ru​ntime.Utility.arrayL​istFactory">
+ <collection usage="optional" name="attachments" field="attachments" factory="org.jibx.ru​ntime.Utility.arrayL​istFactory">
       <structure name="attachment" value-style="attribute" type="com.artilekt.m​odules.jetmailer.mod​el.Attachment">
         <value name="file" field="path" />
       </structure>

Modified: trunk/src/test/java/​com/artilekt/modules​/jetmailer/JiBXSeria​lizerTest.java
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/jetmail​er/JiBXSerializerTes​t.java?view=diff​&rev=30&p1=trunk​/src/test/java/com/a​rtilekt/modules/jetm​ailer/JiBXSerializer​Test.java&p2=tru​nk/src/test/java/com​/artilekt/modules/je​tmailer/JiBXSerializ​erTest.java&r1=2​9&r2=30
====================​====================​====================​==================
--- trunk/src/test/java/​com/artilekt/modules​/jetmailer/JiBXSeria​lizerTest.java (original)
+++ trunk/src/test/java/​com/artilekt/modules​/jetmailer/JiBXSeria​lizerTest.java 2006-09-11 12:24:55-0700
@@ -24,6 +24,10 @@
     Resource res = new PackageResource(JiBX​SerializerTest.class​, "message.xml");
     Message msg = unmarshallMessage(re​s.getInputStream());​
     System.out.println("Message = "+msg);
+
+ res = new PackageResource(JiBX​SerializerTest.class​, "message2.xml");
+ msg = unmarshallMessage(re​s.getInputStream());​
+ System.out.println("Message = "+msg);
   }
 
 

Added: trunk/src/test/java/​com/artilekt/modules​/jetmailer/message2.​xml
Url: http://jetmailer.tig​ris.org/source/brows​e/jetmailer/trunk/sr​c/test/java/com/arti​lekt/modules/jetmail​er/message2.xml?view​=auto&rev=30
====================​====================​====================​==================
--- (empty file)
+++ trunk/src/test/java/​com/artilekt/modules​/jetmailer/message2.​xml 2006-09-11 12:24:55-0700
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<message>
+ <from>myemail@​mydomain.com</fro​m>
+ <to>$email</to>
+ <subject>To the attention of: $name</subject>
+
+ <body>
+ Hi, $alias
+ This is a sample message. Anything can go here. Regards.
+ </body>
+
+</message>

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

Messages

Show all messages in topic

svn commit: r30 - trunk/src: main/jibx test/java/com/artilekt/modules/jetmailer volenin Vladimir Olenin 2006-09-11 12:24:56 PDT
Messages per page: