@Test public void testSelect() throws Throwable { String result = new BSHGroupSelector().select(100L, new EOFException()); assertEquals("", result, "result"); }
public String select(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "select"); String result = null; if (selectMethod != null) { try { result = (String) executeMethod(selectMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessage(ex); } } if (result == null) { result = defaultSelect(id, context); } ev.addMessage("result", result); Logger.log(ev); return result; }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String select(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "select"); String result = null; if (selectMethod != null) { try { result = (String) executeMethod(selectMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessage(ex); } } if (result == null) { result = defaultSelect(id, context); } ev.addMessage("result", result); Logger.log(ev); return result; } }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String select(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "select"); String result = null; if (selectMethod != null) { try { result = (String) executeMethod(selectMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessage(ex); } } if (result == null) { result = defaultSelect(id, context); } ev.addMessage("result", result); Logger.log(ev); return result; }  }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String select(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "select"); String result = null; if (selectMethod != null) { try { result = (String) executeMethod(selectMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessage(ex); } } if (result == null) { result = defaultSelect(id, context); } ev.addMessage("result", result); Logger.log(ev); return result; }  void setConfiguration(Element e); String select(long id, java.io.Serializable context); String defaultSelect(long id, Serializable context); }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String select(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "select"); String result = null; if (selectMethod != null) { try { result = (String) executeMethod(selectMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessage(ex); } } if (result == null) { result = defaultSelect(id, context); } ev.addMessage("result", result); Logger.log(ev); return result; }  void setConfiguration(Element e); String select(long id, java.io.Serializable context); String defaultSelect(long id, Serializable context);  }