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 testGetThrowsNullPointerException() throws Throwable { try { new SimpleConfiguration((Properties) null).get("testSimpleConfigurationName", "testSimpleConfigurationDef"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNu... | 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 testGetThrowsNullPointerException1() throws Throwable { try { new SimpleConfiguration((Properties) null).get("testSimpleConfigurationName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMe... | 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 testLoadThrowsFileNotFoundException() throws Throwable { Properties props = new Properties(); SimpleConfiguration simpleConfiguration = new SimpleConfiguration(props); try { simpleConfiguration.load("testSimpleConfigurationFilename"); fail("Expected FileNotFoundException to be thrown"); } catch (FileN... | public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } } | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String fil... | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String fil... | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String fil... |
@Test public void testLoadThrowsNullPointerException() throws Throwable { SimpleConfiguration simpleConfiguration = new SimpleConfiguration(); try { simpleConfiguration.load(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { } } | public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } } | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String fil... | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String fil... | SimpleConfiguration implements Configuration, Serializable { public void load(String filename) throws IOException { FileInputStream fis = new FileInputStream(filename); props.load(new BufferedInputStream(fis)); fis.close(); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String fil... |
@Test public void testInThrowsSpaceError1() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.in("", 100L); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } } | 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 testPutThrowsNullPointerException() throws Throwable { SimpleConfiguration simpleConfiguration = new SimpleConfiguration((Properties) null); try { simpleConfiguration.put("testSimpleConfigurationName", "testString"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex)... | public synchronized void put (String name, Object value) { props.put (name, value); } | SimpleConfiguration implements Configuration, Serializable { public synchronized void put (String name, Object value) { props.put (name, value); } } | SimpleConfiguration implements Configuration, Serializable { public synchronized void put (String name, Object value) { props.put (name, value); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); } | SimpleConfiguration implements Configuration, Serializable { public synchronized void put (String name, Object value) { props.put (name, value); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[... | SimpleConfiguration implements Configuration, Serializable { public synchronized void put (String name, Object value) { props.put (name, value); } SimpleConfiguration(); SimpleConfiguration(Properties props); SimpleConfiguration(String filename); String get(String name, String def); String[] getAll(String name); int[... |
@Test public void testGet() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); String result = subConfiguration.get("testSubConfigurationPropertyName"); assertEquals("", result, "result"); assertSame(cfg, subConf... | public String get(String propertyName){ return cfg.get(prefix + propertyName); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... |
@Test public void testGet1() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); String result = subConfiguration.get("testSubConfigurationPropertyName", "testSubConfigurationDefaultValue"); assertEquals("testSubC... | public String get(String propertyName){ return cfg.get(prefix + propertyName); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... |
@Test public void testGetAll() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); subConfiguration.put("testString", ""); String[] result = subConfiguration.getAll("testString"); assertEquals(1, result.length, "r... | public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); St... | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); St... |
@Test public void testGetAll1() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); String[] result = subConfiguration.getAll("testSubConfigurationPropertyName"); assertEquals(0, result.length, "result.length"); a... | public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); St... | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); St... |
@Test public void testGetAllThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.getAll("testSubConfigurationPropertyName"); fail("Expected NullPointerException to b... | public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); St... | SubConfiguration implements Configuration { public String[] getAll(String propertyName){ return cfg.getAll(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); St... |
@Test public void testGetBoolean() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); boolean result = subConfiguration.getBoolean("testSubConfigurationPropertyName"); assertFalse(result, "result"); assertSame(cf... | public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... |
@Test public void testGetBoolean1() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); boolean result = subConfiguration.getBoolean("testSubConfigurationPropertyName", false); assertFalse(result, "result"); asser... | public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... |
@Test public void testGetBoolean2() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); boolean result = subConfiguration.getBoolean("testSubConfigurationPropertyName", true); assertTrue(result, "result"); assertS... | public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... |
@Test public void testGetBooleanThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(new SubConfiguration(), "testSubConfigurationPrefix"); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix1"); try { subConfiguration.getBoolean("testSubConfigur... | public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... |
@Test public void testOutThrowsSpaceError1() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.out("testString", "testString"); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } } | public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); void startServi... | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); void startServi... |
@Test public void testGetBooleanThrowsNullPointerException1() throws Throwable { SubConfiguration subConfiguration = new SubConfiguration(); try { subConfiguration.getBoolean("testSubConfigurationPropertyName", true); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVers... | public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... | SubConfiguration implements Configuration { public boolean getBoolean(String propertyName){ return cfg.getBoolean(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyNa... |
@Test public void testGetDouble() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); double result = subConfiguration.getDouble("testSubConfigurationPropertyName"); assertEquals(0.0, result, 1.0E-6, "result"); as... | public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... |
@Test public void testGetDouble1() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); double result = subConfiguration.getDouble("testSubConfigurationPropertyName", 0.0); assertEquals(0.0, result, 1.0E-6, "result... | public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... |
@Test public void testGetDouble2() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); double result = subConfiguration.getDouble("testSubConfigurationPropertyName", 100.0); assertEquals(100.0, result, 1.0E-6, "re... | public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... |
@Test public void testGetDoubleThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.getDouble("testSubConfigurationPropertyName"); fail("Expected NullPointerExceptio... | public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... |
@Test public void testGetDoubleThrowsNullPointerException1() throws Throwable { Configuration cfg = new SubConfiguration(new SubConfiguration(), "testSubConfigurationPrefix"); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix1"); try { subConfiguration.getDouble("testSubConfigura... | public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... | SubConfiguration implements Configuration { public double getDouble(String propertyName){ return cfg.getDouble(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName)... |
@Test public void testGetInt() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); int result = subConfiguration.getInt("testSubConfigurationPropertyName", 100); assertEquals(100, result, "result"); assertSame(cfg... | public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... |
@Test public void testGetInt1() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); int result = subConfiguration.getInt("testSubConfigurationPropertyName", 0); assertEquals(0, result, "result"); assertSame(cfg, s... | public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... |
@Test public void testGetInt2() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); int result = subConfiguration.getInt("testSubConfigurationPropertyName"); assertEquals(0, result, "result"); assertSame(cfg, subC... | public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... |
@Test public void testGetIntThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.getInt("testSubConfigurationPropertyName", 100); fail("Expected NullPointerException... | public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... |
@Test public void testOutThrowsSpaceError3() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.out("testString", "", 100L); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } } | public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); void startServi... | SpaceLet extends QBeanSupport implements Space { public void out (Object key, Object value) { try { Interpreter bsh = initInterpreter (key, value); synchronized (sp) { if (!eval (bsh, outScript, outSource)) sp.out (key, value); } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); void startServi... |
@Test public void testGetIntThrowsNullPointerException1() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.getInt("testSubConfigurationPropertyName"); fail("Expected NullPointerException to ... | public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... | SubConfiguration implements Configuration { public int getInt(String propertyName){ return cfg.getInt(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[... |
@Test public void testGetLong() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); long result = subConfiguration.getLong("testSubConfigurationPropertyName", 100L); assertEquals(100L, result, "result"); assertSam... | public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... |
@Test public void testGetLong1() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); long result = subConfiguration.getLong("testSubConfigurationPropertyName", 0L); assertEquals(0L, result, "result"); assertSame(c... | public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... |
@Test public void testGetLong2() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); long result = subConfiguration.getLong("testSubConfigurationPropertyName"); assertEquals(0L, result, "result"); assertSame(cfg, ... | public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... |
@Test public void testGetLongThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.getLong("testSubConfigurationPropertyName", 100L); fail("Expected NullPointerExcept... | public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... |
@Test public void testGetLongThrowsNullPointerException1() throws Throwable { SubConfiguration subConfiguration = new SubConfiguration(); try { subConfiguration.getLong("testSubConfigurationPropertyName"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JA... | public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... | SubConfiguration implements Configuration { public long getLong(String propertyName){ return cfg.getLong(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); Stri... |
@Test public void testGetObjectThrowsConfigurationException() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.getObject("testSubConfigurationPropertyName"); fail("Expected ConfigurationExce... | public Object getObject (String propertyName) throws ConfigurationException{ try{ Object ret = Class.forName (get (propertyName)).newInstance(); if(ret instanceof Configurable) ((Configurable)ret).setConfiguration(this); return ret; } catch (Exception e){ throw new ConfigurationException ("Error trying to create an " +... | SubConfiguration implements Configuration { public Object getObject (String propertyName) throws ConfigurationException{ try{ Object ret = Class.forName (get (propertyName)).newInstance(); if(ret instanceof Configurable) ((Configurable)ret).setConfiguration(this); return ret; } catch (Exception e){ throw new Configurat... | SubConfiguration implements Configuration { public Object getObject (String propertyName) throws ConfigurationException{ try{ Object ret = Class.forName (get (propertyName)).newInstance(); if(ret instanceof Configurable) ((Configurable)ret).setConfiguration(this); return ret; } catch (Exception e){ throw new Configurat... | SubConfiguration implements Configuration { public Object getObject (String propertyName) throws ConfigurationException{ try{ Object ret = Class.forName (get (propertyName)).newInstance(); if(ret instanceof Configurable) ((Configurable)ret).setConfiguration(this); return ret; } catch (Exception e){ throw new Configurat... | SubConfiguration implements Configuration { public Object getObject (String propertyName) throws ConfigurationException{ try{ Object ret = Class.forName (get (propertyName)).newInstance(); if(ret instanceof Configurable) ((Configurable)ret).setConfiguration(this); return ret; } catch (Exception e){ throw new Configurat... |
@Test public void testGetThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); try { subConfiguration.get("testSubConfigurationPropertyName"); fail("Expected NullPointerException to be thro... | public String get(String propertyName){ return cfg.get(prefix + propertyName); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... |
@Test public void testGetThrowsNullPointerException1() throws Throwable { SubConfiguration subConfiguration = new SubConfiguration(); try { subConfiguration.get("testSubConfigurationPropertyName", "testSubConfigurationDefaultValue"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) ... | public String get(String propertyName){ return cfg.get(prefix + propertyName); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... | SubConfiguration implements Configuration { public String get(String propertyName){ return cfg.get(prefix + propertyName); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] g... |
@Test public void testPut() throws Throwable { Configuration cfg = new SimpleConfiguration(); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix"); subConfiguration.put("testSubConfigurationName", ""); assertSame(cfg, subConfiguration.cfg, "subConfiguration.cfg"); } | public void put (String name, Object value) { cfg.put(prefix + name, value); } | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } } | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] get... | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] get... |
@Test public void testRdpThrowsSpaceError() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.rdp(""); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } } | public Object rdp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rdp (key); } } } catch (Throwable t) { throw new SpaceError (t); } } | SpaceLet extends QBeanSupport implements Space { public Object rdp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rdp (key); } } } catch (Throwable t) { throw new SpaceError (t)... | SpaceLet extends QBeanSupport implements Space { public Object rdp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rdp (key); } } } catch (Throwable t) { throw new SpaceError (t)... | SpaceLet extends QBeanSupport implements Space { public Object rdp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rdp (key); } } } catch (Throwable t) { throw new SpaceError (t)... | SpaceLet extends QBeanSupport implements Space { public Object rdp (Object key) { try { Interpreter bsh = initInterpreter (key); bsh.set ("probe", true); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rdp (key); } } } catch (Throwable t) { throw new SpaceError (t)... |
@Test public void testGetTLV1() { byte[] result = tl.createTLVMsg(TEST_TAG1, null).getTLV(); assertArrayEquals(ISOUtil.hex2byte("6400"), 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 testPutThrowsNullPointerException() throws Throwable { Configuration cfg = new SubConfiguration(new SubConfiguration(new SubConfiguration(), "testSubConfigurationPrefix"), "testSubConfigurationPrefix1"); SubConfiguration subConfiguration = new SubConfiguration(cfg, "testSubConfigurationPrefix2"); try ... | public void put (String name, Object value) { cfg.put(prefix + name, value); } | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } } | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] get... | SubConfiguration implements Configuration { public void put (String name, Object value) { cfg.put(prefix + name, value); } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] get... |
@Test public void testSetConfiguration() throws Throwable { SubConfiguration subConfiguration = new SubConfiguration(new SubConfiguration(), "testSubConfigurationPrefix"); Configuration newCfg = new SimpleConfiguration(); subConfiguration.setConfiguration(newCfg); assertSame(newCfg, subConfiguration.cfg, "subConfigurat... | public void setConfiguration(Configuration newCfg){ cfg=newCfg; } | SubConfiguration implements Configuration { public void setConfiguration(Configuration newCfg){ cfg=newCfg; } } | SubConfiguration implements Configuration { public void setConfiguration(Configuration newCfg){ cfg=newCfg; } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public void setConfiguration(Configuration newCfg){ cfg=newCfg; } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] getAll(String pr... | SubConfiguration implements Configuration { public void setConfiguration(Configuration newCfg){ cfg=newCfg; } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] getAll(String pr... |
@Test public void testSetPrefix() throws Throwable { SubConfiguration subConfiguration = new SubConfiguration(); subConfiguration.setPrefix("testSubConfigurationNewPrefix"); assertEquals("testSubConfigurationNewPrefix", subConfiguration.prefix, "subConfiguration.prefix"); } | public void setPrefix(String newPrefix){ prefix = newPrefix; } | SubConfiguration implements Configuration { public void setPrefix(String newPrefix){ prefix = newPrefix; } } | SubConfiguration implements Configuration { public void setPrefix(String newPrefix){ prefix = newPrefix; } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); } | SubConfiguration implements Configuration { public void setPrefix(String newPrefix){ prefix = newPrefix; } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] getAll(String prope... | SubConfiguration implements Configuration { public void setPrefix(String newPrefix){ prefix = newPrefix; } SubConfiguration(); SubConfiguration(Configuration cfg, String prefix); void setConfiguration(Configuration newCfg); void setPrefix(String newPrefix); String get(String propertyName); String[] getAll(String prope... |
@Test public void testConstructor() throws Throwable { CardHolder cardHolder = new CardHolder(); assertFalse(cardHolder.hasTrack2(), "cardHolder.hasTrack2()"); } | public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack... |
@Test public void testDump() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); cardHolder.setSecurityCode("testCardHolderSecurityCode"); PrintStream p = new PrintStream(new ByteArrayOutputStream(), true, "UTF-8"); cardHolder.dump(p, "testCardHolderIndent"); assertTrue(true, "Test c... | public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\"true\""); p.println (">"); p.println (indent + " " + "<pan... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... |
@Test public void testDump6() throws Throwable { PrintStream p = new PrintStream(new ByteArrayOutputStream(), true, "UTF-8"); new CardHolder("testCardHolderPan", "4Cha").dump(p, "testCardHolderIndent"); assertTrue(true, "Test completed without Exception"); } | public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\"true\""); p.println (">"); p.println (indent + " " + "<pan... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... |
@Test public void testDumpThrowsNullPointerException() throws Throwable { try { new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,").dump(null, "testCardHolderIndent"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMes... | public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\"true\""); p.println (">"); p.println (indent + " " + "<pan... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... | CardHolder implements Cloneable, Serializable, Loggeable { public void dump (PrintStream p, String indent) { p.print (indent + "<CardHolder"); if (hasTrack1()) p.print (" trk1=\"true\""); if (hasTrack2()) p.print (" trk2=\"true\""); if (hasSecurityCode()) p.print (" sec=\"true\""); if (isExpired()) p.print (" expired=\... |
@Test public void testGetBIN() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setPAN("testCardHolderPan"); String result = cardHolder.getBIN(); assertEquals("testCa", result, "result"); } | public String getBIN () { return pan.substring(0, BINLEN); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1()... | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1()... |
@Test public void testGetBINThrowsNullPointerException() throws Throwable { try { new CardHolder().getBIN(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"... | public String getBIN () { return pan.substring(0, BINLEN); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1()... | CardHolder implements Cloneable, Serializable, Loggeable { public String getBIN () { return pan.substring(0, BINLEN); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1()... |
@Test public void testGetEXP() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setEXP("99-8"); String result = cardHolder.getEXP(); assertEquals("99-8", result, "result"); } | public String getEXP () { return exp; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... |
@Test public void testRdThrowsSpaceError() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.rd(Integer.valueOf(0)); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } } | public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); ... | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); ... |
@Test public void testGetEXP1() throws Throwable { String result = new CardHolder().getEXP(); assertNull(result, "result"); } | public String getEXP () { return exp; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... | CardHolder implements Cloneable, Serializable, Loggeable { public String getEXP () { return exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... |
@Test public void testGetNameOnCard() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setTrack1(" `^o;t~Dfv._uUa7agT,\tQ2lt @0@5BT0O)a"); String result = cardHolder.getNameOnCard(); assertEquals("o;t~Dfv._uUa7agT,\tQ2lt @0@5BT0O)a", result, "result"); } | public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } CardHolder(); CardHolder(St... | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } CardHolder(); CardHolder(St... | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } CardHolder(); CardHolder(St... |
@Test public void testGetNameOnCard2() throws Throwable { String result = new CardHolder().getNameOnCard(); assertNull(result, "result"); } | public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } CardHolder(); CardHolder(St... | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } CardHolder(); CardHolder(St... | CardHolder implements Cloneable, Serializable, Loggeable { public String getNameOnCard() { String name = null; if (track1!=null) { StringTokenizer st = new StringTokenizer(track1, TRACK1_SEPARATOR); if (st.countTokens()<2) return null; st.nextToken(); name = st.nextToken(); } return name; } CardHolder(); CardHolder(St... |
@Test public void testGetPAN() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setPAN("testCardHolderPan"); String result = cardHolder.getPAN(); assertEquals("testCardHolderPan", result, "result"); } | public String getPAN () { return pan; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... |
@Test public void testGetPAN1() throws Throwable { String result = new CardHolder().getPAN(); assertNull(result, "result"); } | public String getPAN () { return pan; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... | CardHolder implements Cloneable, Serializable, Loggeable { public String getPAN () { return pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNameOnCar... |
@Test public void testGetSecurityCode() throws Throwable { String result = new CardHolder().getSecurityCode(); assertNull(result, "result"); } | public String getSecurityCode() { return securityCode; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getSecurityCode() { return securityCode; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getSecurityCode() { return securityCode; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getSecurityCode() { return securityCode; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); St... | CardHolder implements Cloneable, Serializable, Loggeable { public String getSecurityCode() { return securityCode; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); St... |
@Test public void testGetServiceCode() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.parseTrack2(" trk1=\"true\""); String result = cardHolder.getServiceCode(); assertEquals(" ", result, "result"); } | public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack... | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack... |
@Test public void testGetServiceCode2() throws Throwable { String result = new CardHolder("testCardHolderPan", "4Cha").getServiceCode(); assertEquals(" ", result, "result"); } | public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack... | CardHolder implements Cloneable, Serializable, Loggeable { public String getServiceCode () { return trailer != null && trailer.length() >= 3 ? trailer.substring (0, 3) : " "; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack... |
@Test public void testGetTrack1() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); cardHolder.setTrack1("testCardHolderTrack1"); String result = cardHolder.getTrack1(); assertEquals("testCardHolderTrack1", result, "result"); } | public String getTrack1() { return track1; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getName... | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getName... |
@Test public void testGetTrack11() throws Throwable { String result = new CardHolder("testCardHolderPan", "4Cha").getTrack1(); assertNull(result, "result"); } | public String getTrack1() { return track1; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getName... | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack1() { return track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getName... |
@Test public void testRdThrowsSpaceError1() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.rd(";1", 100L); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { } } | public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } } | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); ... | SpaceLet extends QBeanSupport implements Space { public Object rd (Object key) { try { Interpreter bsh = initInterpreter (key); synchronized (sp) { if (eval (bsh, rdScript, rdSource)) { return bsh.get ("value"); } else { return sp.rd (key); } } } catch (Throwable t) { throw new SpaceError (t); } } void initService(); ... |
@Test public void testGetTrack2() throws Throwable { String result = new CardHolder().getTrack2(); assertNull(result, "result"); } | public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(Stri... | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(Stri... |
@Test public void testGetTrack21() throws Throwable { String result = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,").getTrack2(); assertEquals("k'X9|=H:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,", result, "result"); } | public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(Stri... | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrack2() { if (hasTrack2()) return pan + TRACK2_SEPARATOR + exp + trailer; else return null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(Stri... |
@Test public void testGetTrailer() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setTrailer("testCardHolderTrailler"); String result = cardHolder.getTrailer(); assertEquals("testCardHolderTrailler", result, "result"); } | public String getTrailer() { return trailer; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNa... | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNa... |
@Test public void testGetTrailer1() throws Throwable { String result = new CardHolder().getTrailer(); assertNull(result, "result"); } | public String getTrailer() { return trailer; } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNa... | CardHolder implements Cloneable, Serializable, Loggeable { public String getTrailer() { return trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String getNa... |
@Test public void testHasSecurityCode() throws Throwable { CardHolder cardHolder = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,"); cardHolder.setSecurityCode("testCardHolderSecurityCode"); boolean result = cardHolder.hasSecurityCode(); assertTrue(result, "result"); } | public boolean hasSecurityCode() { return securityCode != null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTra... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTra... |
@Test public void testHasSecurityCode1() throws Throwable { boolean result = new CardHolder("testCardHolderPan", "4Cha").hasSecurityCode(); assertFalse(result, "result"); } | public boolean hasSecurityCode() { return securityCode != null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTra... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasSecurityCode() { return securityCode != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTra... |
@Test public void testHasTrack1() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setTrack1("testCardHolderTrack1"); boolean result = cardHolder.hasTrack1(); assertTrue(result, "result"); } | public boolean hasTrack1() { return track1!=null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String ... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String ... |
@Test public void testHasTrack11() throws Throwable { boolean result = new CardHolder("testCardHolderPan", "4Cha").hasTrack1(); assertFalse(result, "result"); } | public boolean hasTrack1() { return track1!=null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String ... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack1() { return track1!=null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(); String ... |
@Test public void testHasTrack2() throws Throwable { boolean result = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,").hasTrack2(); assertTrue(result, "result"); } | public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack... |
@Test public void testHasTrack23() throws Throwable { boolean result = new CardHolder().hasTrack2(); assertFalse(result, "result"); } | public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean hasTrack2() { return pan != null && exp != null && trailer != null; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack... |
@Test public void testStartServiceThrowsNullPointerException() throws Throwable { SpaceLet spaceLet = new SpaceLet(); try { spaceLet.startService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { } } | public void startService() { NameRegistrar.register (uri, this); Iterator iter = getPersist().getChildren("run").iterator(); while (iter.hasNext ()) launch ((Element) iter.next ()); } | SpaceLet extends QBeanSupport implements Space { public void startService() { NameRegistrar.register (uri, this); Iterator iter = getPersist().getChildren("run").iterator(); while (iter.hasNext ()) launch ((Element) iter.next ()); } } | SpaceLet extends QBeanSupport implements Space { public void startService() { NameRegistrar.register (uri, this); Iterator iter = getPersist().getChildren("run").iterator(); while (iter.hasNext ()) launch ((Element) iter.next ()); } } | SpaceLet extends QBeanSupport implements Space { public void startService() { NameRegistrar.register (uri, this); Iterator iter = getPersist().getChildren("run").iterator(); while (iter.hasNext ()) launch ((Element) iter.next ()); } void initService(); void startService(); void stopService(); void out(Object key, Obje... | SpaceLet extends QBeanSupport implements Space { public void startService() { NameRegistrar.register (uri, this); Iterator iter = getPersist().getChildren("run").iterator(); while (iter.hasNext ()) launch ((Element) iter.next ()); } void initService(); void startService(); void stopService(); void out(Object key, Obje... |
@Test public void testIsExpired() throws Throwable { boolean result = new CardHolder("testCardHolderPan", "4Cha").isExpired(); assertTrue(result, "result"); } | public boolean isExpired () { return isExpired(new Date()); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsExpired4() throws Throwable { boolean result = new CardHolder().isExpired(); assertTrue(result, "result"); } | public boolean isExpired () { return isExpired(new Date()); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isExpired () { return isExpired(new Date()); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC() throws Throwable { boolean result = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,").isValidCRC(); assertFalse(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC1() throws Throwable { boolean result = CardHolder.isValidCRC("42"); assertTrue(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC2() throws Throwable { boolean result = CardHolder.isValidCRC("0"); assertTrue(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC3() throws Throwable { boolean result = CardHolder.isValidCRC(""); assertTrue(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC4() throws Throwable { boolean result = CardHolder.isValidCRC("1"); assertFalse(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC5() throws Throwable { boolean result = CardHolder.isValidCRC("testCardHolderp"); assertFalse(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC6() throws Throwable { boolean result = CardHolder.isValidCRC("41CharactersXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); assertFalse(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRC7() throws Throwable { boolean result = CardHolder.isValidCRC("2C"); assertFalse(result, "result"); } | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testInitServiceThrowsNullPointerException() throws Throwable { BSH bSH = new BSH(); try { bSH.initService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals... | public void initService() { bsh = new Interpreter (); BshClassManager bcm = bsh.getClassManager(); try { bcm.setClassPath(getServer().getLoader().getURLs()); } catch (UtilEvalError e) { e.printStackTrace(); } bcm.setClassLoader(getServer().getLoader()); } | BSH extends QBeanSupport implements Runnable { public void initService() { bsh = new Interpreter (); BshClassManager bcm = bsh.getClassManager(); try { bcm.setClassPath(getServer().getLoader().getURLs()); } catch (UtilEvalError e) { e.printStackTrace(); } bcm.setClassLoader(getServer().getLoader()); } } | BSH extends QBeanSupport implements Runnable { public void initService() { bsh = new Interpreter (); BshClassManager bcm = bsh.getClassManager(); try { bcm.setClassPath(getServer().getLoader().getURLs()); } catch (UtilEvalError e) { e.printStackTrace(); } bcm.setClassLoader(getServer().getLoader()); } } | BSH extends QBeanSupport implements Runnable { public void initService() { bsh = new Interpreter (); BshClassManager bcm = bsh.getClassManager(); try { bcm.setClassPath(getServer().getLoader().getURLs()); } catch (UtilEvalError e) { e.printStackTrace(); } bcm.setClassLoader(getServer().getLoader()); } void initService... | BSH extends QBeanSupport implements Runnable { public void initService() { bsh = new Interpreter (); BshClassManager bcm = bsh.getClassManager(); try { bcm.setClassPath(getServer().getLoader().getURLs()); } catch (UtilEvalError e) { e.printStackTrace(); } bcm.setClassLoader(getServer().getLoader()); } void initService... |
@Test public void testIsValidCRCThrowsNullPointerException() throws Throwable { try { new CardHolder().isValidCRC(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot i... | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testIsValidCRCThrowsNullPointerException1() throws Throwable { try { CardHolder.isValidCRC(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot in... | public boolean isValidCRC () { return isValidCRC(this.pan); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean isValidCRC () { return isValidCRC(this.pan); } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTrack1(); boolean hasTrack1(... |
@Test public void testParseTrack2() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.parseTrack2("uD|kOAf(Ls@RaT\f4_3[l\f#mF*'7-yeK^S?qBK ~G"); assertEquals("u", cardHolder.pan, "cardHolder.pan"); assertEquals("|kOA", cardHolder.exp, "cardHolder.exp"); assertEquals("f(Ls@RaT\f4_3[l\f#mF*'7-yeK^S?... | public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { pan = s.substring(0, separatorIndex); exp = s.substring(sepa... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... |
@Test public void testParseTrack2ThrowsInvalidCardException() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); assertThrows(InvalidCardException.class, () -> cardHolder.parseTrack2("D0")); assertEquals("4Cha", cardHolder.exp, "cardHolder.exp"); assertEquals("testCardHolderPan", ca... | public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { pan = s.substring(0, separatorIndex); exp = s.substring(sepa... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... |
@Test public void testParseTrack2ThrowsInvalidCardException1() throws Throwable { CardHolder cardHolder = new CardHolder(); assertThrows(InvalidCardException.class, () -> cardHolder.parseTrack2("testCardHolders")); assertNull(cardHolder.exp, "cardHolder.exp"); assertNull(cardHolder.pan, "cardHolder.pan"); assertNull(ca... | public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { pan = s.substring(0, separatorIndex); exp = s.substring(sepa... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... |
@Test public void testParseTrack2ThrowsInvalidCardException2() throws Throwable { CardHolder cardHolder = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,"); try { cardHolder.parseTrack2(null); fail("Expected InvalidCardException to be thrown"); } catch (InvalidCardException ex) { assertEquals("null track2 dat... | public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { pan = s.substring(0, separatorIndex); exp = s.substring(sepa... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... | CardHolder implements Cloneable, Serializable, Loggeable { public void parseTrack2 (String s) throws InvalidCardException { if (s == null) throw new InvalidCardException ("null track2 data"); int separatorIndex = s.replace ('D','=').indexOf(TRACK2_SEPARATOR); if (separatorIndex > 0 && s.length() > separatorIndex+4) { p... |
@Test public void testSeemsManualEntry() throws Throwable { CardHolder cardHolder = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,"); cardHolder.setTrailer(""); boolean result = cardHolder.seemsManualEntry(); assertTrue(result, "result"); } | public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String... |
@Test public void testSeemsManualEntry2() throws Throwable { boolean result = new CardHolder().seemsManualEntry(); assertTrue(result, "result"); } | public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); } | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String... | CardHolder implements Cloneable, Serializable, Loggeable { public boolean seemsManualEntry() { return trailer == null || trailer.trim().length() == 0; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String... |
@Test public void testSetEXP() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setEXP("9913"); assertEquals("9913", cardHolder.exp, "cardHolder.exp"); } | public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... |
@Test public void testSetEXPThrowsInvalidCardException() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); assertThrows(InvalidCardException.class, () -> cardHolder.setEXP("5Char")); assertEquals("4Cha", cardHolder.exp, "cardHolder.exp"); } | public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... |
@Test public void testRun() throws Throwable { BSH bSH = new BSH(); bSH.run(); assertNull(bSH.bsh, "bSH.bsh"); assertFalse(bSH.isModified(), "bSH.isModified()"); } | public void run () { Element config = getPersist(); try { bsh.set ("qbean", this); bsh.set ("log", getLog()); bsh.set ("cfg", getConfiguration()); bsh.eval (config.getText()); String source = config.getAttributeValue ("source"); if (source != null) bsh.source (source); } catch (Throwable e) { getLog().warn (e); } } | BSH extends QBeanSupport implements Runnable { public void run () { Element config = getPersist(); try { bsh.set ("qbean", this); bsh.set ("log", getLog()); bsh.set ("cfg", getConfiguration()); bsh.eval (config.getText()); String source = config.getAttributeValue ("source"); if (source != null) bsh.source (source); } c... | BSH extends QBeanSupport implements Runnable { public void run () { Element config = getPersist(); try { bsh.set ("qbean", this); bsh.set ("log", getLog()); bsh.set ("cfg", getConfiguration()); bsh.eval (config.getText()); String source = config.getAttributeValue ("source"); if (source != null) bsh.source (source); } c... | BSH extends QBeanSupport implements Runnable { public void run () { Element config = getPersist(); try { bsh.set ("qbean", this); bsh.set ("log", getLog()); bsh.set ("cfg", getConfiguration()); bsh.eval (config.getText()); String source = config.getAttributeValue ("source"); if (source != null) bsh.source (source); } c... | BSH extends QBeanSupport implements Runnable { public void run () { Element config = getPersist(); try { bsh.set ("qbean", this); bsh.set ("log", getLog()); bsh.set ("cfg", getConfiguration()); bsh.eval (config.getText()); String source = config.getAttributeValue ("source"); if (source != null) bsh.source (source); } c... |
@Test public void testSetEXPThrowsInvalidCardException1() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); assertThrows(InvalidCardException.class, () -> cardHolder.setEXP("3Ch")); assertEquals("4Cha", cardHolder.exp, "cardHolder.exp"); } | public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... |
@Test public void testSetEXPThrowsNullPointerException() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); try { cardHolder.setEXP(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMes... | public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... | CardHolder implements Cloneable, Serializable, Loggeable { public void setEXP (String exp) throws InvalidCardException { if (exp.length() != 4) throw new InvalidCardException ("Invalid Exp length, must be 4"); this.exp = exp; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(I... |
@Test public void testSetPAN() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setPAN("10Characte"); assertEquals("10Characte", cardHolder.pan, "cardHolder.pan"); } | public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... |
@Test public void testSetPAN1() throws Throwable { CardHolder cardHolder = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,"); cardHolder.setPAN("11Character"); assertEquals("11Character", cardHolder.pan, "cardHolder.pan"); } | public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... |
@Test public void testSetPANThrowsInvalidCardException() throws Throwable { CardHolder cardHolder = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,"); assertThrows(InvalidCardException.class, () -> cardHolder.setPAN("9Characte")); assertEquals("k'X9|", cardHolder.pan, "cardHolder.pan"); } | public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... |
@Test public void testSetPANThrowsNullPointerException() throws Throwable { CardHolder cardHolder = new CardHolder("k'X9|DH:!;uQ<kG8!P?- ,\"Y!u`r;jB^)>3AbS9,"); try { cardHolder.setPAN(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { asse... | public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } } | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... | CardHolder implements Cloneable, Serializable, Loggeable { public void setPAN (String pan) throws InvalidCardException { if (pan.length() < MINPANLEN) throw new InvalidCardException ("PAN length smaller than min required"); this.pan = pan; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.