This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Execution forkB = runtimeService.createExecutionQuery() | |
.activityId("Task_B") | |
.processInstanceId(pid) | |
.singleResult(); | |
log.debug("Found forked execution {} in Task B activity for process {}", forkB, pid); | |
runtimeService.signal(forkB.getId()); | |
log.debug("Advanced fork B, waiting in concurrent activities B1 and B2"); | |
assertThat(runtimeService.getActiveActivityIds(pid)).containsOnly("Task_B1", "Task_B2"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="dataSource" class="org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy"> | |
<property name="targetDataSource"> | |
<bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> | |
<property name="driverClassName" value="org.h2.Driver" /> | |
<property name="url" value="jdbc:h2:~/workspace/h2/activiti;DB_CLOSE_ON_EXIT=FALSE;TRACE_LEVEL_FILE=4" /> | |
<property name="username" value="sa" /> | |
<property name="password" value="" /> | |
</bean> | |
</property> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration | |
@Transactional | |
public class MainControllerTest { | |
//... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$ javap -c Book | |
//... | |
public Book(java.lang.String, java.lang.String, int); | |
Code: | |
0: aload_0 | |
1: aload_1 | |
2: putfield #28; //Field author:Ljava/lang/String; | |
5: aload_0 | |
6: aload_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:spring="http://www.springframework.org/schema/beans" | |
xmlns:xmpp="http://www.mulesoft.org/schema/mule/xmpp" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | |
http://www.mulesoft.org/schema/mule/core http://www.mulesource.org/schema/mule/core/3.0/mule.xsd | |
http://www.mulesoft.org/schema/mule/xmpp http://www.mulesource.org/schema/mule/xmpp/3.0/mule-xmpp.xsd | |
"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<configuration> | |
<root level="ALL"> | |
<appender name="NULL" class="ch.qos.logback.core.OutputStreamAppender"> | |
<encoder> | |
<pattern>%m%n</pattern> | |
</encoder> | |
<outputStream class="org.apache.commons.io.output.NullOutputStream"/> | |
</appender> | |
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DefaultFooServiceTest { | |
private FooService fooService = new DefaultFooService(); | |
@Rule | |
public ExpectedException exception = new ExpectedException(); | |
@Test | |
public void shouldThrowNpeWhenNullName() throws Exception { | |
//given |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.springframework.scripting.js; | |
public interface HelloService { | |
String hello(String name); | |
String helloParameterized(String name, Date effectiveDate, int age, Locale locale); | |
} |
NewerOlder