01: package org.mockejb.test;
02:
03: /**
04: * This is the example of the "external service" interface.
05: * This service is not part of the unit that we're testing,
06: * so we don't want to depend on it. Therefore, instead of deploying a
07: * real "ExternalService" EJB, we want to provide its mock implementation which
08: * always return known test data. This implementation is provided as the nested class
09: * <code>MockEjbTest.ExternalServiceMockBean</code>
10: *
11: * @author Alexander Ananiev
12: */
13: public interface ExternalService {
14:
15: public final static String JNDI_NAME = "mockejb/ExternalService";
16:
17: String sampleMethod();
18:
19: }
|