target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test public void testCreateBshMethod() throws Throwable { BSHMethod result = BSHMethod.createBshMethod(null); assertNull(result, "result"); }
public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheAtt.equalsIgn...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
@Test public void testCreateBshMethod1() throws Throwable { BSHMethod result = BSHMethod.createBshMethod(new Element("testBSHMethodName", Namespace.NO_NAMESPACE)); assertNull(result, "result"); }
public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheAtt.equalsIgn...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
@Test public void testCreateBshMethod2() throws Throwable { when(e.getTextTrim()).thenReturn("testStringtestStringtestStringIll(gal Surrogate Pair"); when(e.getAttributeValue("file")).thenReturn(null); BSHMethod result = BSHMethod.createBshMethod(e); assertNotNull(result, "result"); }
public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheAtt.equalsIgn...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
BSHMethod { public static BSHMethod createBshMethod(Element e) throws IOException { if (e == null) { return null; } String file = QFactory.getAttributeValue(e, "file"); String bsh; if (file != null) { boolean cache = false; String cacheAtt = QFactory.getAttributeValue(e, "cache"); if (cacheAtt != null) { cache = cacheA...
@Test public void testExecute() throws Throwable { HashMap result = (HashMap) new BSHMethod("testBSHMethodBshData", false).execute(arguments, new ArrayList()); assertEquals(0, result.size(), "result.size()"); }
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testInitService_InvalidThreadPoolType() throws Exception { qbeanConfigPw .println("<QThreadPoolExecutor type='somethingNotValid' />"); qbeanConfigPw.flush(); setQBeanConfig(qbeanConfigBos.toByteArray()); try { qbean.initService(); fail("ConfigurationException was expected"); } catch (ConfigurationExce...
@Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|scheduled|single})"); execSrvType = execSrvTypeAttr.getValue().trim(); if ("fixed".equals...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
@Test public void testExecute1() throws Throwable { Collection<String> returnNames = new ArrayList(); returnNames.add("testString"); HashMap result = (HashMap) new BSHMethod("testBSHMethodBshData", false).execute(new HashMap(), returnNames); assertEquals(1, result.size(), "result.size()"); assertNull(result.get("testSt...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecute2() throws Throwable { HashMap arguments = new HashMap(); arguments.put("testString", "testString"); String result = (String) new BSHMethod("testBSHMethodBshData", false).execute(arguments, "testString"); assertEquals("testString", result, "result"); }
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecute3() throws Throwable { Map arguments = new HashMap(100, 100.0F); Integer integer = Integer.valueOf(33); arguments.put("testString", integer); Integer result = (Integer) new BSHMethod("testBSHMethodBshData", false).execute(arguments, "testString"); assertSame(integer, result, "result"); }
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecute4() throws Throwable { Integer integer = Integer.valueOf(0); arguments.put("testString", integer); Integer result = (Integer) new BSHMethod("testBSHMethodBshData", false).execute(arguments, "testString"); assertSame(integer, result, "result"); }
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecute5() throws Throwable { Object result = new BSHMethod("testBSHMethodBshData", false).execute(new HashMap(), "testBSHMethodResultName"); assertNull(result, "result"); }
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsClassCastException() throws Throwable { Map<Integer, String> arguments = new HashMap(); arguments.put(Integer.valueOf(1), "1"); Collection<String> returnNames = new ArrayList(); try { new BSHMethod("testBSHMethodBshData", true).execute(arguments, returnNames); fail("Expected ClassCast...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsClassCastException1() throws Throwable { HashMap<Object, Comparable> arguments = new HashMap(); arguments.put(new Object(), "testString"); try { new BSHMethod("testBSHMethodBshData", true).execute(arguments, "testBSHMethodResultName"); fail("Expected ClassCastException to be thrown");...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsEvalError() throws Throwable { Collection returnNames = new ArrayList(); try { new BSHMethod("testBSHMethod\rBshData", false).execute(arguments, returnNames); fail("Expected EvalError to be thrown"); } catch (EvalError ex) { assertEquals( "Sourced file: inline evaluation of: ``testBSH...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsEvalError1() throws Throwable { Map<Object, Comparable<String>> arguments = new HashMap(); try { new BSHMethod("testBSHMethod\rBshData", false).execute(arguments, "testBSHMethodResultName"); fail("Expected EvalError to be thrown"); } catch (EvalError ex) { assertEquals( "Sourced file:...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsFileNotFoundException() throws Throwable { Map<Integer, ?> arguments = new HashMap(); Collection<?> returnNames = new ArrayList(); try { new BSHMethod("testBSHMethodBshData", true).execute(arguments, returnNames); fail("Expected FileNotFoundException to be thrown"); } catch (FileNotFo...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testInitService_FixedThreadPool_TypeAttributeIsMissing() throws Exception { qbeanConfigPw.println("<QThreadPoolExecutor />"); qbeanConfigPw.flush(); setQBeanConfig(qbeanConfigBos.toByteArray()); try { qbean.initService(); fail("ConfigurationException was expected"); } catch (ConfigurationException e) ...
@Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|scheduled|single})"); execSrvType = execSrvTypeAttr.getValue().trim(); if ("fixed".equals...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
@Test public void testExecuteThrowsFileNotFoundException1() throws Throwable { try { new BSHMethod("testBSHMethodBshData", true).execute(arguments, "testBSHMethodResultName"); fail("Expected FileNotFoundException to be thrown"); } catch (FileNotFoundException ex) { assertEquals(FileNotFoundException.class, ex.getClass(...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsNullPointerException() throws Throwable { Collection returnNames = new ArrayList(); try { new BSHMethod(null, false).execute(arguments, returnNames); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsNullPointerException1() throws Throwable { try { new BSHMethod("testBSHMethodBshData", false).execute(arguments, (Collection) null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), ...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testExecuteThrowsNullPointerException2() throws Throwable { Collection returnNames = new ArrayList(); try { new BSHMethod(null, true).execute(arguments, returnNames); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertNull(ex.getMessage(), "ex.getMessage()");...
public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); }
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
BSHMethod { public Object execute(Map arguments, String resultName) throws EvalError, IOException { Interpreter i = initInterpreter(arguments); return i.get(resultName); } BSHMethod(String bshData, boolean source); static BSHMethod createBshMethod(Element e); Object execute(Map arguments, String resultName); Map execut...
@Test public void testInitInterpreterThrowsClassCastException() throws Throwable { BSHMethod bSHMethod = new BSHMethod("testBSHMethodBshData", true); Map<Object, Object> arguments = new HashMap(); arguments.put(new Object(), "char7set"); try { bSHMethod.initInterpreter(arguments); fail("Expected ClassCastException to b...
protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData); } return ...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
@Test public void testInitInterpreterThrowsFileNotFoundException() throws Throwable { BSHMethod bSHMethod = new BSHMethod("testBSHMethodBshData", true); arguments.put("lt", ""); try { bSHMethod.initInterpreter(arguments); fail("Expected FileNotFoundException to be thrown"); } catch (FileNotFoundException ex) { assertEq...
protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData); } return ...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
@Test public void testInitInterpreterThrowsFileNotFoundException1() throws Throwable { BSHMethod bSHMethod = new BSHMethod("testBSHMethodBshData", true); try { bSHMethod.initInterpreter(arguments); fail("Expected FileNotFoundException to be thrown"); } catch (FileNotFoundException ex) { assertEquals(FileNotFoundExcepti...
protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData); } return ...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
@Test public void testInitInterpreterThrowsNullPointerException() throws Throwable { BSHMethod bSHMethod = new BSHMethod(null, false); try { bSHMethod.initInterpreter(arguments); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.get...
protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData); } return ...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
@Test public void testInitInterpreterThrowsNullPointerException1() throws Throwable { BSHMethod bSHMethod = new BSHMethod("testBSHMethodBshData", true); try { bSHMethod.initInterpreter(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { asse...
protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData); } return ...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
@Test public void testInitInterpreterThrowsParseException() throws Throwable { arguments.put("", new Object()); BSHMethod bSHMethod = new BSHMethod(":]Z", false); try { bSHMethod.initInterpreter(arguments); fail("Expected ParseException to be thrown"); } catch (ParseException ex) { assertThat(ex.getMessage(), allOf(not...
protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData); } return ...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
BSHMethod { protected Interpreter initInterpreter(Map arguments) throws EvalError, IOException { Interpreter i = new Interpreter(); Map.Entry entry; for (Object o : arguments.entrySet()) { entry = (Map.Entry) o; i.set((String) entry.getKey(), entry.getValue()); } if (source) { i.source(bshData); } else { i.eval(bshData...
@Test public void testInitService_FixedThreadPool_CorePoolSizeAttributeIsMissing() throws Exception { qbeanConfigPw.println("<QThreadPoolExecutor type='fixed' />"); qbeanConfigPw.flush(); setQBeanConfig(qbeanConfigBos.toByteArray()); try { qbean.initService(); fail("ConfigurationException was expected"); } catch (Confi...
@Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|scheduled|single})"); execSrvType = execSrvTypeAttr.getValue().trim(); if ("fixed".equals...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
@Test public void testGetTLV() { byte[] value = new byte[1]; byte[] result = tl.createTLVMsg(TEST_TAG1, value).getTLV(); assertArrayEquals(ISOUtil.hex2byte("640100"), result); }
public byte[] getTLV() { String hexTag = Integer.toHexString(tag); byte[] bTag = ISOUtil.hex2byte(hexTag); if (tagSize > 0) bTag = fitInArray(bTag, tagSize); byte[] bLen = getL(); byte[] bVal = getValue(); if (bVal == null) bVal = new byte[0]; int tLength = bTag.length + bLen.length + bVal.length; byte[] out = new byte...
TLVMsg implements Loggeable { public byte[] getTLV() { String hexTag = Integer.toHexString(tag); byte[] bTag = ISOUtil.hex2byte(hexTag); if (tagSize > 0) bTag = fitInArray(bTag, tagSize); byte[] bLen = getL(); byte[] bVal = getValue(); if (bVal == null) bVal = new byte[0]; int tLength = bTag.length + bLen.length + bVal...
TLVMsg implements Loggeable { public byte[] getTLV() { String hexTag = Integer.toHexString(tag); byte[] bTag = ISOUtil.hex2byte(hexTag); if (tagSize > 0) bTag = fitInArray(bTag, tagSize); byte[] bLen = getL(); byte[] bVal = getValue(); if (bVal == null) bVal = new byte[0]; int tLength = bTag.length + bLen.length + bVal...
TLVMsg implements Loggeable { public byte[] getTLV() { String hexTag = Integer.toHexString(tag); byte[] bTag = ISOUtil.hex2byte(hexTag); if (tagSize > 0) bTag = fitInArray(bTag, tagSize); byte[] bLen = getL(); byte[] bVal = getValue(); if (bVal == null) bVal = new byte[0]; int tLength = bTag.length + bLen.length + bVal...
TLVMsg implements Loggeable { public byte[] getTLV() { String hexTag = Integer.toHexString(tag); byte[] bTag = ISOUtil.hex2byte(hexTag); if (tagSize > 0) bTag = fitInArray(bTag, tagSize); byte[] bLen = getL(); byte[] bVal = getValue(); if (bVal == null) bVal = new byte[0]; int tLength = bTag.length + bLen.length + bVal...
@Test public void testAbort() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); bSHTransactionParticipant.abort(100L, new EOFException()); assertNull(bSHTransactionParticipant.abortMethod, "bSHTransactionParticipant.abortMethod"); assertFalse(bSHTransactionPartici...
public void abort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "abort"); if (abortMethod != null) { try { executeMethod(abortMethod, id, context, ev, ""); } catch (Exception ex) { ev.addMessage(ex); } } else { defaultAbort(id, context, ev); } if (trace) Logger.log(ev); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void abort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "abort"); if (abortMethod != null) { try { executeMethod(abortMethod, id, context, ev, ""); } catch (Except...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void abort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "abort"); if (abortMethod != null) { try { executeMethod(abortMethod, id, context, ev, ""); } catch (Except...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void abort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "abort"); if (abortMethod != null) { try { executeMethod(abortMethod, id, context, ev, ""); } catch (Except...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void abort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "abort"); if (abortMethod != null) { try { executeMethod(abortMethod, id, context, ev, ""); } catch (Except...
@Test public void testCommit() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); bSHTransactionParticipant.commit(100L, Boolean.TRUE); assertNull(bSHTransactionParticipant.commitMethod, "bSHTransactionParticipant.commitMethod"); assertFalse(bSHTransactionParticipa...
public void commit(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "commit"); if (commitMethod != null) { try { executeMethod(commitMethod, id, context, ev, ""); } catch (Exception ex) { ev.addMessage(ex); } } else { defaultCommit(id, context, ev); } if (trace) Logger.log(ev); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void commit(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "commit"); if (commitMethod != null) { try { executeMethod(commitMethod, id, context, ev, ""); } catch (Ex...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void commit(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "commit"); if (commitMethod != null) { try { executeMethod(commitMethod, id, context, ev, ""); } catch (Ex...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void commit(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "commit"); if (commitMethod != null) { try { executeMethod(commitMethod, id, context, ev, ""); } catch (Ex...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void commit(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "commit"); if (commitMethod != null) { try { executeMethod(commitMethod, id, context, ev, ""); } catch (Ex...
@Test public void testDefaultAbort() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); bSHTransactionParticipant.defaultAbort(100L, new File("testBSHTransactionParticipantParam1"), new LogEvent()); assertTrue(true, "Test completed without Exception"); }
protected void defaultAbort(long id, Serializable context, LogEvent ev) {}
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultAbort(long id, Serializable context, LogEvent ev) {} }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultAbort(long id, Serializable context, LogEvent ev) {} BSHTransactionParticipant(); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultAbort(long id, Serializable context, LogEvent ev) {} BSHTransactionParticipant(); void abort(long id, java.io.Serializable context); void commit(long id, java.io.Serializable co...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultAbort(long id, Serializable context, LogEvent ev) {} BSHTransactionParticipant(); void abort(long id, java.io.Serializable context); void commit(long id, java.io.Serializable co...
@Test public void testDefaultCommit() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); bSHTransactionParticipant.defaultCommit(100L, Long.valueOf(65L), new LogEvent("testBSHTransactionParticipantTag")); assertTrue(true, "Test completed without Exception"); }
protected void defaultCommit(long id, Serializable context, LogEvent ev) {}
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultCommit(long id, Serializable context, LogEvent ev) {} }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultCommit(long id, Serializable context, LogEvent ev) {} BSHTransactionParticipant(); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultCommit(long id, Serializable context, LogEvent ev) {} BSHTransactionParticipant(); void abort(long id, java.io.Serializable context); void commit(long id, java.io.Serializable c...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected void defaultCommit(long id, Serializable context, LogEvent ev) {} BSHTransactionParticipant(); void abort(long id, java.io.Serializable context); void commit(long id, java.io.Serializable c...
@Test public void testDefaultPrepare() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); int result = bSHTransactionParticipant.defaultPrepare(100L, new CharConversionException(), new LogEvent()); assertEquals(129, result, "result"); }
protected int defaultPrepare(long id, Serializable context, LogEvent ev) { return PREPARED | READONLY; }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected int defaultPrepare(long id, Serializable context, LogEvent ev) { return PREPARED | READONLY; } }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected int defaultPrepare(long id, Serializable context, LogEvent ev) { return PREPARED | READONLY; } BSHTransactionParticipant(); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected int defaultPrepare(long id, Serializable context, LogEvent ev) { return PREPARED | READONLY; } BSHTransactionParticipant(); void abort(long id, java.io.Serializable context); void commit(lo...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected int defaultPrepare(long id, Serializable context, LogEvent ev) { return PREPARED | READONLY; } BSHTransactionParticipant(); void abort(long id, java.io.Serializable context); void commit(lo...
@Test public void testExecuteMethod() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); Object result = bSHTransactionParticipant.executeMethod(new BSHMethod("testBSHTransactionParticipantBshData", false), 100L, new StringBuffer(), new LogEvent("testBSHTransaction...
protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context); params.put("id", id); params.put("evt", evt); params.put("self", this); return m.execute(params, resultName); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
@Test public void testExecuteMethod2() throws Throwable { BSHTransactionParticipant bSHGroupSelector = new BSHGroupSelector(); Boolean result = (Boolean) bSHGroupSelector.executeMethod(new BSHMethod("testBSHTransactionParticipantBshData", false), 100L, new UnsupportedEncodingException(), new LogEvent("testBSHTransactio...
protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context); params.put("id", id); params.put("evt", evt); params.put("self", this); return m.execute(params, resultName); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
@Test public void testExecuteMethodThrowsEvalError() throws Throwable { BSHTransactionParticipant bSHGroupSelector = new BSHGroupSelector(); try { bSHGroupSelector.executeMethod(new BSHMethod("testBSHTransactionParticipantBshData", false), 100L, new CharConversionException(), new LogEvent(), "sh.evalOnly"); fail("Expec...
protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context); params.put("id", id); params.put("evt", evt); params.put("self", this); return m.execute(params, resultName); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
@Test public void testExecuteMethodThrowsFileNotFoundException() throws Throwable { BSHTransactionParticipant source = new BSHTransactionParticipant(); try { source.executeMethod(new BSHMethod("testBSHTransactionParticipantBshData", true), 100L, new CharConversionException(), new LogEvent(source, "testBSHTransactionPar...
protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context); params.put("id", id); params.put("evt", evt); params.put("self", this); return m.execute(params, resultName); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
@Test public void testExecuteMethodThrowsNullPointerException() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); try { bSHTransactionParticipant.executeMethod(null, 100L, new StringBuffer(), new LogEvent("testBSHTransactionParticipantTag", Integer.valueOf(0)), "t...
protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context); params.put("id", id); params.put("evt", evt); params.put("self", this); return m.execute(params, resultName); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
@Test public void testInitService_FixedThreadPool_CorePoolSizeAttributeValueIsNotANumber() throws Exception { qbeanConfigPw .println("<QThreadPoolExecutor type='fixed' corePoolSize='abc'/>"); qbeanConfigPw.flush(); setQBeanConfig(qbeanConfigBos.toByteArray()); try { qbean.initService(); fail(DataConversionException.cla...
@Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|scheduled|single})"); execSrvType = execSrvTypeAttr.getValue().trim(); if ("fixed".equals...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
QThreadPoolExecutor extends QBeanSupport implements QThreadPoolExecutorMBean { @Override protected void initService() throws Exception { Element rootElt = this.getPersist(); Attribute execSrvTypeAttr = getAttribute(rootElt, XML_CONFIG_ATTR__EXEC_SRV_TYPE, true, "(thread pool executor type among {fixed|cached|sc...
@Test public void testExecuteMethodThrowsParseException() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); try { bSHTransactionParticipant.executeMethod(new BSHMethod("\u000E\u0019\u0003/\u0008Tz<|p", false), 100L, new CharConversionException(), new LogEvent("tes...
protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context); params.put("id", id); params.put("evt", evt); params.put("self", this); return m.execute(params, resultName); }
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { protected Object executeMethod(BSHMethod m, long id, Serializable context, LogEvent evt, String resultName) throws EvalError, IOException { Map params = new HashMap(); params.put("context", context);...
@Test public void testPrepare() throws Throwable { int result = new BSHTransactionParticipant().prepare(100L, new NotActiveException()); assertEquals(129, result, "result"); }
public int prepare(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare"); int result = ABORTED | READONLY; if (prepareMethod != null) { try { result = (Integer) executeMethod(prepareMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessage(ex); } } else { result = default...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepare(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare"); int result = ABORTED | READONLY; if (prepareMethod != null) { try { result = (Integer) execute...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepare(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare"); int result = ABORTED | READONLY; if (prepareMethod != null) { try { result = (Integer) execute...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepare(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare"); int result = ABORTED | READONLY; if (prepareMethod != null) { try { result = (Integer) execute...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepare(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare"); int result = ABORTED | READONLY; if (prepareMethod != null) { try { result = (Integer) execute...
@Test public void testPrepareForAbort() throws Throwable { int result = new BSHTransactionParticipant().prepareForAbort(100L, Boolean.FALSE); assertEquals(128, result, "result"); }
public int prepareForAbort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare-for-abort"); int result = ABORTED | READONLY; if (prepareForAbortMethod != null) { try { result = (Integer) executeMethod(prepareForAbortMethod, id, context, ev, "result"); } catch (Exception ex) { ev.addMessag...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepareForAbort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare-for-abort"); int result = ABORTED | READONLY; if (prepareForAbortMethod != null) { try { ...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepareForAbort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare-for-abort"); int result = ABORTED | READONLY; if (prepareForAbortMethod != null) { try { ...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepareForAbort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare-for-abort"); int result = ABORTED | READONLY; if (prepareForAbortMethod != null) { try { ...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public int prepareForAbort(long id, java.io.Serializable context) { LogEvent ev = new LogEvent(this, "prepare-for-abort"); int result = ABORTED | READONLY; if (prepareForAbortMethod != null) { try { ...
@Test public void testSetConfiguration() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); bSHTransactionParticipant.setConfiguration(new Element("testBSHTransactionParticipantName", "testBSHTransactionParticipantUri")); assertNull(bSHTransactionParticipant.prepar...
public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.getChild("prepare-for-abort")); commitMethod = BSHMethod.createBshMethod(e.getChild("commit")); abortMethod = BSHMethod.crea...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
@Test public void testSetConfigurationThrowsConfigurationException1() throws Throwable { BSHTransactionParticipant bSHTransactionParticipant = new BSHTransactionParticipant(); try { bSHTransactionParticipant.setConfiguration(null); fail("Expected ConfigurationException to be thrown"); } catch (ConfigurationException ex...
public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.getChild("prepare-for-abort")); commitMethod = BSHMethod.createBshMethod(e.getChild("commit")); abortMethod = BSHMethod.crea...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
BSHTransactionParticipant extends SimpleLogSource implements TransactionParticipant, AbortParticipant, XmlConfigurable { public void setConfiguration(Element e) throws ConfigurationException { try { prepareMethod = BSHMethod.createBshMethod(e.getChild("prepare")); prepareForAbortMethod = BSHMethod.createBshMethod(e.get...
@Test public void testDefaultSelect() throws Throwable { String result = new BSHGroupSelector().defaultSelect(100L, new StreamCorruptedException()); assertEquals("", result, "result"); }
public String defaultSelect(long id, Serializable context) { return ""; }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String defaultSelect(long id, Serializable context) { return ""; } }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String defaultSelect(long id, Serializable context) { return ""; } }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public String defaultSelect(long id, Serializable context) { return ""; } 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 defaultSelect(long id, Serializable context) { return ""; } void setConfiguration(Element e); String select(long id, java.io.Serializable context); String defaultSelect(long id, Serializable context); }
@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 = defau...
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"); } catc...
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"); } catc...
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"); } catc...
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"); } catc...
@Test public void testSetConfiguration() throws Throwable { BSHGroupSelector bSHGroupSelector = new BSHGroupSelector(); bSHGroupSelector.setConfiguration(new Element("testBSHGroupSelectorName", "testBSHGroupSelectorUri")); assertNull(bSHGroupSelector.prepareForAbortMethod, "bSHGroupSelector.prepareForAbortMethod"); ass...
public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage(), ex); } }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
@Test public void testSetConfigurationThrowsConfigurationException() throws Throwable { BSHGroupSelector bSHGroupSelector = new BSHGroupSelector(); try { bSHGroupSelector.setConfiguration(null); fail("Expected ConfigurationException to be thrown"); } catch (ConfigurationException ex) { if (isJavaVersionAtMost(JAVA_14))...
public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage(), ex); } }
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector { public void setConfiguration(Element e) throws ConfigurationException { super.setConfiguration(e); try { selectMethod = BSHMethod.createBshMethod(e.getChild("select")); } catch (Exception ex) { throw new ConfigurationException(ex.getMessage()...
@Test public void testPrepare() { int result = trace.prepare(1L, context); assertThat(result, is(Trace.PREPARED | Trace.READONLY)); verify(context).checkPoint("prepare:XXXtestXXX"); }
public int prepare (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepare:" + trace); return PREPARED | READONLY; }
Trace implements AbortParticipant, Configurable { public int prepare (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepare:" + trace); return PREPARED | READONLY; } }
Trace implements AbortParticipant, Configurable { public int prepare (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepare:" + trace); return PREPARED | READONLY; } }
Trace implements AbortParticipant, Configurable { public int prepare (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepare:" + trace); return PREPARED | READONLY; } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForA...
Trace implements AbortParticipant, Configurable { public int prepare (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepare:" + trace); return PREPARED | READONLY; } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForA...
@Test public void testDestroyService() throws Throwable { LoggerAdaptor loggerAdaptor = new LoggerAdaptor(); loggerAdaptor.destroyService(); assertTrue(true, "Test completed without Exception"); }
protected void destroyService() { }
LoggerAdaptor extends QBeanSupport { protected void destroyService() { } }
LoggerAdaptor extends QBeanSupport { protected void destroyService() { } }
LoggerAdaptor extends QBeanSupport { protected void destroyService() { } }
LoggerAdaptor extends QBeanSupport { protected void destroyService() { } }
@Test public void testCommit() { trace.commit(1L, context); verify(context).checkPoint("commit:XXXtestXXX"); }
public void commit (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("commit:" + trace); }
Trace implements AbortParticipant, Configurable { public void commit (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("commit:" + trace); } }
Trace implements AbortParticipant, Configurable { public void commit (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("commit:" + trace); } }
Trace implements AbortParticipant, Configurable { public void commit (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("commit:" + trace); } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForAbort(long id, Serializable o)...
Trace implements AbortParticipant, Configurable { public void commit (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("commit:" + trace); } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForAbort(long id, Serializable o)...
@Test public void testAbort() { trace.abort(1L, context); verify(context).checkPoint("abort:XXXtestXXX"); }
public void abort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("abort:" + trace); }
Trace implements AbortParticipant, Configurable { public void abort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("abort:" + trace); } }
Trace implements AbortParticipant, Configurable { public void abort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("abort:" + trace); } }
Trace implements AbortParticipant, Configurable { public void abort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("abort:" + trace); } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForAbort(long id, Serializable o); ...
Trace implements AbortParticipant, Configurable { public void abort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("abort:" + trace); } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o); int prepareForAbort(long id, Serializable o); ...
@Test public void testPrepareForAbort() { int result = trace.prepareForAbort(1L, context); assertThat(result, is(Trace.PREPARED | Trace.READONLY)); verify(context).checkPoint("prepareForAbort:XXXtestXXX"); }
public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; } }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; } }
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o);...
Trace implements AbortParticipant, Configurable { public int prepareForAbort (long id, Serializable o) { Context ctx = (Context) o; ctx.checkPoint ("prepareForAbort:" + trace); return PREPARED | READONLY; } int prepare(long id, Serializable o); void commit(long id, Serializable o); void abort(long id, Serializable o);...
@Disabled("test fails because the component is not properly created from the jPOS UI") @Test public void testStateChanged() throws Throwable { JTabbedPaneFactory jTabbedPaneFactory = new JTabbedPaneFactory(); jTabbedPaneFactory.stateChanged(new ChangeEvent(Integer.valueOf(0))); assertEquals(0, jTabbedPaneFactory.action...
public void stateChanged (ChangeEvent e) { try { String action[] = new String[2]; action = (String[]) actions.get(p.getSelectedIndex()); Object al = ui.get (action[1]); if (al instanceof ActionListener) { ActionEvent ae = new ActionEvent(this,0,action[0]); ((ActionListener) al).actionPerformed(ae); } } catch (Exception...
JTabbedPaneFactory implements UIFactory, ChangeListener { public void stateChanged (ChangeEvent e) { try { String action[] = new String[2]; action = (String[]) actions.get(p.getSelectedIndex()); Object al = ui.get (action[1]); if (al instanceof ActionListener) { ActionEvent ae = new ActionEvent(this,0,action[0]); ((Act...
JTabbedPaneFactory implements UIFactory, ChangeListener { public void stateChanged (ChangeEvent e) { try { String action[] = new String[2]; action = (String[]) actions.get(p.getSelectedIndex()); Object al = ui.get (action[1]); if (al instanceof ActionListener) { ActionEvent ae = new ActionEvent(this,0,action[0]); ((Act...
JTabbedPaneFactory implements UIFactory, ChangeListener { public void stateChanged (ChangeEvent e) { try { String action[] = new String[2]; action = (String[]) actions.get(p.getSelectedIndex()); Object al = ui.get (action[1]); if (al instanceof ActionListener) { ActionEvent ae = new ActionEvent(this,0,action[0]); ((Act...
JTabbedPaneFactory implements UIFactory, ChangeListener { public void stateChanged (ChangeEvent e) { try { String action[] = new String[2]; action = (String[]) actions.get(p.getSelectedIndex()); Object al = ui.get (action[1]); if (al instanceof ActionListener) { ActionEvent ae = new ActionEvent(this,0,action[0]); ((Act...
@Test public void testActionPerformedThrowsNoSuchElementException() throws Throwable { try { new Redirect().actionPerformed(new ActionEvent("", 100, "", 100L, 1000)); fail("Expected NoSuchElementException to be thrown"); } catch (NoSuchElementException ex) { assertNull(ex.getMessage(), "ex.getMessage()"); } }
public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
@Test public void testActionPerformedThrowsNullPointerException() throws Throwable { try { new Redirect().actionPerformed(new ActionEvent(Long.valueOf(0L), 100, null, 100L, 1000)); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.g...
public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
@Test public void testActionPerformedThrowsNullPointerException1() throws Throwable { try { new Redirect().actionPerformed(new ActionEvent("", 100, "testRedirectParam3", 100L, 1000)); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(e...
public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
@Test public void testActionPerformedThrowsNullPointerException2() throws Throwable { try { new Redirect().actionPerformed(new ActionEvent("", 100, "testRedirect\rParam3", 100L, 1000)); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull...
public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); }
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
Redirect implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { StringTokenizer st = new StringTokenizer (ev.getActionCommand ()); ui.reconfigure ( st.nextToken(), st.hasMoreTokens () ? st.nextToken () : null ); } Redirect(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev...
@Test public void testActionPerformedThrowsNullPointerException() throws Throwable { Dispose dispose = new Dispose(); try { dispose.actionPerformed(new ActionEvent(Integer.valueOf(0), 100, "testDisposeParam3", 100L, 1000)); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJa...
public void actionPerformed (ActionEvent ev) { ui.dispose (); }
Dispose implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { ui.dispose (); } }
Dispose implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { ui.dispose (); } Dispose(); }
Dispose implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { ui.dispose (); } Dispose(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev); }
Dispose implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { ui.dispose (); } Dispose(); void setUI(UI ui, Element e); void actionPerformed(ActionEvent ev); public UI ui; }
@Test public void testActionPerformed() throws Throwable { Debug debug = new Debug(); debug.actionPerformed(new ActionEvent(debug, 100, "testDebugParam3", 100L, 1000)); assertTrue(true, "Test completed without Exception"); }
public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } Debug(); }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } Debug(); void actionPerformed(ActionEvent ev); }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } Debug(); void actionPerformed(ActionEvent ev); }
@Test public void testInitServiceThrowsNullPointerException() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.initService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { } }
public void initService() throws ConfigurationException { Element config = getPersist (); grabSpace (config.getChild ("space")); initSpace (config.getChild ("init")); String name = getName(); if ("spacelet".equals (name)) name = "default"; uri = "spacelet:" + name; Element e = config.getChild ("out"); outScript = getSc...
SpaceLet extends QBeanSupport implements Space { public void initService() throws ConfigurationException { Element config = getPersist (); grabSpace (config.getChild ("space")); initSpace (config.getChild ("init")); String name = getName(); if ("spacelet".equals (name)) name = "default"; uri = "spacelet:" + name; Eleme...
SpaceLet extends QBeanSupport implements Space { public void initService() throws ConfigurationException { Element config = getPersist (); grabSpace (config.getChild ("space")); initSpace (config.getChild ("init")); String name = getName(); if ("spacelet".equals (name)) name = "default"; uri = "spacelet:" + name; Eleme...
SpaceLet extends QBeanSupport implements Space { public void initService() throws ConfigurationException { Element config = getPersist (); grabSpace (config.getChild ("space")); initSpace (config.getChild ("init")); String name = getName(); if ("spacelet".equals (name)) name = "default"; uri = "spacelet:" + name; Eleme...
SpaceLet extends QBeanSupport implements Space { public void initService() throws ConfigurationException { Element config = getPersist (); grabSpace (config.getChild ("space")); initSpace (config.getChild ("init")); String name = getName(); if ("spacelet".equals (name)) name = "default"; uri = "spacelet:" + name; Eleme...
@Test public void testActionPerformedThrowsNullPointerException() throws Throwable { try { new Debug().actionPerformed(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals(...
public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } Debug(); }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } Debug(); void actionPerformed(ActionEvent ev); }
Debug implements ActionListener { public void actionPerformed (ActionEvent ev) { System.out.println ("Action command: "+ev.getActionCommand ()); System.out.println (ev.toString ()); System.out.println (""); } Debug(); void actionPerformed(ActionEvent ev); }
@Test public void testGet() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); volatileSequencer.get("abcdefghijklmnopqrstuvwxyz", 1); int result = volatileSequencer.get("abcdefghijklmnopqrstuvwxyz", -1); assertEquals(0, result, "result"); }
synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
@Test public void testGet1() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); int add = volatileSequencer.get(" ", -1); int result = volatileSequencer.get(" ", 0); assertEquals(add, result, "result"); }
synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
@Test public void testGet2() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); int result = volatileSequencer.get("testVolatileSequencerCounterName", 0); assertEquals(0, result, "result"); }
synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
@Test public void testGet3() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); int result = volatileSequencer.get("testVolatileSequencerCounterName"); assertEquals(1, result, "result"); }
synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int get (String counterName, int add) { int i = 0; Integer I = (Integer) map.get (counterName); if (I != null) i = I; i += add; map.put (counterName, i); return i; } VolatileSequencer(); synchronized int get(String counterName, int add...
@Test public void testGetCounterNames() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); volatileSequencer.get("testVolatileSequencerCounterName", 100); String[] result = volatileSequencer.getCounterNames(); assertEquals(1, result.length, "result.length"); assertEquals("testVolatileSequ...
public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } VolatileSequencer(); synchronized int get(String counterName, int add); int get(String count...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } VolatileSequencer(); synchronized int get(String counterName, int add); int get(String count...
@Test public void testGetCounterNames1() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); String[] result = volatileSequencer.getCounterNames(); assertEquals(0, result.length, "result.length"); }
public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } VolatileSequencer(); synchronized int get(String counterName, int add); int get(String count...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { public String[] getCounterNames () { Object[] o = map.keySet().toArray(); String[] s = new String [o.length]; System.arraycopy (o, 0, s, 0, o.length); return s; } VolatileSequencer(); synchronized int get(String counterName, int add); int get(String count...
@Test public void testSet() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); int add = volatileSequencer.get("", 100); int result = volatileSequencer.set("", add); assertEquals(add, result, "result"); }
synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } VolatileSequencer(); synchronized int get(Stri...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } VolatileSequencer(); synchronized int get(Stri...
@Test public void testSet2() throws Throwable { VolatileSequencer volatileSequencer = new VolatileSequencer(); int result = volatileSequencer.set("testVolatileSequencerCounterName", 100); assertEquals(0, result, "result"); }
synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } VolatileSequencer(); }
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } VolatileSequencer(); synchronized int get(Stri...
VolatileSequencer implements Sequencer, VolatileSequencerMBean { synchronized public int set (String counterName, int newValue) { int oldValue = 0; Integer I = (Integer) map.get (counterName); if (I != null) oldValue = I; map.put (counterName, newValue); return oldValue; } VolatileSequencer(); synchronized int get(Stri...
@Test public void testCard() throws Throwable { Track1 t1 = Track1.builder() .track("%B4111111111111111^FAT ALBERT ^201112345671234567890?").build(); Track2 t2 = Track2.builder() .track("4111111111111111=201112345612345678901").build(); Card c = Card.builder() .pan("4111111111111111") .exp("2011") .cvv("123") .cvv2("45...
private Card() { }
Card { private Card() { } }
Card { private Card() { } private Card(); Card(Builder builder); }
Card { private Card() { } private Card(); Card(Builder builder); String getPan(); BigInteger getPanAsNumber(); String getExp(); String getCvv2(); String getServiceCode(); boolean hasTrack1(); boolean hasTrack2(); boolean hasBothTracks(); String getBin(); @Override String toString(); @Override boolean equals(Object o)...
Card { private Card() { } private Card(); Card(Builder builder); String getPan(); BigInteger getPanAsNumber(); String getExp(); String getCvv2(); String getServiceCode(); boolean hasTrack1(); boolean hasTrack2(); boolean hasBothTracks(); String getBin(); @Override String toString(); @Override boolean equals(Object o)...
@Test public void testInp() throws Throwable { SpaceLet spaceLet = new SpaceLet(); Element persist = mock(Element.class); spaceLet.setPersist(persist); spaceLet.initService(); Object result = spaceLet.inp(Integer.valueOf(0)); assertNull(result); }
public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t); } }
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
@Test public void testInvalidPAN() throws Throwable { try { Track1 t1 = Track1.builder() .track("%B4111111111111112^FAT ALBERT ^201112345671234567890?").build(); Track2 t2 = Track2.builder() .track("4111111111111112=201112345612345678901").build(); Card c = Card.builder() .pan("4111111111111112") .exp("2011") .cvv("123...
public static Builder builder() { return new Builder(); }
Card { public static Builder builder() { return new Builder(); } }
Card { public static Builder builder() { return new Builder(); } private Card(); Card(Builder builder); }
Card { public static Builder builder() { return new Builder(); } private Card(); Card(Builder builder); String getPan(); BigInteger getPanAsNumber(); String getExp(); String getCvv2(); String getServiceCode(); boolean hasTrack1(); boolean hasTrack2(); boolean hasBothTracks(); String getBin(); @Override String toStrin...
Card { public static Builder builder() { return new Builder(); } private Card(); Card(Builder builder); String getPan(); BigInteger getPanAsNumber(); String getExp(); String getCvv2(); String getServiceCode(); boolean hasTrack1(); boolean hasTrack2(); boolean hasBothTracks(); String getBin(); @Override String toStrin...
@Test public void testGet() throws Throwable { String result = new SimpleConfiguration(new Properties()).get("testSimpleConfigurationName", null); assertNull(result, "result"); }
public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0) : null; } return (obj instanceof String) ? Environment.get(...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
@Test public void testGet1() throws Throwable { String result = new SimpleConfiguration(new Properties()).get("testSimpleConfigurationName", "testSimpleConfigurationDef"); assertEquals("testSimpleConfigurationDef", result, "result"); }
public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0) : null; } return (obj instanceof String) ? Environment.get(...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
@Test public void testGet3() throws Throwable { String result = new SimpleConfiguration(new Properties()).get("testSimpleConfigurationName"); assertEquals("", result, "result"); }
public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0) : null; } return (obj instanceof String) ? Environment.get(...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
SimpleConfiguration implements Configuration, Serializable { public String get (String name, String def) { Object obj = props.get (name); if (obj instanceof String[]) { String[] arr= (String[]) obj; obj = arr.length > 0 ? arr[0] : null; } else if (obj instanceof List) { List l = (List) obj; obj = l.size() > 0 ? l.get(0...
@Test public void testGetAll() throws Throwable { SimpleConfiguration simpleConfiguration = new SimpleConfiguration(); simpleConfiguration.put("testString", ""); String[] result = simpleConfiguration.getAll("testString"); assertEquals(1, result.length, "result.length"); assertEquals("", result[0], "result[0]"); }
public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment env = Environment.getEnvironment(); IntStream.range(0, ret.leng...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
@Test public void testGetAll1() throws Throwable { String[] result = new SimpleConfiguration(new Properties()).getAll("testSimpleConfigurationName"); assertEquals(0, result.length, "result.length"); }
public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment env = Environment.getEnvironment(); IntStream.range(0, ret.leng...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
@Test public void testGetAllThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration((Properties) null).getAll("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex....
public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment env = Environment.getEnvironment(); IntStream.range(0, ret.leng...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
SimpleConfiguration implements Configuration, Serializable { public String[] getAll (String name) { String[] ret; Object obj = props.get (name); if (obj instanceof String[]) { ret = (String[]) obj; } else if (obj instanceof String) { ret = new String[1]; ret[0] = (String) obj; } else ret = new String[0]; Environment en...
@Test public void testGetBoolean() throws Throwable { boolean result = new SimpleConfiguration().getBoolean("testSimpleConfigurationName", true); assertTrue(result, "result"); }
public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
@Test public void testGetBoolean4() throws Throwable { boolean result = new SimpleConfiguration(new Properties()).getBoolean("testSimpleConfigurationName"); assertFalse(result, "result"); }
public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
@Test public void testGetBooleanThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration((Properties) null).getBoolean("testSimpleConfigurationName", true); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getM...
public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
@Test public void testInpThrowsSpaceError() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.inp("testString"); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } }
public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t); } }
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
SpaceLet extends QBeanSupport implements Space { public Object inp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, inScript, inSource)) { return bsh.get ("value"); } else { return sp.inp (key); } } } catch (Throwable t) { throw new SpaceError (t)...
@Test public void testGetBooleanThrowsNullPointerException1() throws Throwable { try { new SimpleConfiguration((Properties) null).getBoolean("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessag...
public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
SimpleConfiguration implements Configuration, Serializable { public boolean getBoolean (String name) { String v = get (name, "false").trim(); return v.equalsIgnoreCase("true") || v.equalsIgnoreCase("yes"); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get...
@Test public void testGetDouble() throws Throwable { double result = new SimpleConfiguration(new Properties()).getDouble("testSimpleConfigurationName"); assertEquals(0.0, result, 1.0E-6, "result"); }
public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
@Test public void testGetDouble1() throws Throwable { double result = new SimpleConfiguration(new Properties()).getDouble("testSimpleConfigurationName", 0.0); assertEquals(0.0, result, 1.0E-6, "result"); }
public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
@Test public void testGetDouble2() throws Throwable { double result = new SimpleConfiguration(new Properties()).getDouble("testSimpleConfigurationName", 100.0); assertEquals(100.0, result, 1.0E-6, "result"); }
public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
@Test public void testGetDoubleThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration((Properties) null).getDouble("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage()...
public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
@Test public void testGetDoubleThrowsNullPointerException1() throws Throwable { try { new SimpleConfiguration((Properties) null).getDouble("testSimpleConfigurationName", 100.0); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getM...
public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
SimpleConfiguration implements Configuration, Serializable { public double getDouble(String name) { return Double.valueOf(get(name, "0.00").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); ...
@Test public void testGetInt() throws Throwable { int result = new SimpleConfiguration(new Properties()).getInt("testSimpleConfigurationName", 100); assertEquals(100, result, "result"); }
public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetInt1() throws Throwable { int result = new SimpleConfiguration(new Properties()).getInt("testSimpleConfigurationName", 0); assertEquals(0, result, "result"); }
public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetInt2() throws Throwable { int result = new SimpleConfiguration(new Properties()).getInt("testSimpleConfigurationName"); assertEquals(0, result, "result"); }
public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetIntThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration((Properties) null).getInt("testSimpleConfigurationName", 100); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(),...
public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@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(); ...
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(); ...
@Test public void testGetIntThrowsNullPointerException1() throws Throwable { try { new SimpleConfiguration((Properties) null).getInt("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex...
public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public int getInt (String name) { return Integer.parseInt(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetLong() throws Throwable { long result = new SimpleConfiguration().getLong("testSimpleConfigurationName", 100L); assertEquals(100L, result, "result"); }
public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetLong1() throws Throwable { long result = new SimpleConfiguration(new Properties()).getLong("testSimpleConfigurationName", 0L); assertEquals(0L, result, "result"); }
public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetLong2() throws Throwable { long result = new SimpleConfiguration(new Properties()).getLong("testSimpleConfigurationName"); assertEquals(0L, result, "result"); }
public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetLongThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration(new Properties()).getLong(null, 100L); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } ...
public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
@Test public void testGetLongThrowsNullPointerException1() throws Throwable { try { new SimpleConfiguration((Properties) null).getLong("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "...
public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); }
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...
SimpleConfiguration implements Configuration, Serializable { public long getLong (String name) { return Long.parseLong(get(name, "0").trim()); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[] ...