@Test public void testInThrowsSpaceError() throws Throwable { assertThrows(SpaceError.class, () -> { SpaceLet spaceLet = new SpaceLet(); spaceLet.in(""); }); }
public Object in (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.in (key); } } } catch (Throwable t) { throw new SpaceError (t); } }
SpaceLet extends QBeanSupport implements Space { public Object in (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.in (key); } } } catch (Throwable t) { throw new SpaceError (t); } } }
SpaceLet extends QBeanSupport implements Space { public Object in (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.in (key); } } } catch (Throwable t) { throw new SpaceError (t); } }  }
SpaceLet extends QBeanSupport implements Space { public Object in (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.in (key); } } } catch (Throwable t) { throw new SpaceError (t); } }  void initService(); void startService(); void stopService(); void out(Object key, Object value); void out(Object key, Object value, long timeout); void push(Object key, Object value); void push(Object key, Object value, long timeout); void put(Object key, Object value); void put(Object key, Object value, long timeout); Object in(Object key); Object rd(Object key); Object in(Object key, long timeout); Object rd(Object key, long timeout); Object inp(Object key); Object rdp(Object key); boolean existAny(Object[] keys); boolean existAny(Object[] keys, long timeout); void nrd(Object key); Object nrd(Object key, long timeout); }
SpaceLet extends QBeanSupport implements Space { public Object in (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.in (key); } } } catch (Throwable t) { throw new SpaceError (t); } }  void initService(); void startService(); void stopService(); void out(Object key, Object value); void out(Object key, Object value, long timeout); void push(Object key, Object value); void push(Object key, Object value, long timeout); void put(Object key, Object value); void put(Object key, Object value, long timeout); Object in(Object key); Object rd(Object key); Object in(Object key, long timeout); Object rd(Object key, long timeout); Object inp(Object key); Object rdp(Object key); boolean existAny(Object[] keys); boolean existAny(Object[] keys, long timeout); void nrd(Object key); Object nrd(Object key, long timeout);  }