This is the method I'm using. public static org.apache.synapse.MessageContext getTestContext(java.lang.String bodyText, java.util.Map props) throws java.lang.Exception;
On Thu, Aug 7, 2014 at 11:32 PM, Ishara Premadasa <ish...@wso2.com> wrote: > Hi Shameera, > > I tried with the synapse-core dependency only at first. However there is > this TestUtils class which is required to Junit test class for custom > mediator that is not coming from synapse-core. > > @Chamara, > Can you please clarify here on this TestUtils class? > > Thanks! > Ishara > > > On Thu, Aug 7, 2014 at 1:44 PM, Shameera Rathnayaka <shame...@wso2.com> > wrote: > >> Even though jar name is synapse-core-test its artifactId is synapse-core >> , try with >> >> <dependency> >> <groupId>org.apache.synapse</groupId> >> <artifactId>synapse-core</artifactId> >> <version>2.1.2-wso2v4</version> >> </dependency> >> >> ~Shameera. >> >> >> On Thu, Aug 7, 2014 at 9:58 PM, Ishara Premadasa <ish...@wso2.com> wrote: >> >>> Hi all, >>> >>> I get the following build error when trying to check out remote ESB >>> mediator project and trying to build it online. Since there are test cases >>> created for the class mediators, it is required to add synapse-core-tests >>> dependency into the pom.xml and use that in the test cases. Below is the >>> dependency and my maven repository entry. >>> >>> <dependency> >>> <groupId>org.apache.synapse</groupId> >>> <artifactId>synapse-core-tests</artifactId> >>> <version>2.1.2-wso2v4</version> >>> </dependency> >>> <repository> >>> <releases> >>> <enabled>true</enabled> >>> <updatePolicy>daily</updatePolicy> >>> <checksumPolicy>ignore</checksumPolicy> >>> </releases> >>> <id>wso2-nexus</id> >>> <url>http://maven.wso2.org/nexus/content/groups/wso2-public/ >>> </url> >>> </repository> >>> >>> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: >>> Failure to find org.apache.synapse:synapse-core-tests:jar:2.1.2-wso2v4 in >>> http://maven.wso2.org/nexus/content/groups/ws >>> o2-public/ was cached in the local repository, resolution will not be >>> reattempted until the update interval of wso2-nexus has elapsed or updates >>> are forced >>> at >>> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:232) >>> at >>> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206) >>> at >>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:599) >>> at >>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:518) >>> at >>> org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:436) >>> ... 26 more >>> [ERROR] >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >>> [ERROR] >>> >>> This says unable to find >>> org.apache.synapse:synapse-core-tests:jar:2.1.2-wso2v4 jar but if you >>> traverse this can be located in neus-repo [1]. >>> Any help is appreciated. >>> >>> [1] >>> http://maven.wso2.org/nexus/content/groups/wso2-public/org/apache/synapse/synapse-core/2.1.2-wso2v4/ >>> >>> Thanks! >>> Ishara >>> -- >>> Ishara Premasada >>> Software Engineer, >>> WSO2 Inc. http://wso2.com/ >>> >>> >>> *Blog : http://isharapremadasa.blogspot.com/ >>> <http://isharapremadasa.blogspot.com/>Twitter : >>> https://twitter.com/ishadil <https://twitter.com/ishadil> Mobile : >>> +94 714445832 <%2B94%20714445832>* >>> >>> >>> >> >> >> -- >> *Software Engineer - WSO2 Inc.* >> *email: shameera AT wso2.com <shame...@wso2.com> , shameera AT apache.org >> <shame...@apache.org>* >> *phone: +9471 922 1454 <%2B9471%20922%201454>* >> >> *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561 >> *Twitter : *https://twitter.com/Shameera_R >> > > > > -- > Ishara Premasada > Software Engineer, > WSO2 Inc. http://wso2.com/ > > > *Blog : http://isharapremadasa.blogspot.com/ > <http://isharapremadasa.blogspot.com/>Twitter : > https://twitter.com/ishadil <https://twitter.com/ishadil> Mobile : > +94 714445832 <%2B94%20714445832>* > > > -- *Chamara Ariyarathne* Senior Software Engineer - QA; WSO2 Inc; http://www.wso2.com/. Mobile; *+94772786766*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev