This file contains hidden or 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
@Transactional(readOnly = false, value = "dwTransactionManager") | |
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(locations = "/integration/test/config/spring/integrationTestBeans.xml") | |
public class RetrievePlayerInformationStoriesTest { | |
@Resource | |
private ApplicationContext context; | |
private Embedder embedder; | |
@Before |
This file contains hidden or 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
@Component | |
public class PlayerSteps { | |
@Resource | |
private PlayerManagementService service; | |
@Resource(name="dwDataSource") | |
private DataSource dataSource; | |
private Player player; |
This file contains hidden or 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 PlayerStoriesEmbedder extends Embedder { | |
private Configuration config; | |
private final CrossReference xref = new CrossReference(); | |
//Tell JBehave what to do when running | |
@Override | |
public EmbedderControls embedderControls() { | |
return new EmbedderControls().doGenerateViewAfterStories(true).doIgnoreFailureInStories(false) | |
.doIgnoreFailureInView(true).doVerboseFailures(true).useThreads(1);//.useStoryTimeoutInSecs(60); |
This file contains hidden or 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
@Transactional(readOnly=false, value="dwTransactionManager") | |
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(locations="/integration/test/config/spring/integrationTestBeans.xml") | |
public class PlayerManagementDaoJpaTest { | |
@Resource | |
private PlayerManagementDao dao; | |
@Resource(name="dwDataSource") | |
private DataSource dataSource; |
This file contains hidden or 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
Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600) | |
Maven home: c:\dev\apache-maven-3.0.3 | |
Java version: 1.6.0_30, vendor: Sun Microsystems Inc. | |
Java home: c:\dev\jdk1.6.0_30\jre | |
Default locale: en_US, platform encoding: Cp1252 |
This file contains hidden or 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
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for ca.mb.mlc:ConvergencePlayerManagementIntegrationTests:jar:1.0-SNAPSHOT | |
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ ca.mb.mlc:ConvergencePilotParentPom:1.0-SNAPSHOT, c:\dev\workspace\ConvergencePilot\ConvergencePilotParentPom\pom.xml, line 264, column 12 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] |
This file contains hidden or 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
//ERROR is: | |
/* | |
Caused by: org.apache.camel.CamelExchangeException: No consumers available on endpoint: Endpoint[direct://updatePlayer]. Exchange[Message: [DataWarehousePlayer [id=-99, name=PersonName [firstName=Rusty, lastName=Shackleford], sugarPlayer=true, advantagePlayer=false], DataWarehousePlayer [id=-99, name=PersonName [firstName=Rusty, lastName=Shackleford], sugarPlayer=true, advantagePlayer=true]]] | |
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:56) | |
at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWorkProcessor.java:150) | |
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:117) | |
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:99) | |
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:86) | |
at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63) | |
at org.apache.camel.impl.ProducerCache$2.doInProducer(ProducerCache.java:352) |
This file contains hidden or 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
Object ret = camelProducerTemplate.requestBody("direct:updatePlayer", updatedPlayer); | |
. | |
. | |
. | |
. | |
from("direct:updatePlayer") |
This file contains hidden or 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
from("direct:removeFromCRM") | |
.bean(CRMService, "deletePlayer") | |
// <-- discard output from bean component above, instead pass the original exchange's body to enrich --> // | |
.enrich("direct:clearInCRMFlag"); |
This file contains hidden or 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
<xsd:complexType name="wsPlayer"> | |
<xsd:sequence> | |
<xsd:element name="id" type="xsd:int" /> | |
<xsd:element name="firstName" type="xsd:string" /> | |
<xsd:element name="lastName" type="xsd:string" /> | |
<xsd:element name="street" type="xsd:string" minOccurs="0" /> | |
<xsd:element name="city" type="xsd:string" minOccurs="0" /> | |
<xsd:element name="province" type="xsd:string" minOccurs="0" /> | |
<xsd:element name="postal" type="xsd:string" minOccurs="0" /> | |
<xsd:sequence minOccurs="0" maxOccurs="unbounded"> |