JBoss JBPM SVN: r6966 - jbpm3/branches/jbpm-3.2-soa.
by do-not-reply@jboss.org
Author: marco.rietveld
Date: 2011-07-14 08:17:20 -0400 (Thu, 14 Jul 2011)
New Revision: 6966
Removed:
jbpm3/branches/jbpm-3.2-soa/.project
Log:
Not source.
Deleted: jbpm3/branches/jbpm-3.2-soa/.project
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/.project 2011-07-14 09:31:33 UTC (rev 6965)
+++ jbpm3/branches/jbpm-3.2-soa/.project 2011-07-14 12:17:20 UTC (rev 6966)
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>jbpm</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.maven.ide.eclipse.maven2Builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.maven.ide.eclipse.maven2Nature</nature>
- </natures>
-</projectDescription>
12 years, 11 months
JBoss JBPM SVN: r6965 - jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/persistence/jta.
by do-not-reply@jboss.org
Author: marco.rietveld
Date: 2011-07-14 05:31:33 -0400 (Thu, 14 Jul 2011)
New Revision: 6965
Modified:
jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java
Log:
JBPM-3274: fix for rollback exception hiding original exception
Modified: jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java 2011-07-13 12:02:50 UTC (rev 6964)
+++ jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/persistence/jta/JtaDbPersistenceService.java 2011-07-14 09:31:33 UTC (rev 6965)
@@ -132,6 +132,9 @@
catch (SystemException e) {
return e;
}
+ catch (RuntimeException e) {
+ return e;
+ }
}
else {
TransactionManager transactionManager = getTransactionManager();
12 years, 11 months
JBoss JBPM SVN: r6964 - jbpm3/branches/jbpm-3.2-soa/core/src/test/java/org/jbpm/mail.
by do-not-reply@jboss.org
Author: marco.rietveld
Date: 2011-07-13 08:02:50 -0400 (Wed, 13 Jul 2011)
New Revision: 6964
Modified:
jbpm3/branches/jbpm-3.2-soa/core/src/test/java/org/jbpm/mail/MailTest.java
Log:
Added *StaticMethod() tests, because of an issue that I can no longer remember. Sorry!
Modified: jbpm3/branches/jbpm-3.2-soa/core/src/test/java/org/jbpm/mail/MailTest.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/core/src/test/java/org/jbpm/mail/MailTest.java 2011-07-06 11:12:35 UTC (rev 6963)
+++ jbpm3/branches/jbpm-3.2-soa/core/src/test/java/org/jbpm/mail/MailTest.java 2011-07-13 12:02:50 UTC (rev 6964)
@@ -1,8 +1,10 @@
package org.jbpm.mail;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Properties;
import javax.mail.Address;
import javax.mail.MessagingException;
@@ -76,6 +78,28 @@
assert Arrays.equals(InternetAddress.parse("sample.shipper(a)example.domain"), email.getRecipients(RecipientType.TO));
}
+ public void testWithoutAddressResolvingStaticMethod() throws MessagingException, IOException {
+ String to = "sample.shipper(a)example.domain";
+ String subject = "latest news";
+ String text = "roy is assurancetourix";
+
+ Properties serverProperties = new Properties();
+ serverProperties.setProperty("mail.smtp.port", "2525");
+ serverProperties.setProperty("mail.smtp.host", "localhost");
+ ArrayList recipients = new ArrayList();
+ recipients.add(to);
+ Mail.send(serverProperties, null, recipients, subject, text);
+
+ List messages = wiser.getMessages();
+ assertEquals(1, messages.size());
+
+ WiserMessage message = (WiserMessage) messages.get(0);
+ MimeMessage email = message.getMimeMessage();
+ assertEquals("latest news", email.getSubject());
+ assertEquals("roy is assurancetourix", email.getContent());
+ assert Arrays.equals(InternetAddress.parse("sample.shipper(a)example.domain"), email.getRecipients(RecipientType.TO));
+ }
+
public void testMailWithAddressResolving() throws MessagingException, IOException {
String actors = "manager";
String subject = "latest news";
@@ -93,7 +117,7 @@
assertEquals("roy is assurancetourix", email.getContent());
assert Arrays.equals(InternetAddress.parse("manager(a)example.domain"), email.getRecipients(RecipientType.TO));
}
-
+
public void testMailWithBccAddress() throws MessagingException, IOException {
String bcc = "bcc(a)example.domain";
String subject = "latest news";
@@ -111,7 +135,30 @@
assertEquals("roy is assurancetourix", email.getContent());
assertNull(email.getRecipients(RecipientType.TO));
}
+
+ public void testMailWithBccAddressStaticMethod() throws MessagingException, IOException {
+ String bcc = "bcc(a)example.domain";
+ String subject = "latest news";
+ String text = "roy is assurancetourix";
+ Properties serverProperties = new Properties();
+ serverProperties.setProperty("mail.smtp.port", "2525");
+ serverProperties.setProperty("mail.smtp.host", "localhost");
+ ArrayList bccRecipients = new ArrayList();
+ bccRecipients.add(bcc);
+ Mail.send(serverProperties, null, null, bccRecipients, subject, text);
+
+ List messages = wiser.getMessages();
+ assertEquals(1, messages.size());
+
+ WiserMessage message = (WiserMessage) messages.get(0);
+ MimeMessage email = message.getMimeMessage();
+ assertEquals("latest news", email.getSubject());
+ assertEquals("roy is assurancetourix", email.getContent());
+ assertNull(email.getRecipients(RecipientType.TO));
+ }
+
+
public void testMailNodeAttributes() throws MessagingException, IOException {
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(XML_DECL
+ "<process-definition>"
12 years, 11 months
JBoss JBPM SVN: r6963 - jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/context/log/variableinstance.
by do-not-reply@jboss.org
Author: marco.rietveld
Date: 2011-07-06 07:12:35 -0400 (Wed, 06 Jul 2011)
New Revision: 6963
Modified:
jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.java
Log:
JBPM-3237, SOA-3111: HibernateStringUpdateLog getters always return null.
Modified: jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.java
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.java 2011-06-17 11:05:59 UTC (rev 6962)
+++ jbpm3/branches/jbpm-3.2-soa/core/src/main/java/org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.java 2011-07-06 11:12:35 UTC (rev 6963)
@@ -41,11 +41,11 @@
}
public Object getOldValue() {
- return null;
+ return this.oldValue;
}
public Object getNewValue() {
- return null;
+ return this.newValue;
}
}
12 years, 11 months