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 testSetSecurityCode() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setSecurityCode("testCardHolderSecurityCode"); assertEquals("testCardHolderSecurityCode", cardHolder.securityCode, "cardHolder.securityCode"); }
public void setSecurityCode(String securityCode) { this.securityCode = securityCode; }
CardHolder implements Cloneable, Serializable, Loggeable { public void setSecurityCode(String securityCode) { this.securityCode = securityCode; } }
CardHolder implements Cloneable, Serializable, Loggeable { public void setSecurityCode(String securityCode) { this.securityCode = securityCode; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); }
CardHolder implements Cloneable, Serializable, Loggeable { public void setSecurityCode(String securityCode) { this.securityCode = securityCode; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTra...
CardHolder implements Cloneable, Serializable, Loggeable { public void setSecurityCode(String securityCode) { this.securityCode = securityCode; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); String getTra...
@Test public void testSetTrack1() throws Throwable { CardHolder cardHolder = new CardHolder("testCardHolderPan", "4Cha"); cardHolder.setTrack1("testCardHolderTrack1"); assertEquals("testCardHolderTrack1", cardHolder.track1, "cardHolder.track1"); }
public void setTrack1(String track1) { this.track1 = track1; }
CardHolder implements Cloneable, Serializable, Loggeable { public void setTrack1(String track1) { this.track1 = track1; } }
CardHolder implements Cloneable, Serializable, Loggeable { public void setTrack1(String track1) { this.track1 = track1; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); }
CardHolder implements Cloneable, Serializable, Loggeable { public void setTrack1(String track1) { this.track1 = 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...
CardHolder implements Cloneable, Serializable, Loggeable { public void setTrack1(String track1) { this.track1 = 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...
@Test public void testSetTrailler() throws Throwable { CardHolder cardHolder = new CardHolder(); cardHolder.setTrailer("testCardHolderTrailler"); assertEquals("testCardHolderTrailler", cardHolder.trailer, "cardHolder.trailler"); }
@SuppressWarnings("unused") public void setTrailler (String trailer) { this.trailer = trailer; }
CardHolder implements Cloneable, Serializable, Loggeable { @SuppressWarnings("unused") public void setTrailler (String trailer) { this.trailer = trailer; } }
CardHolder implements Cloneable, Serializable, Loggeable { @SuppressWarnings("unused") public void setTrailler (String trailer) { this.trailer = trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); }
CardHolder implements Cloneable, Serializable, Loggeable { @SuppressWarnings("unused") public void setTrailler (String trailer) { this.trailer = trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); Str...
CardHolder implements Cloneable, Serializable, Loggeable { @SuppressWarnings("unused") public void setTrailler (String trailer) { this.trailer = trailer; } CardHolder(); CardHolder(String track2); CardHolder(String pan, String exp); CardHolder(ISOMsg m); void parseTrack2(String s); void setTrack1(String track1); Str...
@Test public void testFilter() throws Throwable { Configuration cfg = new SimpleConfiguration(); BSHFilter bSHFilter = new BSHFilter(); bSHFilter.setConfiguration(cfg); ISOMsg result = bSHFilter.filter(new PADChannel(), null, new LogEvent("testBSHFilterTag", "testString")); assertNull(result, "result"); assertSame(cfg,...
public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); }
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } }
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } BSHFilter(); }
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } BSHFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); ISOMsg filter(I...
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } BSHFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); ISOMsg filter(I...
@Test public void testStartService() throws Throwable { BSH bSH = new BSH(); bSH.startService(); assertNull(bSH.getName(), "bSH.getName()"); }
public void startService() { new Thread (this, "BSH-" + getName()).start (); }
BSH extends QBeanSupport implements Runnable { public void startService() { new Thread (this, "BSH-" + getName()).start (); } }
BSH extends QBeanSupport implements Runnable { public void startService() { new Thread (this, "BSH-" + getName()).start (); } }
BSH extends QBeanSupport implements Runnable { public void startService() { new Thread (this, "BSH-" + getName()).start (); } void initService(); void startService(); void run(); }
BSH extends QBeanSupport implements Runnable { public void startService() { new Thread (this, "BSH-" + getName()).start (); } void initService(); void startService(); void run(); }
@Test public void testFilterThrowsNullPointerException() throws Throwable { BSHFilter bSHFilter = new BSHFilter(); LogEvent evt = new LogEvent(); try { bSHFilter.filter(new CSChannel("testBSHFilterHost", 100, new PostPackager()), new ISOMsg("testBSHFilterMti"), evt); fail("Expected NullPointerException to be thrown"); ...
public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); }
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } }
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } BSHFilter(); }
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } BSHFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); ISOMsg filter(I...
BSHFilter implements RawIncomingFilter, Configurable { public ISOMsg filter (ISOChannel channel, ISOMsg m, LogEvent evt) throws VetoException { return filter (channel, m, null, null, evt); } BSHFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); ISOMsg filter(I...
@Test public void testSetConfiguration() throws Throwable { BSHFilter bSHFilter = new BSHFilter(); Configuration cfg = new SimpleConfiguration(); bSHFilter.setConfiguration(cfg); assertSame(cfg, bSHFilter.cfg, "bSHFilter.cfg"); }
public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; }
BSHFilter implements RawIncomingFilter, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; } }
BSHFilter implements RawIncomingFilter, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; } BSHFilter(); }
BSHFilter implements RawIncomingFilter, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; } BSHFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); ISOMsg filter(ISOChannel channel, ISOMsg m, byte[] h...
BSHFilter implements RawIncomingFilter, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; } BSHFilter(); void setConfiguration(Configuration cfg); ISOMsg filter(ISOChannel channel, ISOMsg m, LogEvent evt); ISOMsg filter(ISOChannel channel, ISOMsg m, byte[] h...
@Test public void testProcess() throws Throwable { BSHRequestListener bSHRequestListener = new BSHRequestListener(); bSHRequestListener.setConfiguration(new SimpleConfiguration()); boolean result = bSHRequestListener.process(new PostChannel(), new ISOMsg("testBSHRequestListenerMti")); assertFalse(result, "result should...
public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter(); bsh.set("source", source); bsh.set("message", m); bsh.set("log", this); bsh...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
@Test public void testProcess1() throws Throwable { BSHRequestListener bSHRequestListener = new BSHRequestListener(); boolean result = bSHRequestListener.process(new CSChannel(), new ISOMsg()); assertFalse(result, "result"); assertNull(bSHRequestListener.whitelist, "bSHRequestListener.whitelist"); }
public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter(); bsh.set("source", source); bsh.set("message", m); bsh.set("log", this); bsh...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
@Test public void testProcess2() throws Throwable { BSHRequestListener bSHRequestListener = new BSHRequestListener(); ISOMsg m = new ISOMsg(); m.setMTI("testBSHRequestListenerMti"); boolean result = bSHRequestListener.process(new LogChannel(), m); assertFalse(result, "result"); assertNull(bSHRequestListener.whitelist, ...
public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter(); bsh.set("source", source); bsh.set("message", m); bsh.set("log", this); bsh...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public boolean process (ISOSource source, ISOMsg m) { try{ String mti = m.getMTI (); if (!whitelist.contains(mti) && !whitelist.contains("*")) mti = "unsupported"; for (String aBshSource : bshSource) { try { Interpreter bsh = new Interpreter()...
@Test public void testSetConfiguration() throws Throwable { BSHRequestListener bSHRequestListener = new BSHRequestListener(); Configuration cfg = new SimpleConfiguration(); bSHRequestListener.setConfiguration(cfg); assertEquals(1, bSHRequestListener.whitelist.size(), "bSHRequestListener.whitelist.size()"); assertEquals...
public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); }
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } }
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } BSHReq...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } BSHReq...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } BSHReq...
@Test public void testSetConfigurationThrowsNullPointerException() throws Throwable { BSHRequestListener bSHRequestListener = new BSHRequestListener(); Configuration cfg = new SubConfiguration(); try { bSHRequestListener.setConfiguration(cfg); fail("Expected NullPointerException to be thrown"); } catch (NullPointerExce...
public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); }
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } }
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } BSHReq...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } BSHReq...
BSHRequestListener extends Log implements ISORequestListener, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { this.cfg = cfg; bshSource = cfg.getAll ("source"); String[] mti = cfg.get ("whitelist", "*").split(","); whitelist = new HashSet<>( Arrays.asList(mti) ); } BSHReq...
@Test public void testAddScriptInfo() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); bSHLogListener.addScriptInfo("testBSHLogListenerFilename", "testBSHLogListenerCode", 100L); assertEquals(1, bSHLogListener.scripts.size(), "bSHLogListener.scripts.size()"); }
protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } BSHLogListener(); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } BSHLogListener(); @Overri...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } BSHLogListener(); @Overri...
@Test public void testAddScriptInfoThrowsNullPointerException() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); try { bSHLogListener.addScriptInfo(null, "testBSHLogListenerCode", 100L); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertEquals("The scr...
protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } BSHLogListener(); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } BSHLogListener(); @Overri...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected void addScriptInfo(String filename, String code, long lastModified){ Objects.requireNonNull(filename, "The script file name cannot be null"); scripts.put(filename, new ScriptInfo(code, lastModified)); } BSHLogListener(); @Overri...
@Test public void testGetScriptInfo() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); BSHLogListener.ScriptInfo result = bSHLogListener.getScriptInfo("testBSHLogListenerFilename"); assertNull(result, "result"); assertEquals(0, bSHLogListener.scripts.size(), "bSHLogListener.scripts.size()"); }
protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } BSHLogListener(); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } BSHLogListener(); @Override void setConfiguration(org.jpos.core.Configuration cf...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } BSHLogListener(); @Override void setConfiguration(org.jpos.core.Configuration cf...
@Test public void testStartService() throws Throwable { Shutdown shutdown = new Shutdown(); String[] args = new String[2]; args[0] = ""; args[1] = "testString"; shutdown.setServer(server); shutdown.startService(); assertSame(server, shutdown.getServer(), "shutdown.getServer()"); }
public void startService() { getServer().shutdown (); }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } void startService(); }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } void startService(); }
@Test public void testGetScriptInfoThrowsNullPointerException() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); try { bSHLogListener.getScriptInfo(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertEquals("The script file name cannot be null", e...
protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } BSHLogListener(); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } BSHLogListener(); @Override void setConfiguration(org.jpos.core.Configuration cf...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected ScriptInfo getScriptInfo(String filename){ Objects.requireNonNull(filename, "The script file name cannot be null"); return scripts.get(filename); } BSHLogListener(); @Override void setConfiguration(org.jpos.core.Configuration cf...
@Test public void testLoadCodeThrowsFileNotFoundException() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); File f = new File("testBSHLogListenerParam1"); try { bSHLogListener.loadCode(f); fail("Expected FileNotFoundException to be thrown"); } catch (FileNotFoundException ex) { assertEquals(Fil...
protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(content))!=-1) buf.append(content,0,l); } finally { r.close(); } return buf.toString();...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
@Test public void testLoadCodeThrowsNullPointerException() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); try { bSHLogListener.loadCode(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { } }
protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(content))!=-1) buf.append(content,0,l); } finally { r.close(); } return buf.toString();...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected String loadCode(File f) throws IOException{ StringBuilder buf = new StringBuilder((int)f.length()); char[] content = new char[(int)f.length()]; int l; Reader r = new BufferedReader(new FileReader(f)); try { while((l=r.read(conte...
@Test public void testLog() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); Configuration cfg = new SimpleConfiguration(new Properties()); bSHLogListener.setConfiguration(cfg); LogEvent ev = new LogEvent("testBSHLogListenerTag"); ev.setSource(new LogChannel()); LogEvent result = bSHLogListener....
@Override public LogEvent log(LogEvent ev) { LogEvent ret = ev; boolean processed = false; try{ String[] sources = replace(cfg.getAll("source"), patterns, new String[] {ev.getTag(), ev.getRealm()}); for(int i=0; i<sources.length && ret != null; i++){ try{ Interpreter bsh = new Interpreter(); BSHLogListener.ScriptInfo i...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public LogEvent log(LogEvent ev) { LogEvent ret = ev; boolean processed = false; try{ String[] sources = replace(cfg.getAll("source"), patterns, new String[] {ev.getTag(), ev.getRealm()}); for(int i=0; i<sources.length && ret !=...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public LogEvent log(LogEvent ev) { LogEvent ret = ev; boolean processed = false; try{ String[] sources = replace(cfg.getAll("source"), patterns, new String[] {ev.getTag(), ev.getRealm()}); for(int i=0; i<sources.length && ret !=...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public LogEvent log(LogEvent ev) { LogEvent ret = ev; boolean processed = false; try{ String[] sources = replace(cfg.getAll("source"), patterns, new String[] {ev.getTag(), ev.getRealm()}); for(int i=0; i<sources.length && ret !=...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public LogEvent log(LogEvent ev) { LogEvent ret = ev; boolean processed = false; try{ String[] sources = replace(cfg.getAll("source"), patterns, new String[] {ev.getTag(), ev.getRealm()}); for(int i=0; i<sources.length && ret !=...
@Test public void testReplace() throws Throwable { String[] src = new String[87]; src[0] = "x9"; src[1] = "testString"; src[2] = "testString"; src[3] = "testString"; src[4] = "D"; src[5] = "$vnwI &I=+SgEHrK:s<G@mEj*fv!.zH>ly({cw t"; src[6] = "testString"; src[7] = "preload-scripts"; src[8] = "4$%h\fZdi\\I"; src[9] = "t...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplace1() throws Throwable { String[] src = new String[2]; src[0] = "$\u9C99"; src[1] = "testString"; String[] patterns = new String[0]; String[] to = new String[1]; String[] result = BSHLogListener.replace(src, patterns, to); assertEquals(2, result.length, "result.length"); assertEquals("\u9C99"...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplace2() throws Throwable { String[] src = new String[8]; src[0] = "testString"; src[1] = "abcdefghisklmnopqrstuvwxyz"; src[2] = "testString"; src[3] = "testString"; src[4] = "\u53AF\u656B\u53B5\u30E0\u4AB3\u98BF$\uF51B\u7D75\u141A\u4FC6\uB213\uD2B1\uBD90"; src[5] = "testString"; src[6] = "testS...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplace3() throws Throwable { String[] src = new String[1]; src[0] = "testString"; String[] patterns = new String[3]; String[] to = new String[2]; String[] result = BSHLogListener.replace(src, patterns, to); assertEquals(1, result.length, "result.length"); assertEquals("testString", result[0], "re...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplace4() throws Throwable { String[] src = new String[0]; String[] patterns = new String[2]; String[] to = new String[2]; String[] result = BSHLogListener.replace(src, patterns, to); assertEquals(0, result.length, "result.length"); }
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsArrayIndexOutOfBoundsException() throws Throwable { String[] src = new String[84]; src[0] = "$i"; src[1] = "testString"; src[2] = "W&s*BDBn*OJ$4E$j"; src[3] = "CxZZ$>"; String[] patterns = new String[1]; patterns[0] = ">"; String[] to = new String[0]; try { BSHLogListener.replace(src,...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testStartServiceThrowsNullPointerException() throws Throwable { try { new Shutdown().startService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot...
public void startService() { getServer().shutdown (); }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } void startService(); }
Shutdown extends QBeanSupport { public void startService() { getServer().shutdown (); } void startService(); }
@Test public void testReplaceThrowsNullPointerException() throws Throwable { String[] src = new String[87]; src[0] = "x9"; src[1] = "testString"; src[2] = "testString"; src[3] = "testString"; src[4] = "D"; src[5] = "$vnwI &I=+SgEHrK:s<G@mEj*fv!.zH>ly({cw t"; src[6] = "testString"; src[7] = "preload-scripts"; src[8] = "...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException1() throws Throwable { String[] src = new String[54]; src[0] = "6$\uBB74"; src[1] = "testString"; src[2] = "testString"; src[3] = "1fg"; src[4] = "1k"; src[5] = "testString"; src[6] = "testString"; src[7] = "testString"; src[8] = "testString"; src[9] = "testString"...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException2() throws Throwable { String[] src = new String[87]; src[0] = "x9"; src[1] = "testString"; src[2] = "testString"; src[3] = "testString"; src[4] = "D"; src[5] = "$vnwI &I=+SgEHrK:s<G@mEj*fv!.zH>ly({cw t"; String[] patterns = new String[2]; patterns[0] = "testString...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException3() throws Throwable { String[] src = new String[87]; src[0] = "x9"; src[1] = "testString"; src[2] = "testString"; src[3] = "testString"; src[4] = "D"; src[5] = "$vnwI &I=+SgEHrK:s<G@mEj*fv!.zH>ly({cw t"; String[] patterns = new String[2]; patterns[0] = "testString...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException4() throws Throwable { String[] src = new String[54]; src[0] = "6$\uBB74"; String[] patterns = new String[3]; patterns[0] = "testString"; String[] to = new String[0]; try { BSHLogListener.replace(src, patterns, to); fail("Expected NullPointerException to be thrown"...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException5() throws Throwable { String[] src = new String[85]; src[0] = "l\u0002\u001AFZP\u0019r{\u001449\u00157\u0019lex\u0007\"<h~\f\u00019mF0"; src[1] = "$\n=A\tg[8%-cIo=#OiLf{k(c'z\n+i7Aavrpk2"; String[] patterns = new String[2]; String[] to = new String[3]; try { BSHL...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException6() throws Throwable { String[] src = new String[84]; src[0] = "$i"; String[] patterns = new String[1]; String[] to = new String[0]; try { BSHLogListener.replace(src, patterns, to); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException e...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException7() throws Throwable { String[] src = new String[8]; src[0] = "testString"; String[] patterns = new String[1]; String[] to = new String[1]; try { BSHLogListener.replace(src, patterns, to); fail("Expected NullPointerException to be thrown"); } catch (NullPointerExce...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException8() throws Throwable { String[] patterns = new String[3]; String[] to = new String[2]; try { BSHLogListener.replace(null, patterns, to); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { asse...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@Test public void testReplaceThrowsNullPointerException9() throws Throwable { String[] src = new String[1]; String[] patterns = new String[0]; String[] to = new String[2]; try { BSHLogListener.replace(src, patterns, to); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaV...
protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((begin = src[i].indexOf('$',end))>=0 && begin<src[i].length()){ buff.append(src[i]....
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { protected static String[] replace(String[] src, String[] patterns, String[] to){ String[] ret = new String[src.length]; for(int i=0; i<src.length; i++){ StringBuilder buff = new StringBuilder(2*src[i].length()); int begin, end=0; while ((...
@SuppressWarnings("unchecked") @Test public void testGetKeys() throws Throwable { Set result = new SpaceAdaptor().getKeys(); assertNull(result, "result"); }
public Set getKeys () { if (sp instanceof LocalSpace) return ((LocalSpace)sp).getKeySet (); return null; }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { public Set getKeys () { if (sp instanceof LocalSpace) return ((LocalSpace)sp).getKeySet (); return null; } }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { public Set getKeys () { if (sp instanceof LocalSpace) return ((LocalSpace)sp).getKeySet (); return null; } SpaceAdaptor(); }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { public Set getKeys () { if (sp instanceof LocalSpace) return ((LocalSpace)sp).getKeySet (); return null; } SpaceAdaptor(); synchronized void setSpaceName(String spaceName); String getSpaceName(); Set getKeys(); }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { public Set getKeys () { if (sp instanceof LocalSpace) return ((LocalSpace)sp).getKeySet (); return null; } SpaceAdaptor(); synchronized void setSpaceName(String spaceName); String getSpaceName(); Set getKeys(); }
@Test public void testSetConfiguration() throws Throwable { BSHLogListener bSHLogListener = new BSHLogListener(); Configuration cfg = new SimpleConfiguration(new Properties()); bSHLogListener.setConfiguration(cfg); assertSame(cfg, bSHLogListener.cfg, "bSHLogListener.cfg"); }
@Override public void setConfiguration(org.jpos.core.Configuration cfg) { this.cfg = cfg; }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public void setConfiguration(org.jpos.core.Configuration cfg) { this.cfg = cfg; } }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public void setConfiguration(org.jpos.core.Configuration cfg) { this.cfg = cfg; } BSHLogListener(); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public void setConfiguration(org.jpos.core.Configuration cfg) { this.cfg = cfg; } BSHLogListener(); @Override void setConfiguration(org.jpos.core.Configuration cfg); @Override LogEvent log(LogEvent ev); }
BSHLogListener implements org.jpos.util.LogListener, org.jpos.core.Configurable { @Override public void setConfiguration(org.jpos.core.Configuration cfg) { this.cfg = cfg; } BSHLogListener(); @Override void setConfiguration(org.jpos.core.Configuration cfg); @Override LogEvent log(LogEvent ev); }
@Disabled("test fails - needs a real action file") @Test public void testActionPerformed() throws Throwable { new BSHAction().actionPerformed(new ActionEvent("testString", 100, "testBSHActionParam3", 100L, 1000)); assertTrue(true, "Test completed without Exception"); }
public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } }
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } }
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } BSHAction(); }
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } BSHAction(); void setUI(UI ui, Element e); void actionPerformed(Act...
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } BSHAction(); void setUI(UI ui, Element e); void actionPerformed(Act...
@Test public void testActionPerformedThrowsNullPointerException() throws Throwable { try { new BSHAction().actionPerformed(null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEqu...
public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } }
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } }
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } BSHAction(); }
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } BSHAction(); void setUI(UI ui, Element e); void actionPerformed(Act...
BSHAction implements ActionListener, UIAware { public void actionPerformed (ActionEvent ev) { String bshSource = ev.getActionCommand(); try { Interpreter bsh = new Interpreter (); bsh.source (bshSource); } catch (Exception e) { e.printStackTrace(); } } BSHAction(); void setUI(UI ui, Element e); void actionPerformed(Act...
@Test public void testPack() throws Exception { ISOField field = new ISOField(12, "D123"); IFB_AMOUNT packager = new IFB_AMOUNT(6, "Should be D00123", true); TestUtils.assertEquals(new byte[]{68, 0x00, 0x01, 0x23}, packager.pack(field)); }
public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; }
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } }
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } IFB_A...
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } IFB_A...
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } IFB_A...
@Test public void testPackOddDigits() throws Exception { ISOField field = new ISOField(12, "D123"); IFB_AMOUNT packager = new IFB_AMOUNT(5, "Should be D0123", true); TestUtils.assertEquals(new byte[]{68, 0x01, 0x23}, packager.pack(field)); }
public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; }
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } }
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } IFB_A...
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } IFB_A...
IFB_AMOUNT extends ISOFieldPackager { public byte[] pack (ISOComponent c) throws ISOException { String s = (String) c.getValue(); String amount = ISOUtil.zeropad(s.substring(1), getLength()-1); byte[] b = new byte[1 + (getLength() >> 1)]; b[0] = (byte) s.charAt(0); interpreter.interpret(amount, b, 1); return b; } IFB_A...
@Test public void testUnpack() throws Exception { byte[] raw = new byte[]{68, 0x00, 0x01, 0x23}; IFB_AMOUNT packager = new IFB_AMOUNT(6, "Should be D00123", true); ISOField field = new ISOField(12); packager.unpack(field, raw, 0); assertEquals("D00123", (String) field.getValue()); }
public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { String d = new String(b, offset, 1) + interpreter.uninterpret(b, offset + 1, getLength() - 1); c.setValue(d); return 1 + (getLength() >> 1); }
IFB_AMOUNT extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { String d = new String(b, offset, 1) + interpreter.uninterpret(b, offset + 1, getLength() - 1); c.setValue(d); return 1 + (getLength() >> 1); } }
IFB_AMOUNT extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { String d = new String(b, offset, 1) + interpreter.uninterpret(b, offset + 1, getLength() - 1); c.setValue(d); return 1 + (getLength() >> 1); } IFB_AMOUNT(); IFB_AMOUNT(int len, String description, boole...
IFB_AMOUNT extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { String d = new String(b, offset, 1) + interpreter.uninterpret(b, offset + 1, getLength() - 1); c.setValue(d); return 1 + (getLength() >> 1); } IFB_AMOUNT(); IFB_AMOUNT(int len, String description, boole...
IFB_AMOUNT extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { String d = new String(b, offset, 1) + interpreter.uninterpret(b, offset + 1, getLength() - 1); c.setValue(d); return 1 + (getLength() >> 1); } IFB_AMOUNT(); IFB_AMOUNT(int len, String description, boole...
@Test public void interpret() { byte[] result = new byte[binaryData.length]; interpreter.interpret(binaryData, result, 0); assertThat(result, is(EBCDICDATA)); }
public void interpret(byte[] data, byte[] b, int offset) { ISOUtil.asciiToEbcdic(data, b, offset); }
EbcdicBinaryInterpreter implements BinaryInterpreter { public void interpret(byte[] data, byte[] b, int offset) { ISOUtil.asciiToEbcdic(data, b, offset); } }
EbcdicBinaryInterpreter implements BinaryInterpreter { public void interpret(byte[] data, byte[] b, int offset) { ISOUtil.asciiToEbcdic(data, b, offset); } }
EbcdicBinaryInterpreter implements BinaryInterpreter { public void interpret(byte[] data, byte[] b, int offset) { ISOUtil.asciiToEbcdic(data, b, offset); } void interpret(byte[] data, byte[] b, int offset); byte[] uninterpret(byte[] rawData, int offset, int length); int getPackedLength(int nDataUnits); }
EbcdicBinaryInterpreter implements BinaryInterpreter { public void interpret(byte[] data, byte[] b, int offset) { ISOUtil.asciiToEbcdic(data, b, offset); } void interpret(byte[] data, byte[] b, int offset); byte[] uninterpret(byte[] rawData, int offset, int length); int getPackedLength(int nDataUnits); static final Eb...
@Test public void uninterpret() { int offset = 0; int length = EBCDICDATA.length; byte[] result = interpreter.uninterpret(EBCDICDATA, offset, length); assertThat(result, is(binaryData)); }
public byte[] uninterpret(byte[] rawData, int offset, int length) { return ISOUtil.ebcdicToAsciiBytes(rawData, offset, length); }
EbcdicBinaryInterpreter implements BinaryInterpreter { public byte[] uninterpret(byte[] rawData, int offset, int length) { return ISOUtil.ebcdicToAsciiBytes(rawData, offset, length); } }
EbcdicBinaryInterpreter implements BinaryInterpreter { public byte[] uninterpret(byte[] rawData, int offset, int length) { return ISOUtil.ebcdicToAsciiBytes(rawData, offset, length); } }
EbcdicBinaryInterpreter implements BinaryInterpreter { public byte[] uninterpret(byte[] rawData, int offset, int length) { return ISOUtil.ebcdicToAsciiBytes(rawData, offset, length); } void interpret(byte[] data, byte[] b, int offset); byte[] uninterpret(byte[] rawData, int offset, int length); int getPackedLength(int...
EbcdicBinaryInterpreter implements BinaryInterpreter { public byte[] uninterpret(byte[] rawData, int offset, int length) { return ISOUtil.ebcdicToAsciiBytes(rawData, offset, length); } void interpret(byte[] data, byte[] b, int offset); byte[] uninterpret(byte[] rawData, int offset, int length); int getPackedLength(int...
@Test public void testAllISOCurrenciesIncluded() { Set<java.util.Currency> currencies = java.util.Currency.getAvailableCurrencies(); StringBuilder msg = new StringBuilder(); for (java.util.Currency sc : currencies) { try { if (sc.getDefaultFractionDigits() < 0) continue; int currencyCode = sc.getNumericCode(); Currency...
public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); }
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } }
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } private ISOCurrency(); }
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } private ISOCurrency(); @SuppressWarnings({"EmptyCatchBlock"}) static void loadPropertiesFromClasspath(String base); static double convertFr...
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } private ISOCurrency(); @SuppressWarnings({"EmptyCatchBlock"}) static void loadPropertiesFromClasspath(String base); static double convertFr...
@Test public void testIsoStandardCurrencies() { Map<String, String> c = new HashMap<String, String>(); Map<String, Integer> cD = new HashMap<String, Integer>(); c.put("971", "AFN"); cD.put("971", 2); c.put("978", "EUR"); cD.put("978", 2); c.put("008", "ALL"); cD.put("008", 2); c.put("012", "DZD"); cD.put("012", 2); c.p...
public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); }
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } }
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } private ISOCurrency(); }
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } private ISOCurrency(); @SuppressWarnings({"EmptyCatchBlock"}) static void loadPropertiesFromClasspath(String base); static double convertFr...
ISOCurrency { public static Currency getCurrency(int code) throws ISOException { final String isoCode = ISOUtil.zeropad(Integer.toString(code), 3); return findCurrency(isoCode); } private ISOCurrency(); @SuppressWarnings({"EmptyCatchBlock"}) static void loadPropertiesFromClasspath(String base); static double convertFr...
@Test public void testStopServiceThrowsNullPointerException() throws Throwable { SpaceAdaptor spaceAdaptor = new SpaceAdaptor(); try { spaceAdaptor.stopService(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.g...
protected void stopService () throws Exception { getServer().getMBeanServer().unregisterMBean (objectName); }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { protected void stopService () throws Exception { getServer().getMBeanServer().unregisterMBean (objectName); } }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { protected void stopService () throws Exception { getServer().getMBeanServer().unregisterMBean (objectName); } SpaceAdaptor(); }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { protected void stopService () throws Exception { getServer().getMBeanServer().unregisterMBean (objectName); } SpaceAdaptor(); synchronized void setSpaceName(String spaceName); String getSpaceName(); Set getKeys(); }
SpaceAdaptor extends QBeanSupport implements SpaceAdaptorMBean { protected void stopService () throws Exception { getServer().getMBeanServer().unregisterMBean (objectName); } SpaceAdaptor(); synchronized void setSpaceName(String spaceName); String getSpaceName(); Set getKeys(); }
@Test public void testGetTLVEmptyValue1() { byte[] value = new byte[0]; byte[] result = tl.createTLVMsg(TEST_TAG1, value).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 testExecShellScriptCommand() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("ShellScriptLocation", "src/test/resources/TestScript.sh"); ExecShellScriptWorkItemHandler handler = new ExecShellScriptWorkItemHan...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (String) workItem.getParameter("TimeoutInMillis"); Long timeout = null; if (to...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
@Test(expected = WorkItemHandlerRuntimeException.class) public void queryWithParameterActionTestInvalidParams() throws Exception { WorkItemManager manager = new TestWorkItemManager(); String DESC = "Cheese"; Product p1 = new Product("Bread", 2f); Product p2 = new Product("Milk", 3f); Product p3 = new Product(DESC, 5f);...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object queryName = wi.getParameter(P_QUERY); Object queryParams = wi.getParameter(P_QUERY_P...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
@Test public void testNoFilesSpecified() { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("Archive", "testfile.txt"); workItem.setParameter("Files", new ArrayList<File>()); ArchiveWorkItemHandler archiveWorkItemHandler = new ArchiveWorkItemHand...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass(), workItem); OutputStream outputStream = new FileOutputStream(new...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
@Test public void testWithTempFile() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setId(123L); File tempFile = tempFolder.newFile("tempFile1.txt"); FileUtils.writeStringToFile(tempFile, "temp file content", "UTF-8"); File tempFileTwo = ...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass(), workItem); OutputStream outputStream = new FileOutputStream(new...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
@Test public void testNoArchiveSpecified() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("Files", new ArrayList<File>()); ArchiveWorkItemHandler archiveWorkItemHandler = new ArchiveWorkItemHandler(); archiveWorkItemHandler.s...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass(), workItem); OutputStream outputStream = new FileOutputStream(new...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
ArchiveWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { String archive = (String) workItem.getParameter("Archive"); List<File> files = (List<File>) workItem.getParameter("Files"); try { RequiredParameterValidator.validate(this.getClass...
@Test public void testExceptionHandlingWhenClosed() throws Exception{ buildKafkaWIH(true); mockProducerString.close(); assertExceptionAfterExecuteWorkItem(workItem); }
@Override public void close() { if (producer != null) { producer.flush(); producer.close(); } }
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } }
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } KafkaWorkItemHandler(Producer producer); KafkaWorkItemHandler(String bootstrapServers, String clientId, ...
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } KafkaWorkItemHandler(Producer producer); KafkaWorkItemHandler(String bootstrapServers, String clientId, ...
KafkaWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { @Override public void close() { if (producer != null) { producer.flush(); producer.close(); } } KafkaWorkItemHandler(Producer producer); KafkaWorkItemHandler(String bootstrapServers, String clientId, ...
@Test public void testXmlToObject() { WorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter(ParserWorkItemHandler.INPUT, PERSON_XML); workItem.setParameter(ParserWorkItemHandler.FORMAT, ParserWorkItemHandler.XML); workItem.setParameter(ParserWorkItemHandl...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String format = wi.getParameter(FORMAT).toString(); Class<?> type = null; inp...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
@Test(expected = WorkItemHandlerRuntimeException.class) public void testXmlToObjectInvalidParams() { WorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); handler.executeWorkItem(workItem, manager); Map<String, Object> results = ((TestWorkItemManager) manager).getResults(workI...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String format = wi.getParameter(FORMAT).toString(); Class<?> type = null; inp...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
@Test public void testObjectToXml() { WorkItemManager manager = new TestWorkItemManager(); Person p = new Person(NAME, AGE); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter(ParserWorkItemHandler.INPUT, p); workItem.setParameter(ParserWorkItemHandler.FORMAT, ParserWorkItemHandler.XML); handler.executeW...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String format = wi.getParameter(FORMAT).toString(); Class<?> type = null; inp...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
@Test public void testJsonToObject() { WorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter(ParserWorkItemHandler.INPUT, PERSON_JSON); workItem.setParameter(ParserWorkItemHandler.FORMAT, ParserWorkItemHandler.JSON); workItem.setParameter(ParserWorkItemHa...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String format = wi.getParameter(FORMAT).toString(); Class<?> type = null; inp...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
@Test public void testObjectToJson() { WorkItemManager manager = new TestWorkItemManager(); Person p = new Person(NAME, AGE); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter(ParserWorkItemHandler.INPUT, p); workItem.setParameter(ParserWorkItemHandler.FORMAT, ParserWorkItemHandler.JSON); handler.execut...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String format = wi.getParameter(FORMAT).toString(); Class<?> type = null; inp...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
ParserWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object input; Object result = null; boolean toObject; Map<String, Object> results = new HashMap<String, Object>(); try { RequiredParameterValidator.validate(this.getClass(), wi); String form...
@Test public void testExecShellScriptCommandWithTimeout() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("ShellScriptLocation", "src/test/resources/TestScript.sh"); workItem.setParameter("TimeoutInMillis", "10"); ExecShellScr...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (String) workItem.getParameter("TimeoutInMillis"); Long timeout = null; if (to...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
@Test public void testCleanInstallSimpleProjectSync() { TestWorkItemManager manager = new TestWorkItemManager(); File simpleTestProjectDir = new File("src/test/resources/simple"); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("Goals", "clean install"); workItem.setParameter("WorkDirectory", simpleTe...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) workItem.getParameter("CLOptions"); String workDir = (String) workItem.getP...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
@Test public void testCleanInstallSimpleProjectAsync() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); File simpleTestProjectDir = new File("src/test/resources/simple"); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("Goals", "clean install"); workItem.setParameter("WorkDi...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) workItem.getParameter("CLOptions"); String workDir = (String) workItem.getP...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
@Test public void testCleanInstallSimpleProjecSynctWithCLOptions() { TestWorkItemManager manager = new TestWorkItemManager(); File simpleTestProjectDir = new File("src/test/resources/simple"); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("Goals", "clean install"); workItem.setParameter("CLOptions",...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) workItem.getParameter("CLOptions"); String workDir = (String) workItem.getP...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
@Test public void testCleanInstallSimpleProjecAsynctWithCLOptions() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); File simpleTestProjectDir = new File("src/test/resources/simple"); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("Goals", "clean install"); workItem.setPara...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) workItem.getParameter("CLOptions"); String workDir = (String) workItem.getP...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
@Test(expected = WorkItemHandlerRuntimeException.class) public void testCleanInstallSimpleProjectWithInvalidParams() { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); MavenEmbedderWorkItemHandler handler = new MavenEmbedderWorkItemHandler(); handler.executeWorkItem(w...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) workItem.getParameter("CLOptions"); String workDir = (String) workItem.getP...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
MavenEmbedderWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String goals = (String) workItem.getParameter("Goals"); String commandLineOptions = (String) wo...
@Test public void testFetchAllRows() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("SQLStatement", "select * from Person"); ExecuteSqlWorkItemHandler handler = new ExecuteSqlWorkItemHandler(DS_NAME); handler.executeWorkItem(...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getClass(), workItem); Map<String, Object> results = new HashMap<>(); String sqlStatement = (Stri...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
@Test public void testFetchSpecificRow() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("SQLStatement", "select * from Person where id = 1"); ExecuteSqlWorkItemHandler handler = new ExecuteSqlWorkItemHandler(DS_NAME); handler...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getClass(), workItem); Map<String, Object> results = new HashMap<>(); String sqlStatement = (Stri...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
@Test public void testNoResults() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("SQLStatement", "select * from Person where id = 100"); ExecuteSqlWorkItemHandler handler = new ExecuteSqlWorkItemHandler(DS_NAME); handler.exec...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getClass(), workItem); Map<String, Object> results = new HashMap<>(); String sqlStatement = (Stri...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
@Test public void testUpdate() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("SQLStatement", "update Person set age=4 where id = 3"); ExecuteSqlWorkItemHandler handler = new ExecuteSqlWorkItemHandler(DS_NAME); handler.execut...
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getClass(), workItem); Map<String, Object> results = new HashMap<>(); String sqlStatement = (Stri...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
ExecuteSqlWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) { Connection connection = null; PreparedStatement statement = null; ResultSet resultSet = null; try { RequiredParameterValidator.validate(this.getCla...
@Test public void testExecShellScriptCommandWithAddEnvironmentVariables() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("ShellScriptLocation", "src/test/resources/TestScript.sh"); Map<String, String> envVariableList = new Ha...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (String) workItem.getParameter("TimeoutInMillis"); Long timeout = null; if (to...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
@Test public void testExecShellScriptCommandWithRemoveEnvironmentVariables() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); workItem.setParameter("ShellScriptLocation", "src/test/resources/TestScript.sh"); Map<String, String> envVariableList = new...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (String) workItem.getParameter("TimeoutInMillis"); Long timeout = null; if (to...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
@Test public void testExecShellScriptCommandInvalidParam() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); ExecShellScriptWorkItemHandler handler = new ExecShellScriptWorkItemHandler(); handler.setLogThrownException(true); handler.executeWorkItem(w...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (String) workItem.getParameter("TimeoutInMillis"); Long timeout = null; if (to...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
ExecShellScriptWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String shellScriptLocation = (String) workItem.getParameter("ShellScriptLocation"); String tout = (St...
@Test public void testExecCommandInvalidParam() throws Exception { TestWorkItemManager manager = new TestWorkItemManager(); WorkItemImpl workItem = new WorkItemImpl(); ExecWorkItemHandler handler = new ExecWorkItemHandler(); handler.setLogThrownException(true); handler.executeWorkItem(workItem, manager); assertNotNull(...
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String command = (String) workItem.getParameter("Command"); List<String> arguments = (List<String>) workItem.getParameter("Arguments"); Map<String, Object> results = new HashMa...
ExecWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String command = (String) workItem.getParameter("Command"); List<String> arguments = (List<String>) workItem.get...
ExecWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String command = (String) workItem.getParameter("Command"); List<String> arguments = (List<String>) workItem.get...
ExecWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String command = (String) workItem.getParameter("Command"); List<String> arguments = (List<String>) workItem.get...
ExecWorkItemHandler extends AbstractLogOrThrowWorkItemHandler { public void executeWorkItem(WorkItem workItem, WorkItemManager manager) { try { RequiredParameterValidator.validate(this.getClass(), workItem); String command = (String) workItem.getParameter("Command"); List<String> arguments = (List<String>) workItem.get...
@Test public void createOnProcessTest() throws Exception { String DESC = "Table"; Product p = new Product(DESC, 10f); startJPAWIHProcess(JPAWorkItemHandler.CREATE_ACTION, p); UserTransaction ut = getUserTransaction(); ut.begin(); EntityManager em = emf.createEntityManager(); TypedQuery<Product> products = em.createQuer...
public void close() { emf.close(); }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); void executeWorkItem(WorkItem wi, ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); void executeWorkItem(WorkItem wi, ...
@Test public void removeOnProcessTest() throws Exception { Product p = new Product("A Product", 10f); ut.begin(); EntityManager em = emf.createEntityManager(); em.persist(p); long id = p.getId(); em.close(); ut.commit(); startJPAWIHProcess(JPAWorkItemHandler.DELETE_ACTION, p); ut.begin(); em = emf.createEntityManager()...
public void close() { emf.close(); }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); void executeWorkItem(WorkItem wi, ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); void executeWorkItem(WorkItem wi, ...
@Test public void updateOnProcessTest() throws Exception { String DESC = "Table"; String NEW_DESC = "Red Table"; Product p = new Product(DESC, 10f); ut.begin(); EntityManager em = emf.createEntityManager(); em.persist(p); long id = p.getId(); em.close(); ut.commit(); p.setDescription(NEW_DESC); startJPAWIHProcess(JPAWo...
public void close() { emf.close(); }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); }
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); void executeWorkItem(WorkItem wi, ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void close() { emf.close(); } JPAWorkItemHandler(String persistenceUnit); JPAWorkItemHandler(String persistenceUnit, ClassLoader classloader); void executeWorkItem(WorkItem wi, ...
@Test public void queryWithParameterActionTest() throws Exception { WorkItemManager manager = new TestWorkItemManager(); String DESC = "Cheese"; Product p1 = new Product("Bread", 2f); Product p2 = new Product("Milk", 3f); Product p3 = new Product(DESC, 5f); create(p1); create(p2); create(p3); WorkItemImpl workItem = ne...
public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object queryName = wi.getParameter(P_QUERY); Object queryParams = wi.getParameter(P_QUERY_P...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
JPAWorkItemHandler extends AbstractLogOrThrowWorkItemHandler implements Cacheable { public void executeWorkItem(WorkItem wi, WorkItemManager wim) { Object actionParam = wi.getParameter(P_ACTION); Object entity = wi.getParameter(P_ENTITY); Object id = wi.getParameter(P_ID); Object type = wi.getParameter(P_TYPE); Object ...
@Test void testFromFileWithANotExistingFile() { assertThrows(RuntimeException.class, () -> { DiffInfo.fromFile("notExistingPath"); }); }
public static DiffInfo fromFile(String path) { try { return new DiffInfo(Files.newBufferedReader(Paths.get(path))); } catch (IOException exc) { throw new RuntimeException("Could not open file: " + path, exc); } }
DiffInfo { public static DiffInfo fromFile(String path) { try { return new DiffInfo(Files.newBufferedReader(Paths.get(path))); } catch (IOException exc) { throw new RuntimeException("Could not open file: " + path, exc); } } }
DiffInfo { public static DiffInfo fromFile(String path) { try { return new DiffInfo(Files.newBufferedReader(Paths.get(path))); } catch (IOException exc) { throw new RuntimeException("Could not open file: " + path, exc); } } DiffInfo(BufferedReader reader); }
DiffInfo { public static DiffInfo fromFile(String path) { try { return new DiffInfo(Files.newBufferedReader(Paths.get(path))); } catch (IOException exc) { throw new RuntimeException("Could not open file: " + path, exc); } } DiffInfo(BufferedReader reader); boolean contains(String path); static DiffInfo fromFile(String ...
DiffInfo { public static DiffInfo fromFile(String path) { try { return new DiffInfo(Files.newBufferedReader(Paths.get(path))); } catch (IOException exc) { throw new RuntimeException("Could not open file: " + path, exc); } } DiffInfo(BufferedReader reader); boolean contains(String path); static DiffInfo fromFile(String ...
@Test void testInterceptorType() { DiffMutationFilterFactory diffMutationFilterFactory = new DiffMutationFilterFactory(); MutationInterceptor diffMutationFilter = diffMutationFilterFactory .createInterceptor(makeFor("file", "LICENSE")); assertEquals(InterceptorType.FILTER, diffMutationFilter.type()); }
@Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); } }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); } }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); } @Override MutationInterceptor c...
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); } @Override MutationInterceptor c...
@Test void testConvertToEntityAttribute() { Assertions.assertEquals("test", textAttributeConverter.convertToEntityAttribute("test")); }
@Override public String convertToEntityAttribute(String text) { return text; }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToEntityAttribute(String text) { return text; } }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToEntityAttribute(String text) { return text; } }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToEntityAttribute(String text) { return text; } @Override String convertToDatabaseColumn(String text); @Override String convertToEntityAttribute(String text); }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToEntityAttribute(String text) { return text; } @Override String convertToDatabaseColumn(String text); @Override String convertToEntityAttribute(String text); }
@Test void testGetHookPhasesBeforeStop() { List<HookPhase> hookPhases = List.of(HookPhase.BEFORE_STOP); StopAppStep beforeStepHookPhaseProvider = Mockito.mock(StopAppStep.class); Mockito.when(beforeStepHookPhaseProvider.getHookPhasesBeforeStep(context)) .thenReturn(hookPhases); List<HookPhase> hookPhasesBeforeStop = ho...
public List<HookPhase> getHookPhasesBeforeStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof BeforeStepHookPhaseProvider) { return ((BeforeStepHookPhaseProvider) syncFlowableStep).getHookPhasesBeforeStep(context); } return Collections.singletonList(HookPhase.NONE); }
HooksPhaseGetter { public List<HookPhase> getHookPhasesBeforeStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof BeforeStepHookPhaseProvider) { return ((BeforeStepHookPhaseProvider) syncFlowableStep).getHookPhasesBeforeStep(context); } return Collections.singletonList(HookP...
HooksPhaseGetter { public List<HookPhase> getHookPhasesBeforeStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof BeforeStepHookPhaseProvider) { return ((BeforeStepHookPhaseProvider) syncFlowableStep).getHookPhasesBeforeStep(context); } return Collections.singletonList(HookP...
HooksPhaseGetter { public List<HookPhase> getHookPhasesBeforeStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof BeforeStepHookPhaseProvider) { return ((BeforeStepHookPhaseProvider) syncFlowableStep).getHookPhasesBeforeStep(context); } return Collections.singletonList(HookP...
HooksPhaseGetter { public List<HookPhase> getHookPhasesBeforeStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof BeforeStepHookPhaseProvider) { return ((BeforeStepHookPhaseProvider) syncFlowableStep).getHookPhasesBeforeStep(context); } return Collections.singletonList(HookP...
@Test void testGetHookPhasesAfterStop() { List<HookPhase> hookPhases = List.of(HookPhase.AFTER_STOP); StopAppStep afterStepHookPhaseProvider = Mockito.mock(StopAppStep.class); Mockito.when(afterStepHookPhaseProvider.getHookPhasesAfterStep(context)) .thenReturn(hookPhases); List<HookPhase> hookPhasesBeforeStop = hooksPh...
public List<HookPhase> getHookPhasesAfterStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof AfterStepHookPhaseProvider) { return ((AfterStepHookPhaseProvider) syncFlowableStep).getHookPhasesAfterStep(context); } return Collections.singletonList(HookPhase.NONE); }
HooksPhaseGetter { public List<HookPhase> getHookPhasesAfterStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof AfterStepHookPhaseProvider) { return ((AfterStepHookPhaseProvider) syncFlowableStep).getHookPhasesAfterStep(context); } return Collections.singletonList(HookPhase...
HooksPhaseGetter { public List<HookPhase> getHookPhasesAfterStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof AfterStepHookPhaseProvider) { return ((AfterStepHookPhaseProvider) syncFlowableStep).getHookPhasesAfterStep(context); } return Collections.singletonList(HookPhase...
HooksPhaseGetter { public List<HookPhase> getHookPhasesAfterStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof AfterStepHookPhaseProvider) { return ((AfterStepHookPhaseProvider) syncFlowableStep).getHookPhasesAfterStep(context); } return Collections.singletonList(HookPhase...
HooksPhaseGetter { public List<HookPhase> getHookPhasesAfterStop(SyncFlowableStep syncFlowableStep, ProcessContext context) { if (syncFlowableStep instanceof AfterStepHookPhaseProvider) { return ((AfterStepHookPhaseProvider) syncFlowableStep).getHookPhasesAfterStep(context); } return Collections.singletonList(HookPhase...
@Test void testExecuteHooksForPhaseBeforeStart() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.DEPLOY_APPLICATION_BEFORE_START, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook beforeStartIdleHook = createHook("before-start", List.of("deploy.application.before-start")); ...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseBeforeStartIdle() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.BLUE_GREEN_APPLICATION_BEFORE_START_IDLE, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook beforeStartIdleHook = createHook("before-start-idle", List.of("blue-green.applica...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseBeforeStartLive() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.BLUE_GREEN_APPLICATION_BEFORE_START_LIVE, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook beforeStartLiveHook = createHook("before-start-live", List.of("blue-green.applica...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseBeforeStop() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.DEPLOY_APPLICATION_BEFORE_STOP, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook beforeStartIdleHook = createHook("before-start", List.of("deploy.application.before-stop")); mod...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseBeforeStopIdle() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.BLUE_GREEN_APPLICATION_BEFORE_STOP_IDLE, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook beforeStopIdleHook = createHook("before-stop-idle", List.of("blue-green.application...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseBeforeStopLive() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.BLUE_GREEN_APPLICATION_BEFORE_STOP_LIVE, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook beforeStopLiveHook = createHook("before-stop-live", List.of("blue-green.application...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseAfterStop() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.NONE, HookPhase.DEPLOY_APPLICATION_AFTER_STOP); Module moduleToDeploy = createModule("module-to-deploy"); Hook afterStopHook = createHook("after-stop", List.of("deploy.application.after-stop")); moduleToDeploy...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseAfterStopIdle() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.NONE, HookPhase.BLUE_GREEN_APPLICATION_AFTER_STOP_IDLE); Module moduleToDeploy = createModule("module-to-deploy"); Hook afterStopIdleHook = createHook("after-stop-idle", List.of("blue-green.application.aft...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testFindServiceWithNullOrEmptyServiceName() { Assertions.assertNull(environmentServicesFinder.findService(null)); Assertions.assertNull(environmentServicesFinder.findService("")); }
public CfService findService(String name) { if (StringUtils.isEmpty(name)) { return null; } return CollectionUtils.firstElement(env.findServicesByName(name)); }
EnvironmentServicesFinder { public CfService findService(String name) { if (StringUtils.isEmpty(name)) { return null; } return CollectionUtils.firstElement(env.findServicesByName(name)); } }
EnvironmentServicesFinder { public CfService findService(String name) { if (StringUtils.isEmpty(name)) { return null; } return CollectionUtils.firstElement(env.findServicesByName(name)); } EnvironmentServicesFinder(); EnvironmentServicesFinder(CfJdbcEnv env); }
EnvironmentServicesFinder { public CfService findService(String name) { if (StringUtils.isEmpty(name)) { return null; } return CollectionUtils.firstElement(env.findServicesByName(name)); } EnvironmentServicesFinder(); EnvironmentServicesFinder(CfJdbcEnv env); CfJdbcService findJdbcService(String name); CfService findS...
EnvironmentServicesFinder { public CfService findService(String name) { if (StringUtils.isEmpty(name)) { return null; } return CollectionUtils.firstElement(env.findServicesByName(name)); } EnvironmentServicesFinder(); EnvironmentServicesFinder(CfJdbcEnv env); CfJdbcService findJdbcService(String name); CfService findS...
@Test void testExecuteHooksForPhaseAfterStopLive() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.NONE, HookPhase.BLUE_GREEN_APPLICATION_AFTER_STOP_LIVE); Module moduleToDeploy = createModule("module-to-deploy"); Hook afterStopLiveHook = createHook("after-stop-live", List.of("blue-green.application.aft...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseBeforeUnmapRoutes() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.BLUE_GREEN_APPLICATION_BEFORE_UNMAP_ROUTES_LIVE, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Hook afterUnmapRoutesHook = createHook("before-unmap-routes", List.of("blue-g...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void testExecuteHooksForPhaseNoHooks() { HooksCalculator hooksHelper = createHooksCalculator(HookPhase.NONE, HookPhase.NONE); Module moduleToDeploy = createModule("module-to-deploy"); Mockito.when(processTypeParser.getProcessType(context.getExecution())) .thenReturn(ProcessType.DEPLOY); List<Hook> hooksForCurrent...
public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } }
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
HooksCalculator { public List<Hook> calculateHooksForExecution(Module moduleToDeploy, StepPhase currentStepPhase) { List<HookPhase> currentHookPhasesForExecution = determineHookPhaseForCurrentStepPhase(currentStepPhase); return getHooksForCurrentPhase(moduleToDeploy, currentHookPhasesForExecution); } List<Hook> calcul...
@Test void executeBeforeStepHooksWhenPhaseIsNotBefore() { Module moduleToDeploy = createModule("test-module"); HooksExecutor hooksExecutor = new HooksExecutor(hooksCalculator, moduleToDeploy); List<Hook> hooksForExecution = hooksExecutor.executeBeforeStepHooks(StepPhase.DONE); Assertions.assertTrue(hooksForExecution.is...
public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); }
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } }
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); }
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
@Test void executeBeforeStepHooks() { Module moduleToDeploy = createModule("test-module"); Mockito.when(hooksCalculator.isInPreExecuteStepPhase(StepPhase.EXECUTE)) .thenReturn(true); Mockito.when(processTypeParser.getProcessType(any())) .thenReturn(ProcessType.BLUE_GREEN_DEPLOY); List<Hook> expectedHooksForExecution = ...
public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); }
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } }
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); }
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
HooksExecutor { public List<Hook> executeBeforeStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPreExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
@Test void executeAfterStepHooksWhenPhaseIsNotAfter() { Module moduleToDeploy = createModule("test-module"); Mockito.when(processTypeParser.getProcessType(any())) .thenReturn(ProcessType.DEPLOY); HooksExecutor hooksExecutor = new HooksExecutor(hooksCalculator, moduleToDeploy); List<Hook> hooksForExecution = hooksExecut...
public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); }
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } }
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); }
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
@Test void executeAfterStepHooks() { Module moduleToDeploy = createModule("test-module"); Mockito.when(hooksCalculator.isInPostExecuteStepPhase(StepPhase.DONE)) .thenReturn(true); List<Hook> expectedHooksForExecution = List.of(createHook("test-hook", Collections.emptyList())); Mockito.when(processTypeParser.getProcessT...
public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); }
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } }
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); }
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...
HooksExecutor { public List<Hook> executeAfterStepHooks(StepPhase currentStepPhase) { if (!hooksCalculator.isInPostExecuteStepPhase(currentStepPhase)) { return Collections.emptyList(); } return executeHooks(currentStepPhase); } HooksExecutor(HooksCalculator hooksCalculator, Module moduleToDeploy); List<Hook> executeBef...