01: package com.mockrunner.gen.proc;
02:
03: public class EJBBasicAdapterProcessor extends BasicAdapterProcessor {
04: protected String[] getTearDownMethodCodeLines(MemberInfo memberInfo) {
05: String[] codeLines = new String[7];
06: codeLines[0] = "super.tearDown();";
07: codeLines[1] = "if(null != " + memberInfo.getFactoryMember()
08: + ")";
09: codeLines[2] = "{";
10: codeLines[3] = " " + memberInfo.getFactoryMember()
11: + ".resetMockContextFactory();";
12: codeLines[4] = "}";
13: codeLines[5] = memberInfo.getModuleMember() + " = null;";
14: codeLines[6] = memberInfo.getFactoryMember() + " = null;";
15: return codeLines;
16: }
17: }
|