1 | class BSFPostProcessor extends BSFTestElement implements Cloneable, PostProcessor, TestBean↵ | | 1 | class BSFPreProcessor extends BSFTestElement implements Cloneable, PreProcessor, TestBean↵
|
2 | {↵ | | 2 | {↵
|
3 | private static final Logger log = LoggingManager.getLoggerForClass();↵ | | 3 | private static final Logger log = LoggingManager.getLoggerForClass();↵
|
4 | ↵ | | 4 | ↵
|
5 | private static final long serialVersionUID = 232L;↵ | | 5 | private static final long serialVersionUID = 232L;↵
|
6 | ↵ | | 6 | ↵
|
7 | public void process(){↵ | | 7 | public void process(){↵
|
8 | try {↵ | | 8 | try {↵
|
9 | BSFManager mgr = getManager();↵ | | 9 | BSFManager mgr = getManager();↵
|
10 | if (mgr == null) { return; }↵ | | 10 | if (mgr == null) { return; }↵
|
11 | processFileOrScript(mgr);↵ | | 11 | processFileOrScript(mgr);↵
|
12 | mgr.terminate();↵ | | 12 | mgr.terminate();↵
|
13 | } catch (BSFException e) {↵ | | 13 | } catch (BSFException e) {↵
|
14 | log.warn("Problem in BSF script "+e);↵ | | 14 | log.warn("Problem in BSF script "+e);↵
|
15 | }↵ | | 15 | }↵
|
16 | } | | 16 | }
|