Use mock service in Seam project

73 Views Asked by At

I'm redesigning an improvement of a platform that already exists developed with Seam framework version 2.1.1.RA2, Java 6 and JBoss 4.2.3.GA and Ivy. I have 4 modules that communicate with each other. I want to modify one of these modules independently of others. I just want to know how to make a simulation of one module using the mock service.

1

There are 1 best solutions below

1
stakahop On

Using beans.xml file you can add alternatives to your project. My suggestion is to use one interface with method definitions and make one bean with real implementation and one with mock implementation. In beans.xml just specify that you want to use class with mock implementation.

http://seamframework.org/Documentation/WhatIsBeansxmlAndWhyDoINeedIt.html