Hi Miyuru, I fixed above issue as you mentioned. But please note that following 2 scenarios will not work because of removing "/" at the end.
template = new URITemplate("/sanjeewa/{name,id}/*"); assertTrue(template.matches("/sanjeewa/user,190/", var)); template = new URITemplate("/sanjeewa/*"); assertTrue(template.matches("/sanjeewa/", var)); Thanks. Sanjeewa. On Thu, Apr 25, 2013 at 8:14 AM, Miyuru Wanninayaka <miy...@wso2.com> wrote: > This is because r153055 change done in URI template component > @SanjeewaM, can you fix this? just tailing / of url need to ignore > > On Wed, Apr 24, 2013 at 11:00 PM, Malith Dhanushka <mal...@wso2.com>wrote: > >> testBasicTemplateDispatch2 in URITemplateBasedDispatcherTest is failing. >> >> find the log, >> >> Running org.apache.synapse.rest.URITemplateBasedDispatcherTest >> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec >> <<< FAILURE! >> ....... >> >> Tests run: 296, Failures: 1, Errors: 0, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Apache Synapse - Secure vault ..................... SUCCESS >> [3.546s] >> [INFO] Apache Synapse .................................... SUCCESS >> [1.221s] >> [INFO] Apache Synapse - Commons classes .................. SUCCESS >> [5.395s] >> [INFO] Apache Synapse - Transports ....................... SUCCESS >> [0.855s] >> [INFO] Apache Synapse - Non-blocking HTTP/s Transport .... SUCCESS >> [5.812s] >> [INFO] Apache Synapse - PIPE Transport ................... SUCCESS >> [1.418s] >> [INFO] Apache Synapse - VFS Transport .................... SUCCESS >> [9.010s] >> [INFO] Apache Synapse - Tasks classes .................... SUCCESS >> [1.235s] >> [INFO] Apache Synapse - Core ............................. FAILURE >> [1:52.998s] >> [INFO] Apache Synapse - FIX Transport .................... SKIPPED >> [INFO] Apache Synapse - Extensions ....................... SKIPPED >> [INFO] Apache Synapse - Samples .......................... SKIPPED >> [INFO] Apache Synapse - Patches .......................... SKIPPED >> [INFO] Apache Synapse - Experimental code ................ SKIPPED >> [INFO] Apache Synapse - Web Application .................. SKIPPED >> [INFO] Apache Synapse - Handler Module ................... SKIPPED >> [INFO] Apache Synapse - XAR Maven Plugin ................. SKIPPED >> [INFO] Apache Synapse - Configuration Migrator ........... SKIPPED >> [INFO] Apache Synapse - Distribution ..................... SKIPPED >> [INFO] Apache Synapse - Package skeleton ZIP ............. SKIPPED >> [INFO] Apache Synapse - Package archetype ................ SKIPPED >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 2:22.610s >> [INFO] Finished at: Wed Apr 24 22:30:51 IST 2013 >> [INFO] Final Memory: 110M/1224M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-surefire-plugin:2.3:test (default-test) on >> project synapse-core: There are test failures. -> [Help 1] >> >> >> -- >> Malith Dhanushka >> >> Software Engineer >> ** >> *WSO2, Inc. : wso2.com* >> lean.enterprise.middleware. >> >> *Blog* : mmalithh.blogspot.com >> *Linked-i*n : http://lk.linkedin.com/in/malithd >> *Twitter* : https://twitter.com/MalithWD >> >> *Mobile* : +94 716 506 693 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Miyuru Wanninayaka > Senior Software Engineer - WSO2 Inc > +94-772099788 -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +14084122175 | +94713068779 <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev