Dedicated to Financial Engineering

Test

Introduction

In this blog we will show how a WEB API created using Tapestry can be tested. Testing a web service is not straight forward as the PageTester, the default way of testing in Tapestry, doesn't allow for testing API. To overcome this difficulty we must start a Jetty server with custom/test web.xml. The test web.xml allows us to control the construction of objects. In this example we show how a mock service object can be inserted for testing, while using the full implementation for production.

This blog is part of a series of blogs on Tapestry that explains how to build a "simple" hello world example html page and expose the functionality of the page(s) via a WEB API. In a previous blog we showed how to setup a web API that responses in either XML or JSON. If you haven't read it yet, it's probably a good idea to have a look at this blog first before proceeding.

This blog picks things up from another previous blog in the series on testing page. The basic of testing a webpage generated with Tapestry are explained there. In this blog we will build on the code previously created.

Topics

What We Do

Modeling

We build financial models. We do this both within the Ugly Duckling team and embedded in your organization. When building models we often use the existing Ugly Duckling code base and research. This makes the modeling faster and more efficient.

Validation

We love details. When given the chance, we deep dive into a model and validate its mathematical, financial and implementation details. We also find it a rich experience to explore the models of others and learn for their approach. In most cases we contribute to make an even better model thanks to the feedback we provide as part of the process.

Research

Ugly Duckling is dedicated to expand the body of mathematical finance knowledge. To do so we invest in a continuous research effort. These efforts keep us up-to-dated on the new developments in finance. So when you encounter a challenge for which no solution exists in the literature, please call us. We can help.