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 testFormatAmtConvRate2() throws Exception { double rate = 0.00345678; String expResult = "93456780"; String result = ISOUtil.formatAmountConversionRate(rate); assertEquals(expResult, result); }
public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + x - 9); St...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
@Test public void testFormatAmtConvRate3() throws Exception { double rate = 0.0000345678; String expResult = "90034567"; String result = ISOUtil.formatAmountConversionRate(rate); assertEquals(expResult, result); }
public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + x - 9); St...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
@Test public void testFormatAmtConvRate4() throws Exception { double rate = 0; String expResult = null; String result = ISOUtil.formatAmountConversionRate(rate); assertEquals(expResult, result); }
public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + x - 9); St...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
@Test public void testFormatAmtConvRate5() throws Exception { double rate = 0.0000000001; String expResult = "90000000"; String result = ISOUtil.formatAmountConversionRate(rate); assertEquals(expResult, result); }
public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + x - 9); St...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
ISOUtil { public static String formatAmountConversionRate(double convRate) throws ISOException { if (convRate == 0) return null; BigDecimal cr = new BigDecimal(convRate); int x = 7 - cr.precision() + cr.scale(); String bds = cr.movePointRight(cr.scale()).toString(); if (x > 9) bds = ISOUtil.zeropad(bds, bds.length() + ...
@Test public void testParseAmtConvRate() { String rate = "93456780"; BigDecimal expResult = new BigDecimal(0.003456780, MathContext.DECIMAL64); BigDecimal result = new BigDecimal(ISOUtil.parseAmountConversionRate(rate), MathContext.DECIMAL64); assertEquals(expResult, result); }
public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDecimal(conv...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
@Test public void testParseAmtConvRate2() { String rate = "90034567"; BigDecimal expResult = new BigDecimal(0.000034567, MathContext.DECIMAL64); BigDecimal result = new BigDecimal(ISOUtil.parseAmountConversionRate(rate), MathContext.DECIMAL64); assertEquals(expResult, result); }
public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDecimal(conv...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
@Test public void testParseAmtConvRate3() { String rate = null; try { ISOUtil.parseAmountConversionRate(rate); fail(); } catch (IllegalArgumentException ex) { assertEquals("Invalid amount converion rate argument: '" + rate + "'", ex.getMessage()); } }
public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDecimal(conv...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
@Test void testMapEventsShouldCallEventMappersInOrderAndReturnFinalResult() { MappingLogEventWriter writer = new MappingLogEventWriter(); List<LogEventMapper> mappers = new ArrayList<>(); writer.eventMappers = mappers; mappers.add(logEvent -> { logEvent.addMessage("1"); return logEvent; }); mappers.add(logEvent -> { lo...
protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @...
@Test public void testParseAmtConvRate4() { String rate = "1234567"; try { ISOUtil.parseAmountConversionRate(rate); fail(); } catch (IllegalArgumentException ex) { assertEquals("Invalid amount converion rate argument: '" + rate + "'", ex.getMessage()); } }
public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDecimal(conv...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
@Test public void testParseAmtConvRate5() { String rate = "123456789"; try { ISOUtil.parseAmountConversionRate(rate); fail(); } catch (IllegalArgumentException ex) { assertEquals("Invalid amount converion rate argument: '" + rate + "'", ex.getMessage()); } }
public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDecimal(conv...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
ISOUtil { public static double parseAmountConversionRate(String convRate) { if (convRate == null || convRate.length() != 8) throw new IllegalArgumentException("Invalid amount converion rate argument: '" + convRate + "'"); BigDecimal bd = new BigDecimal(convRate); int pow = bd.movePointLeft(7).intValue(); bd = new BigDe...
@Test public void testMillisToString() { Calendar cal = new GregorianCalendar(2012, Calendar.JUNE, 29, 10, 51, 47); cal.setTimeZone(TimeZone.getTimeZone("GMT")); cal.set(Calendar.MILLISECOND, 16); String result = ISOUtil.millisToString(cal.getTimeInMillis()); assertThat(result, is("15520d 10:51:47.016")); }
public static String millisToString (long millis) { StringBuilder sb = new StringBuilder(); if (millis < 0) { millis = -millis; sb.append('-'); } int ms = (int) (millis % 1000); millis /= 1000; int dd = (int) (millis/86400); millis -= dd * 86400; int hh = (int) (millis/3600); millis -= hh * 3600; int mm = (int) (millis...
ISOUtil { public static String millisToString (long millis) { StringBuilder sb = new StringBuilder(); if (millis < 0) { millis = -millis; sb.append('-'); } int ms = (int) (millis % 1000); millis /= 1000; int dd = (int) (millis/86400); millis -= dd * 86400; int hh = (int) (millis/3600); millis -= hh * 3600; int mm = (in...
ISOUtil { public static String millisToString (long millis) { StringBuilder sb = new StringBuilder(); if (millis < 0) { millis = -millis; sb.append('-'); } int ms = (int) (millis % 1000); millis /= 1000; int dd = (int) (millis/86400); millis -= dd * 86400; int hh = (int) (millis/3600); millis -= hh * 3600; int mm = (in...
ISOUtil { public static String millisToString (long millis) { StringBuilder sb = new StringBuilder(); if (millis < 0) { millis = -millis; sb.append('-'); } int ms = (int) (millis % 1000); millis /= 1000; int dd = (int) (millis/86400); millis -= dd * 86400; int hh = (int) (millis/3600); millis -= hh * 3600; int mm = (in...
ISOUtil { public static String millisToString (long millis) { StringBuilder sb = new StringBuilder(); if (millis < 0) { millis = -millis; sb.append('-'); } int ms = (int) (millis % 1000); millis /= 1000; int dd = (int) (millis/86400); millis -= dd * 86400; int hh = (int) (millis/3600); millis -= hh * 3600; int mm = (in...
@Test public void testTakeFirstN() throws Exception { String result = ISOUtil.takeFirstN("abcdefgh", 3); assertThat(result, is("abc")); }
public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte...
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte...
@Test public void testTakeFirstNAndPad() throws Exception { String result = ISOUtil.takeFirstN("abc", 5); assertThat(result, is("00abc")); }
public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte...
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte...
@Test public void testTakeFirstNequal() throws Exception { String result = ISOUtil.takeFirstN("abc", 3); assertThat(result, is("abc")); }
public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); }
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte...
ISOUtil { public static String takeFirstN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(0,n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); static byte...
@Test public void testTakeLastN() throws Exception { String result = ISOUtil.takeLastN("abcdefgh", 3); assertThat(result, is("fgh")); }
public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); sta...
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); sta...
@Test public void testTakeLastNAndPad() throws Exception { String result = ISOUtil.takeLastN("abc", 5); assertThat(result, is("00abc")); }
public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); sta...
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); sta...
@Test public void testTakeLastNequal() throws Exception { String result = ISOUtil.takeLastN("abc", 3); assertThat(result, is("abc")); }
public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); }
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); sta...
ISOUtil { public static String takeLastN(String s,int n) throws ISOException { if (s.length()>n) { return s.substring(s.length()-n); } else { if (s.length()<n){ return zeropad(s,n); } else { return s; } } } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] e, int offset, int len); sta...
@Test public void testToStringArray() throws Exception { String[] result = ISOUtil.toStringArray("a\tb\nc\rd\fe"); assertThat( result, allOf(hasItemInArray("a"), hasItemInArray("b"), hasItemInArray("c"), hasItemInArray("d"), hasItemInArray("e"))); }
public static String[] toStringArray(String s) { StringTokenizer st = new StringTokenizer (s); String[] array = new String [st.countTokens()]; for (int i=0; st.hasMoreTokens(); i++) array[i] = st.nextToken(); return array; }
ISOUtil { public static String[] toStringArray(String s) { StringTokenizer st = new StringTokenizer (s); String[] array = new String [st.countTokens()]; for (int i=0; st.hasMoreTokens(); i++) array[i] = st.nextToken(); return array; } }
ISOUtil { public static String[] toStringArray(String s) { StringTokenizer st = new StringTokenizer (s); String[] array = new String [st.countTokens()]; for (int i=0; st.hasMoreTokens(); i++) array[i] = st.nextToken(); return array; } ISOUtil(); }
ISOUtil { public static String[] toStringArray(String s) { StringTokenizer st = new StringTokenizer (s); String[] array = new String [st.countTokens()]; for (int i=0; st.hasMoreTokens(); i++) array[i] = st.nextToken(); return array; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] ...
ISOUtil { public static String[] toStringArray(String s) { StringTokenizer st = new StringTokenizer (s); String[] array = new String [st.countTokens()]; for (int i=0; st.hasMoreTokens(); i++) array[i] = st.nextToken(); return array; } ISOUtil(); static String ebcdicToAscii(byte[] e); static String ebcdicToAscii(byte[] ...
@Test void testMapEventsShouldNotThrowExceptionWhenEventMappersIsNull() { MappingLogEventWriter writer = new MappingLogEventWriter(); assertDoesNotThrow(() -> writer.mapEvents(new LogEvent())); }
protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected LogEvent mapEvents(LogEvent ev) { if (eventMappers != null) { for (LogEventMapper mapper : eventMappers) { ev = mapper.apply(ev); } } return ev; } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @...
@Test public void testcalcLUHN() throws Exception { char check = ISOUtil.calcLUHN("411111111111111"); assertThat(check, is('1')); }
public static char calcLUHN (String p) { int i, crc; int odd = p.length() % 2; for (i=crc=0; i<p.length(); i++) { char c = p.charAt(i); if (!Character.isDigit (c)) { throw new IllegalArgumentException("Invalid PAN " + p); } c = (char) (c - '0'); if (i % 2 != odd) crc+= c*2 >= 10 ? c*2 -9 : c*2; else crc+=c; } return (c...
ISOUtil { public static char calcLUHN (String p) { int i, crc; int odd = p.length() % 2; for (i=crc=0; i<p.length(); i++) { char c = p.charAt(i); if (!Character.isDigit (c)) { throw new IllegalArgumentException("Invalid PAN " + p); } c = (char) (c - '0'); if (i % 2 != odd) crc+= c*2 >= 10 ? c*2 -9 : c*2; else crc+=c; }...
ISOUtil { public static char calcLUHN (String p) { int i, crc; int odd = p.length() % 2; for (i=crc=0; i<p.length(); i++) { char c = p.charAt(i); if (!Character.isDigit (c)) { throw new IllegalArgumentException("Invalid PAN " + p); } c = (char) (c - '0'); if (i % 2 != odd) crc+= c*2 >= 10 ? c*2 -9 : c*2; else crc+=c; }...
ISOUtil { public static char calcLUHN (String p) { int i, crc; int odd = p.length() % 2; for (i=crc=0; i<p.length(); i++) { char c = p.charAt(i); if (!Character.isDigit (c)) { throw new IllegalArgumentException("Invalid PAN " + p); } c = (char) (c - '0'); if (i % 2 != odd) crc+= c*2 >= 10 ? c*2 -9 : c*2; else crc+=c; }...
ISOUtil { public static char calcLUHN (String p) { int i, crc; int odd = p.length() % 2; for (i=crc=0; i<p.length(); i++) { char c = p.charAt(i); if (!Character.isDigit (c)) { throw new IllegalArgumentException("Invalid PAN " + p); } c = (char) (c - '0'); if (i % 2 != odd) crc+= c*2 >= 10 ? c*2 -9 : c*2; else crc+=c; }...
@Test public void testPack() throws Exception { ISOField field = new ISOField(92, "123"); IFELPE_LLLCHAR packager = new IFELPE_LLLCHAR(92, "Should be F0F0F5F9F2F1F2F3"); TestUtils.assertEquals(new byte[] {(byte)0xF0, (byte)0xF0,(byte)0xf5, (byte)0xF9, (byte)0xF2, (byte)0xF1, (byte)0xF2, (byte)0xF3}, packager.pack(field...
@Override public byte[] pack(final ISOComponent c) throws ISOException { final String s = (String) c.getValue(); final int len = s.length(); final byte[] payload = new byte[len + TAG_HEADER_LENGTH]; final String tagHeader = ISOUtil.zeropad(Integer.toString(len + TAG_BYTE_LENGTH), LENGTH_BYTE_LENGTH) + ISOUtil.zeropad(c...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public byte[] pack(final ISOComponent c) throws ISOException { final String s = (String) c.getValue(); final int len = s.length(); final byte[] payload = new byte[len + TAG_HEADER_LENGTH]; final String tagHeader = ISOUtil.zeropad(Integer.toString(len + TAG_BYTE_LENGTH...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public byte[] pack(final ISOComponent c) throws ISOException { final String s = (String) c.getValue(); final int len = s.length(); final byte[] payload = new byte[len + TAG_HEADER_LENGTH]; final String tagHeader = ISOUtil.zeropad(Integer.toString(len + TAG_BYTE_LENGTH...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public byte[] pack(final ISOComponent c) throws ISOException { final String s = (String) c.getValue(); final int len = s.length(); final byte[] payload = new byte[len + TAG_HEADER_LENGTH]; final String tagHeader = ISOUtil.zeropad(Integer.toString(len + TAG_BYTE_LENGTH...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public byte[] pack(final ISOComponent c) throws ISOException { final String s = (String) c.getValue(); final int len = s.length(); final byte[] payload = new byte[len + TAG_HEADER_LENGTH]; final String tagHeader = ISOUtil.zeropad(Integer.toString(len + TAG_BYTE_LENGTH...
@Test public void testUnpack() throws Exception { byte[] raw = new byte[] {(byte)0xF0, (byte)0xF0,(byte)0xf5, (byte)0xF9, (byte)0xF2, (byte)0xF1, (byte)0xF2, (byte)0xF3}; IFELPE_LLLCHAR packager = new IFELPE_LLLCHAR(10, "Should be F0F0F5F9F2F1F2F3"); ISOField field = new ISOField(); int len = packager.unpack(field, raw...
@Override public int unpack(final ISOComponent c, final byte[] b, final int offset) throws ISOException { final String asciiResult = ISOUtil.ebcdicToAscii(b, offset, LENGTH_BYTE_LENGTH); final int len = Integer.parseInt(asciiResult) - TAG_BYTE_LENGTH; if (!(c instanceof ISOField)) throw new ISOException(c.getClass() .g...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public int unpack(final ISOComponent c, final byte[] b, final int offset) throws ISOException { final String asciiResult = ISOUtil.ebcdicToAscii(b, offset, LENGTH_BYTE_LENGTH); final int len = Integer.parseInt(asciiResult) - TAG_BYTE_LENGTH; if (!(c instanceof ISOFiel...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public int unpack(final ISOComponent c, final byte[] b, final int offset) throws ISOException { final String asciiResult = ISOUtil.ebcdicToAscii(b, offset, LENGTH_BYTE_LENGTH); final int len = Integer.parseInt(asciiResult) - TAG_BYTE_LENGTH; if (!(c instanceof ISOFiel...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public int unpack(final ISOComponent c, final byte[] b, final int offset) throws ISOException { final String asciiResult = ISOUtil.ebcdicToAscii(b, offset, LENGTH_BYTE_LENGTH); final int len = Integer.parseInt(asciiResult) - TAG_BYTE_LENGTH; if (!(c instanceof ISOFiel...
IFELPE_LLLCHAR extends ISOFieldPackager { @Override public int unpack(final ISOComponent c, final byte[] b, final int offset) throws ISOException { final String asciiResult = ISOUtil.ebcdicToAscii(b, offset, LENGTH_BYTE_LENGTH); final int len = Integer.parseInt(asciiResult) - TAG_BYTE_LENGTH; if (!(c instanceof ISOFiel...
@Test public void testGetLogger() throws Throwable { Connector connector = new Connector(); Logger logger = new Logger(); connector.setLogger(logger, "testConnectorRealm"); Logger result = connector.getLogger(); assertSame(logger, result, "result"); }
public Logger getLogger() { return logger; }
Connector implements ISORequestListener, LogSource, Configurable { public Logger getLogger() { return logger; } }
Connector implements ISORequestListener, LogSource, Configurable { public Logger getLogger() { return logger; } Connector(); }
Connector implements ISORequestListener, LogSource, Configurable { public Logger getLogger() { return logger; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setConfiguration(Configuration cfg); boolean process(ISOSource source, ISOMsg m); }
Connector implements ISORequestListener, LogSource, Configurable { public Logger getLogger() { return logger; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setConfiguration(Configuration cfg); boolean process(ISOSource source, ISOMsg m); }
@Test public void testGetRealm() throws Throwable { String result = new Connector().getRealm(); assertNull(result, "result"); }
public String getRealm () { return realm; }
Connector implements ISORequestListener, LogSource, Configurable { public String getRealm () { return realm; } }
Connector implements ISORequestListener, LogSource, Configurable { public String getRealm () { return realm; } Connector(); }
Connector implements ISORequestListener, LogSource, Configurable { public String getRealm () { return realm; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setConfiguration(Configuration cfg); boolean process(ISOSource source, ISOMsg m); }
Connector implements ISORequestListener, LogSource, Configurable { public String getRealm () { return realm; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setConfiguration(Configuration cfg); boolean process(ISOSource source, ISOMsg m); }
@Test public void testProcess() throws Throwable { Connector connector = new Connector(); boolean result = connector.process(new XMLChannel(), new ISOMsg(100)); assertTrue(result, "result"); }
public boolean process (ISOSource source, ISOMsg m) { if (pool == null) pool = new ThreadPool (1, 10); pool.execute (new Process (source, m)); return true; }
Connector implements ISORequestListener, LogSource, Configurable { public boolean process (ISOSource source, ISOMsg m) { if (pool == null) pool = new ThreadPool (1, 10); pool.execute (new Process (source, m)); return true; } }
Connector implements ISORequestListener, LogSource, Configurable { public boolean process (ISOSource source, ISOMsg m) { if (pool == null) pool = new ThreadPool (1, 10); pool.execute (new Process (source, m)); return true; } Connector(); }
Connector implements ISORequestListener, LogSource, Configurable { public boolean process (ISOSource source, ISOMsg m) { if (pool == null) pool = new ThreadPool (1, 10); pool.execute (new Process (source, m)); return true; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger()...
Connector implements ISORequestListener, LogSource, Configurable { public boolean process (ISOSource source, ISOMsg m) { if (pool == null) pool = new ThreadPool (1, 10); pool.execute (new Process (source, m)); return true; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger()...
@Test public void testSetConfigurationThrowsNullPointerException() throws Throwable { Connector connector = new Connector(); Configuration cfg = new SubConfiguration(); try { connector.setConfiguration(cfg); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(...
public void setConfiguration (Configuration cfg) throws ConfigurationException { timeout = cfg.getInt ("timeout"); if (pool == null) pool = new ThreadPool (1, cfg.getInt ("poolsize", 10)); muxName = cfg.get ("destination-mux", null); channelName = cfg.get ("destination-channel", null); preserveSourceHeader = cfg.getBoo...
Connector implements ISORequestListener, LogSource, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { timeout = cfg.getInt ("timeout"); if (pool == null) pool = new ThreadPool (1, cfg.getInt ("poolsize", 10)); muxName = cfg.get ("destination-mux", null); channelName = cfg.g...
Connector implements ISORequestListener, LogSource, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { timeout = cfg.getInt ("timeout"); if (pool == null) pool = new ThreadPool (1, cfg.getInt ("poolsize", 10)); muxName = cfg.get ("destination-mux", null); channelName = cfg.g...
Connector implements ISORequestListener, LogSource, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { timeout = cfg.getInt ("timeout"); if (pool == null) pool = new ThreadPool (1, cfg.getInt ("poolsize", 10)); muxName = cfg.get ("destination-mux", null); channelName = cfg.g...
Connector implements ISORequestListener, LogSource, Configurable { public void setConfiguration (Configuration cfg) throws ConfigurationException { timeout = cfg.getInt ("timeout"); if (pool == null) pool = new ThreadPool (1, cfg.getInt ("poolsize", 10)); muxName = cfg.get ("destination-mux", null); channelName = cfg.g...
@Test public void testSetLogger() throws Throwable { Connector connector = new Connector(); Logger logger = new Logger(); connector.setLogger(logger, "testConnectorRealm"); assertSame(logger, connector.getLogger(), "connector.getLogger()"); assertEquals("testConnectorRealm", connector.getRealm(), "connector.getRealm()"...
public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; }
Connector implements ISORequestListener, LogSource, Configurable { public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; } }
Connector implements ISORequestListener, LogSource, Configurable { public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; } Connector(); }
Connector implements ISORequestListener, LogSource, Configurable { public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setConfiguration(Configuration cfg); boolean process(...
Connector implements ISORequestListener, LogSource, Configurable { public void setLogger (Logger logger, String realm) { this.logger = logger; this.realm = realm; } Connector(); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setConfiguration(Configuration cfg); boolean process(...
@Test public void testGetKey() throws Throwable { byte[] digest = new byte[1]; Integer key = Integer.valueOf(0); Integer result = (Integer) new MD5Template(key, digest).getKey(); assertSame(key, result, "result"); }
public Object getKey () { return key; }
MD5Template implements Template, Serializable { public Object getKey () { return key; } }
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); }
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); byte[] digest(Object obj); @Override boolean equals(Object obj); @Override int hashCode(); Object getKey(); byte[] getDigest(); String getDigestAsString...
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); byte[] digest(Object obj); @Override boolean equals(Object obj); @Override int hashCode(); Object getKey(); byte[] getDigest(); String getDigestAsString...
@Test public void testGetKey1() throws Throwable { byte[] key = new byte[1]; byte[] result = (byte[]) new MD5Template(key, "testString".getBytes()).getKey(); assertSame(key, result, "result"); }
public Object getKey () { return key; }
MD5Template implements Template, Serializable { public Object getKey () { return key; } }
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); }
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); byte[] digest(Object obj); @Override boolean equals(Object obj); @Override int hashCode(); Object getKey(); byte[] getDigest(); String getDigestAsString...
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); byte[] digest(Object obj); @Override boolean equals(Object obj); @Override int hashCode(); Object getKey(); byte[] getDigest(); String getDigestAsString...
@Test void testMapOutputsShouldCallOutputMappersInOrderAndReturnFinalResult() { MappingLogEventWriter writer = new MappingLogEventWriter(); List<ByteArrayMapper> mappers = new ArrayList<>(); writer.outputMappers = mappers; mappers.add(b -> { byte[] temp = Arrays.copyOf(b, b.length + 1); temp[temp.length - 1] = '1'; ret...
protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } @Override void setPrintStream(PrintStream p); @Override synchronized ...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } @Override void setPrintStream(PrintStream p); @Override synchronized ...
@Test public void testGetKey2() throws Throwable { String result = (String) new MD5Template("testString", "\n".getBytes()).getKey(); assertEquals("testString", result, "result"); }
public Object getKey () { return key; }
MD5Template implements Template, Serializable { public Object getKey () { return key; } }
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); }
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); byte[] digest(Object obj); @Override boolean equals(Object obj); @Override int hashCode(); Object getKey(); byte[] getDigest(); String getDigestAsString...
MD5Template implements Template, Serializable { public Object getKey () { return key; } MD5Template(Object key, Object value); MD5Template(Object key, byte[] digest); byte[] digest(Object obj); @Override boolean equals(Object obj); @Override int hashCode(); Object getKey(); byte[] getDigest(); String getDigestAsString...
@Test public void testInThrowsNullPointerException() throws Throwable { SpaceInterceptor spaceInterceptor = new SpaceInterceptor(null); try { spaceInterceptor.in(""); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "...
public V in (K key) { return sp.in (key); }
SpaceInterceptor implements Space<K,V> { public V in (K key) { return sp.in (key); } }
SpaceInterceptor implements Space<K,V> { public V in (K key) { return sp.in (key); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public V in (K key) { return sp.in (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); V ...
SpaceInterceptor implements Space<K,V> { public V in (K key) { return sp.in (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); V ...
@Test public void testOut() throws Throwable { TSpace sp = mock(TSpace.class); SpaceInterceptor spaceInterceptor = new SpaceInterceptor(sp); sp.out("testString", "1", 0L); spaceInterceptor.out("testString", "1", 0L); assertSame(sp, spaceInterceptor.sp, "spaceInterceptor.sp"); verify(sp, times(2)).out("testString", "1",...
public void out (K key, V value) { sp.out (key, value); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, lon...
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, lon...
@Test public void testOutThrowsNullPointerException() throws Throwable { SpaceInterceptor spaceInterceptor = new SpaceInterceptor(null); try { spaceInterceptor.out(Integer.valueOf(-1), "1", 100L); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) {...
public void out (K key, V value) { sp.out (key, value); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, lon...
SpaceInterceptor implements Space<K,V> { public void out (K key, V value) { sp.out (key, value); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, lon...
@Test public void testRdp() throws Throwable { Space sp = SpaceFactory.getSpace(); SpaceInterceptor spaceInterceptor = new SpaceInterceptor(sp); Object result = spaceInterceptor.rdp(sp); assertNull(result, "result"); assertSame(sp, spaceInterceptor.sp, "spaceInterceptor.sp"); }
public V rdp (K key) { return sp.rdp (key); }
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } }
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); ...
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); ...
@Test public void testRdpThrowsNullPointerException() throws Throwable { SpaceInterceptor spaceInterceptor = new SpaceInterceptor(null); try { spaceInterceptor.rdp("testString"); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.get...
public V rdp (K key) { return sp.rdp (key); }
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } }
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); ...
SpaceInterceptor implements Space<K,V> { public V rdp (K key) { return sp.rdp (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); ...
@Test public void testRdThrowsNullPointerException() throws Throwable { SpaceInterceptor spaceInterceptor = new SpaceInterceptor(null); try { spaceInterceptor.rd("", -1L); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage...
public V rd (K key) { return sp.rd (key); }
SpaceInterceptor implements Space<K,V> { public V rd (K key) { return sp.rd (key); } }
SpaceInterceptor implements Space<K,V> { public V rd (K key) { return sp.rd (key); } SpaceInterceptor(Space<K,V> sp); }
SpaceInterceptor implements Space<K,V> { public V rd (K key) { return sp.rd (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); V ...
SpaceInterceptor implements Space<K,V> { public V rd (K key) { return sp.rd (key); } SpaceInterceptor(Space<K,V> sp); void out(K key, V value); void out(K key, V value, long timeout); void push(K key, V value); void push(K key, V value, long timeout); void put(K key, V value); void put(K key, V value, long timeout); V ...
@Test public void testGetLong() throws Throwable { byte[] b = new byte[11]; b[0] = (byte) 48; long result = JDBMSpace.getLong(b, 0); assertEquals(3458764513820540928L, result, "result"); }
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLong1() throws Throwable { long result = JDBMSpace.getLong(new JDBMSpace.Ref(100L, 1000L).serialize(new JDBMSpace.Ref()), 0); assertEquals(0L, result, "result"); }
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException() throws Throwable { byte[] b = new byte[9]; try { JDBMSpace.getLong(b, -1); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage(...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test void testMapOutputShouldNotThrowExceptionWhenOutputMappersIsNull() { MappingLogEventWriter writer = new MappingLogEventWriter(); assertDoesNotThrow(() -> writer.mapOutput(new byte[]{})); }
protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } @Override void setPrintStream(PrintStream p); @Override synchronized ...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { protected byte[] mapOutput(byte[] output) { if (outputMappers != null) { for (ByteArrayMapper mapper : outputMappers) { output = mapper.apply(output); } } return output; } @Override void setPrintStream(PrintStream p); @Override synchronized ...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException1() throws Throwable { byte[] b = new byte[7]; try { JDBMSpace.getLong(b, -4); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException2() throws Throwable { byte[] b = new byte[5]; try { JDBMSpace.getLong(b, -6); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException3() throws Throwable { byte[] b = new byte[2]; try { JDBMSpace.getLong(b, -7); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException4() throws Throwable { byte[] b = new byte[8]; try { JDBMSpace.getLong(b, -2); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException5() throws Throwable { byte[] b = new byte[5]; try { JDBMSpace.getLong(b, -3); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsArrayIndexOutOfBoundsException6() throws Throwable { byte[] b = new byte[3]; try { JDBMSpace.getLong(b, -5); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("-1", ex.getMessage...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testGetLongThrowsNullPointerException() throws Throwable { try { JDBMSpace.getLong(null, 100); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot load ...
static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
JDBMSpace extends TimerTask implements Space<K,V> { static long getLong (byte[] b, int off) { return (b[off+7] & 0xFFL) + ((b[off+6] & 0xFFL) << 8) + ((b[off+5] & 0xFFL) << 16) + ((b[off+4] & 0xFFL) << 24) + ((b[off+3] & 0xFFL) << 32) + ((b[off+2] & 0xFFL) << 40) + ((b[off+1] & 0xFFL) << 48) + ((b[off] & 0xFFL) << 56);...
@Test public void testPutLong() throws Throwable { byte[] b = new byte[66]; JDBMSpace.putLong(b, 0, 100L); assertEquals((byte) 100, b[7], "b[7]"); }
static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[off] = (byte) (val >>> 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
@Test public void testPutLongThrowsArrayIndexOutOfBoundsException() throws Throwable { byte[] b = "42".getBytes(); try { JDBMSpace.putLong(b, -6, 100L); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { assertEquals((byte) 0, b[0], "b[0]"); if (isJavaVersionAtMo...
static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[off] = (byte) (val >>> 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
@Test public void testPutLongThrowsArrayIndexOutOfBoundsException1() throws Throwable { byte[] b = new byte[3]; try { JDBMSpace.putLong(b, 100, 100L); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("107", ex.ge...
static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[off] = (byte) (val >>> 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
@Test void testConfigureEventMappersShouldThrowExceptionWhenFailOnNewInstance() { Element root = new Element("root"); Element em = new Element("event-mapper"); em.setAttribute("class", "i.dont.Exist"); root.addContent(em); MappingLogEventWriter writer = new MappingLogEventWriter(); assertThrows(ConfigurationException.c...
@Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
@Test public void testPutLongThrowsNullPointerException() throws Throwable { try { JDBMSpace.putLong(null, 100, 100L); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot...
static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[off] = (byte) (val >>> 56); }
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
JDBMSpace extends TimerTask implements Space<K,V> { static void putLong (byte[] b, int off, long val) { b[off+7] = (byte) val; b[off+6] = (byte) (val >>> 8); b[off+5] = (byte) (val >>> 16); b[off+4] = (byte) (val >>> 24); b[off+3] = (byte) (val >>> 32); b[off+2] = (byte) (val >>> 40); b[off+1] = (byte) (val >>> 48); b[...
@Test public void testConstructor() throws Throwable { TSpace tSpace = new TSpace(); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
@Override public synchronized int size (Object key) { int size = 0; List l = (List) entries.get (key); if (l != null) size = l.size(); return size; }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized int size (Object key) { int size = 0; List l = (List) entries.get (key); if (l != null) size = l.size(); return size; } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized int size (Object key) { int size = 0; List l = (List) entries.get (key); if (l != null) size = l.size(); return size; } TSpace(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized int size (Object key) { int size = 0; List l = (List) entries.get (key); if (l != null) size = l.size(); return size; } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchro...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized int size (Object key) { int size = 0; List l = (List) entries.get (key); if (l != null) size = l.size(); return size; } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchro...
@Test public void testDump() throws Throwable { TSpace tSpace = new TSpace(); tSpace.out("", "testString"); tSpace.out(Integer.valueOf(0), Integer.valueOf(-1)); tSpace.out(Integer.valueOf(31), ""); PrintStream p = new PrintStream(new ByteArrayOutputStream(), true); tSpace.dump(p, "testTSpaceIndent"); assertEquals(3, tS...
@Override public void dump(PrintStream p, String indent) { Object[] keys; int size = entries.size(); if (size > MAX_ENTRIES_IN_DUMP * 100) { p.printf ("%sWARNING - space too big, size=%d%n", indent, size); return; } synchronized (this) { keys = entries.keySet().toArray(); } int i=0; for (Object key : keys) { p.printf("...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void dump(PrintStream p, String indent) { Object[] keys; int size = entries.size(); if (size > MAX_ENTRIES_IN_DUMP * 100) { p.printf ("%sWARNING - space too big, size=%d%n", indent, size); return; } synchronized (this) { keys = entries.keySet().t...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void dump(PrintStream p, String indent) { Object[] keys; int size = entries.size(); if (size > MAX_ENTRIES_IN_DUMP * 100) { p.printf ("%sWARNING - space too big, size=%d%n", indent, size); return; } synchronized (this) { keys = entries.keySet().t...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void dump(PrintStream p, String indent) { Object[] keys; int size = entries.size(); if (size > MAX_ENTRIES_IN_DUMP * 100) { p.printf ("%sWARNING - space too big, size=%d%n", indent, size); return; } synchronized (this) { keys = entries.keySet().t...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void dump(PrintStream p, String indent) { Object[] keys; int size = entries.size(); if (size > MAX_ENTRIES_IN_DUMP * 100) { p.printf ("%sWARNING - space too big, size=%d%n", indent, size); return; } synchronized (this) { keys = entries.keySet().t...
@Test public void testGc() throws Throwable { TSpace tSpace = new TSpace(); tSpace.gc(); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
public void gc () { gc(0); if (System.currentTimeMillis() - lastLongGC > GCLONG) { gc(1); lastLongGC = System.currentTimeMillis(); } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public void gc () { gc(0); if (System.currentTimeMillis() - lastLongGC > GCLONG) { gc(1); lastLongGC = System.currentTimeMillis(); } } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public void gc () { gc(0); if (System.currentTimeMillis() - lastLongGC > GCLONG) { gc(1); lastLongGC = System.currentTimeMillis(); } } TSpace(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public void gc () { gc(0); if (System.currentTimeMillis() - lastLongGC > GCLONG) { gc(1); lastLongGC = System.currentTimeMillis(); } } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchronized V rdp(Obj...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public void gc () { gc(0); if (System.currentTimeMillis() - lastLongGC > GCLONG) { gc(1); lastLongGC = System.currentTimeMillis(); } } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchronized V rdp(Obj...
@Test public void testGetKeysAsString() throws Throwable { TSpace tSpace = new TSpace(); String result = tSpace.getKeysAsString(); assertEquals("", result, "result"); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
public String getKeysAsString () { StringBuilder sb = new StringBuilder(); Object[] keys; synchronized (this) { keys = entries.keySet().toArray(); } for (int i=0; i<keys.length; i++) { if (i > 0) sb.append (' '); sb.append (keys[i]); } return sb.toString(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public String getKeysAsString () { StringBuilder sb = new StringBuilder(); Object[] keys; synchronized (this) { keys = entries.keySet().toArray(); } for (int i=0; i<keys.length; i++) { if (i > 0) sb.append (' '); sb.append (keys[i]); } return sb.toString(); } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public String getKeysAsString () { StringBuilder sb = new StringBuilder(); Object[] keys; synchronized (this) { keys = entries.keySet().toArray(); } for (int i=0; i<keys.length; i++) { if (i > 0) sb.append (' '); sb.append (keys[i]); } return sb.toString(); } TSp...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public String getKeysAsString () { StringBuilder sb = new StringBuilder(); Object[] keys; synchronized (this) { keys = entries.keySet().toArray(); } for (int i=0; i<keys.length; i++) { if (i > 0) sb.append (' '); sb.append (keys[i]); } return sb.toString(); } TSp...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public String getKeysAsString () { StringBuilder sb = new StringBuilder(); Object[] keys; synchronized (this) { keys = entries.keySet().toArray(); } for (int i=0; i<keys.length; i++) { if (i > 0) sb.append (' '); sb.append (keys[i]); } return sb.toString(); } TSp...
@Test public void testGetKeySet() throws Throwable { TSpace tSpace = new TSpace(); AbstractSet result = (AbstractSet) tSpace.getKeySet(); assertEquals(0, result.size(), "result.size()"); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
@Override public synchronized Set<K> getKeySet() { return new HashSet<K>(entries.keySet()); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized Set<K> getKeySet() { return new HashSet<K>(entries.keySet()); } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized Set<K> getKeySet() { return new HashSet<K>(entries.keySet()); } TSpace(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized Set<K> getKeySet() { return new HashSet<K>(entries.keySet()); } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchronized V rdp(Object key); @Override synchronized V inp(Ob...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized Set<K> getKeySet() { return new HashSet<K>(entries.keySet()); } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchronized V rdp(Object key); @Override synchronized V inp(Ob...
@Test public void testIn() throws Throwable { TSpace tSpace = new TSpace(); Object result = tSpace.in(Long.valueOf(0L), 1L); assertNull(result, "result"); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
@Override public synchronized V in (Object key) { Object obj; while ((obj = inp (key)) == null) { try { this.wait (); } catch (InterruptedException e) { } } return (V) obj; }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V in (Object key) { Object obj; while ((obj = inp (key)) == null) { try { this.wait (); } catch (InterruptedException e) { } } return (V) obj; } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V in (Object key) { Object obj; while ((obj = inp (key)) == null) { try { this.wait (); } catch (InterruptedException e) { } } return (V) obj; } TSpace(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V in (Object key) { Object obj; while ((obj = inp (key)) == null) { try { this.wait (); } catch (InterruptedException e) { } } return (V) obj; } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long ti...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V in (Object key) { Object obj; while ((obj = inp (key)) == null) { try { this.wait (); } catch (InterruptedException e) { } } return (V) obj; } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long ti...
@Test public void testInp() throws Throwable { TSpace tSpace = new TSpace(); MD5Template key = new MD5Template("", ""); Object result = tSpace.inp(key); assertNull(result, "result"); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
@Override public synchronized V inp (Object key) { if (key instanceof Template) return (V) getObject ((Template) key, true); return (V) getHead (key, true); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V inp (Object key) { if (key instanceof Template) return (V) getObject ((Template) key, true); return (V) getHead (key, true); } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V inp (Object key) { if (key instanceof Template) return (V) getObject ((Template) key, true); return (V) getHead (key, true); } TSpace(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V inp (Object key) { if (key instanceof Template) return (V) getObject ((Template) key, true); return (V) getHead (key, true); } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Overrid...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public synchronized V inp (Object key) { if (key instanceof Template) return (V) getObject ((Template) key, true); return (V) getHead (key, true); } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Overrid...
@Test public void testIsEmpty() throws Throwable { TSpace tSpace = new TSpace(); boolean result = tSpace.isEmpty(); assertTrue(result, "result"); assertEquals(0, tSpace.entries.size(), "tSpace.entries.size()"); }
public boolean isEmpty() { return entries.isEmpty(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public boolean isEmpty() { return entries.isEmpty(); } }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public boolean isEmpty() { return entries.isEmpty(); } TSpace(); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public boolean isEmpty() { return entries.isEmpty(); } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchronized V rdp(Object key); @Override synchronized V inp(Object key); @Override synchronized V in(...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { public boolean isEmpty() { return entries.isEmpty(); } TSpace(); @Override void out(K key, V value); @Override void out(K key, V value, long timeout); @Override synchronized V rdp(Object key); @Override synchronized V inp(Object key); @Override synchronized V in(...
@Test public void testOut() throws Throwable { TSpace tSpace = new TSpace(); tSpace.out(Integer.valueOf(0), "testString", 100L); assertEquals(1, tSpace.entries.size(), "tSpace.entries.size()"); }
@Override public void out (K key, V value) { if (key == null || value == null) throw new NullPointerException ("key=" + key + ", value=" + value); synchronized(this) { List l = getList(key); l.add (value); if (l.size() == 1) this.notifyAll (); } if (sl != null) notifyListeners(key, value); }
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void out (K key, V value) { if (key == null || value == null) throw new NullPointerException ("key=" + key + ", value=" + value); synchronized(this) { List l = getList(key); l.add (value); if (l.size() == 1) this.notifyAll (); } if (sl != null) n...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void out (K key, V value) { if (key == null || value == null) throw new NullPointerException ("key=" + key + ", value=" + value); synchronized(this) { List l = getList(key); l.add (value); if (l.size() == 1) this.notifyAll (); } if (sl != null) n...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void out (K key, V value) { if (key == null || value == null) throw new NullPointerException ("key=" + key + ", value=" + value); synchronized(this) { List l = getList(key); l.add (value); if (l.size() == 1) this.notifyAll (); } if (sl != null) n...
TSpace implements LocalSpace<K,V>, Loggeable, Runnable { @Override public void out (K key, V value) { if (key == null || value == null) throw new NullPointerException ("key=" + key + ", value=" + value); synchronized(this) { List l = getList(key); l.add (value); if (l.size() == 1) this.notifyAll (); } if (sl != null) n...
@Test void testConfigureOutputMappersShouldThrowExceptionWhenFailOnNewInstance() { Element root = new Element("root"); Element om = new Element("output-mapper"); om.setAttribute("class", "i.dont.Exist"); root.addContent(om); MappingLogEventWriter writer = new MappingLogEventWriter(); assertThrows(ConfigurationException...
@Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
@Test public void testGetKey() throws Throwable { Integer key = Integer.valueOf(0); Integer result = (Integer) new ObjectTemplate(key, Integer.valueOf(0)).getKey(); assertSame(key, result, "result"); }
public Object getKey() { return key; }
ObjectTemplate implements Template { public Object getKey() { return key; } }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
@Test public void testGetKey1() throws Throwable { Integer key = Integer.valueOf(100); Integer result = (Integer) new ObjectTemplate(key, "2").getKey(); assertSame(key, result, "result"); }
public Object getKey() { return key; }
ObjectTemplate implements Template { public Object getKey() { return key; } }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
@Test public void testGetKey2() throws Throwable { String result = (String) new ObjectTemplate("testString", "").getKey(); assertEquals("testString", result, "result"); }
public Object getKey() { return key; }
ObjectTemplate implements Template { public Object getKey() { return key; } }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectTemplate implements Template { public Object getKey() { return key; } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
@Test public void testNotEqualsItSelfOrAnother() { String value = "someValue"; ObjectTemplate objectTemplateA = new ObjectTemplate("key", value); ObjectTemplate objectTemplateB = new ObjectTemplate("key", value); assertFalse(objectTemplateA.equals(objectTemplateA), "should only equals on the template value"); assertFal...
@Override public boolean equals(Object obj) { return value.equals(obj); }
ObjectTemplate implements Template { @Override public boolean equals(Object obj) { return value.equals(obj); } }
ObjectTemplate implements Template { @Override public boolean equals(Object obj) { return value.equals(obj); } ObjectTemplate(Object key, Object value); }
ObjectTemplate implements Template { @Override public boolean equals(Object obj) { return value.equals(obj); } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectTemplate implements Template { @Override public boolean equals(Object obj) { return value.equals(obj); } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
@Test public void testHaveHashCodeOfValue() { String value = "someValue"; ObjectTemplate objectTemplate = new ObjectTemplate("key", value); assertEquals(objectTemplate.hashCode(), value.hashCode(), "Should implement hashCode on the template value"); assertEquals(objectTemplate.hashCode(), value.hashCode(), "objectTempl...
@Override public int hashCode() { return value.hashCode(); }
ObjectTemplate implements Template { @Override public int hashCode() { return value.hashCode(); } }
ObjectTemplate implements Template { @Override public int hashCode() { return value.hashCode(); } ObjectTemplate(Object key, Object value); }
ObjectTemplate implements Template { @Override public int hashCode() { return value.hashCode(); } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectTemplate implements Template { @Override public int hashCode() { return value.hashCode(); } ObjectTemplate(Object key, Object value); Object getKey(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
@Test public void testClose() throws Throwable { SpaceTap spaceTap = new SpaceTap(new TSpace(), "\u0001 ", Integer.valueOf(1), 100L); spaceTap.close(); assertNull(spaceTap.ssp, "spaceTap.ssp"); }
public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } }
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } }
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout); SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); }
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout); SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); void notify(Object key, Object value); ...
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout); SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); void notify(Object key, Object value); ...
@Test public void testClose1() throws Throwable { LocalSpace ssp = new TSpace(); SpaceTap spaceTap = new SpaceTap(ssp, ssp, new Object(), "", 100L); spaceTap.close(); spaceTap.close(); assertNull(spaceTap.ssp, "spaceTap.ssp"); }
public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } }
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } }
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout); SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); }
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout); SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); void notify(Object key, Object value); ...
SpaceTap implements SpaceListener { public void close() { if (ssp != null) { ssp.removeListener (key, this); ssp = null; } } SpaceTap(LocalSpace sp, Object key, Object tapKey, long tapTimeout); SpaceTap(LocalSpace ssp, LocalSpace dsp, Object key, Object tapKey, long tapTimeout); void notify(Object key, Object value); ...
@Test public void testInpAll() throws Throwable { Object[] result = SpaceUtil.inpAll(new TSpace(), "testString"); assertEquals(0, result.length, "result.length"); }
public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); }
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } }
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } }
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); stati...
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); stati...
@Test public void testInpAllThrowsNullPointerException() throws Throwable { try { SpaceUtil.inpAll(null, ""); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \...
public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); }
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } }
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } }
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); stati...
SpaceUtil { public static Object[] inpAll (Space sp, Object key) { List list = new ArrayList(); Object value; do { value = sp.inp (key); if (value != null) { list.add (value); } } while (value != null); return list.toArray(); } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); stati...
@Test public void testNextLong() throws Throwable { Space sp = new TSpace(); long result = SpaceUtil.nextLong(sp, ""); assertEquals(1, ((TSpace) sp).entries.size(), "(TSpace) sp.entries.size()"); assertEquals(1L, result, "result"); }
public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAn...
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAn...
@Test void testShouldAddEventMapperWhenConfigured() throws ConfigurationException { Element root = new Element("root"); Element em = new Element("event-mapper"); em.setAttribute("class", "org.jpos.util.function.TestLogEventMapper"); root.addContent(em); MappingLogEventWriter writer = new MappingLogEventWriter(); assert...
@Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
@Test public void testNextLongThrowsNullPointerException() throws Throwable { Space sp = new TSpace(); try { SpaceUtil.nextLong(sp, null); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertEquals("key=null, value=1", ex.getMessage(), "ex.getMessage()"); assertTrue(((TSpace) s...
public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAn...
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAn...
@Test public void testNextLongThrowsNullPointerException1() throws Throwable { try { SpaceUtil.nextLong(null, ""); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot ent...
public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } }
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAn...
SpaceUtil { public static long nextLong (Space sp, Object key) { long l = 0L; synchronized (sp) { Object obj = sp.inp (key); wipe (sp, key); if (obj instanceof Long) l = (Long) obj; sp.out (key, ++l); } return l; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAn...
@Test public void testWipe1() throws Throwable { SpaceUtil.wipe(SpaceFactory.getSpace(), ""); assertTrue(true, "Test completed without Exception"); }
public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; }
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } }
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } }
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAndOut(Space sp, Object key, Object value); static void wipeAndOut(Space sp, Object key, Object value, long timeout); stati...
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAndOut(Space sp, Object key, Object value); static void wipeAndOut(Space sp, Object key, Object value, long timeout); stati...
@Test public void testWipeThrowsNullPointerException() throws Throwable { try { SpaceUtil.wipe(null, ""); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { if (isJavaVersionAtMost(JAVA_14)) { assertNull(ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Cannot invoke \"org...
public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; }
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } }
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } }
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAndOut(Space sp, Object key, Object value); static void wipeAndOut(Space sp, Object key, Object value, long timeout); stati...
SpaceUtil { public static void wipe (Space sp, Object key) { while (sp.inp (key) != null) ; } static Object[] inpAll(Space sp, Object key); static void wipe(Space sp, Object key); static void wipeAndOut(Space sp, Object key, Object value); static void wipeAndOut(Space sp, Object key, Object value, long timeout); stati...
@Test public void testGetSpace2() throws Throwable { TSpace result = (TSpace) SpaceFactory.getSpace("testString"); assertTrue(result.isEmpty(), "result.isEmpty()"); }
public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } static Space getSpace(); static Space getSpace(String spaceUri); static Space getSpace(String scheme, String name, String param); static ScheduledThreadPoolExecutor getGCExecutor(); }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } static Space getSpace(); static Space getSpace(String spaceUri); static Space getSpace(String scheme, String name, String param); static ScheduledThreadPoolExecutor getGCExecutor(); static final String TSPACE; static final Stri...
@Test public void testGetSpaceThrowsNullPointerException2() throws Throwable { assertThrows(NullPointerException.class, () -> { SpaceFactory.getSpace("testSpaceFactoryScheme", "testSpaceFactoryName", null); }); }
public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } static Space getSpace(); static Space getSpace(String spaceUri); static Space getSpace(String scheme, String name, String param); static ScheduledThreadPoolExecutor getGCExecutor(); }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } static Space getSpace(); static Space getSpace(String spaceUri); static Space getSpace(String scheme, String name, String param); static ScheduledThreadPoolExecutor getGCExecutor(); static final String TSPACE; static final Stri...
@Test public void testGetSpaceThrowsSpaceError() throws Throwable { try { SpaceFactory.getSpace("spacelet", "testSpaceFactoryName", "testSpaceFactoryParam"); fail("Expected SpaceError to be thrown"); } catch (SpaceError ex) { assertEquals( "spacelet:testSpaceFactoryName:testSpaceFactoryParam not found.", ex.getMessage(...
public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } static Space getSpace(); static Space getSpace(String spaceUri); static Space getSpace(String scheme, String name, String param); static ScheduledThreadPoolExecutor getGCExecutor(); }
SpaceFactory { public static Space getSpace () { return getSpace (TSPACE, DEFAULT, null); } static Space getSpace(); static Space getSpace(String spaceUri); static Space getSpace(String scheme, String name, String param); static ScheduledThreadPoolExecutor getGCExecutor(); static final String TSPACE; static final Stri...
@Test void testShouldAddOutputMapperWhenConfigured() throws ConfigurationException { Element root = new Element("root"); Element om = new Element("output-mapper"); om.setAttribute("class", "org.jpos.util.function.RemoveNewLinesMapper"); root.addContent(om); MappingLogEventWriter writer = new MappingLogEventWriter(); as...
@Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } }
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
MappingLogEventWriter extends BaseLogEventWriter implements XmlConfigurable { @Override public void setConfiguration(Element e) throws ConfigurationException { configureEventMappers(e); configureOutputMappers(e); } @Override void setPrintStream(PrintStream p); @Override synchronized void close(); @Override void write(...
@Test public void testConstructor() throws Throwable { Logger logger = Logger.getLogger("testLogName"); Log log = new Log(logger, "testLogRealm"); assertEquals("testLogRealm", log.realm, "m_log.realm"); assertSame(logger, log.logger, "m_log.logger"); }
public Logger getLogger() { return logger; }
Log implements LogSource { public Logger getLogger() { return logger; } }
Log implements LogSource { public Logger getLogger() { return logger; } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public Logger getLogger() { return logger; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Ob...
Log implements LogSource { public Logger getLogger() { return logger; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Ob...
@Test public void testUnpackOneTagAndMissing() { instance.unpack("02008ValueXyZ"); assertAll( () -> assertEquals(1, instance.size()), () -> assertEquals("02", instance.get("02").getTagId()), () -> assertEquals("ValueXyZ", instance.get("02").getValue()), () -> assertNull(instance.get("03")) ); }
public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTLVMsg(buffer); put(currentTag.getTagId(), curre...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
@Test public void testConstructor1() throws Throwable { Log log = new Log(); assertNull(log.getRealm(), "m_log.getRealm()"); }
public String getRealm () { return realm; }
Log implements LogSource { public String getRealm () { return realm; } }
Log implements LogSource { public String getRealm () { return realm; } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public String getRealm () { return realm; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Obj...
Log implements LogSource { public String getRealm () { return realm; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Obj...
@Test public void testCreateDebug() throws Throwable { LogEvent result = new BSHRequestListener().createDebug("testString"); assertNull(result.getRealm(), "result.getRealm()"); }
public LogEvent createDebug() { return createLogEvent (DEBUG); }
Log implements LogSource { public LogEvent createDebug() { return createLogEvent (DEBUG); } }
Log implements LogSource { public LogEvent createDebug() { return createLogEvent (DEBUG); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createDebug() { return createLogEvent (DEBUG); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String r...
Log implements LogSource { public LogEvent createDebug() { return createLogEvent (DEBUG); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String r...
@Test public void testCreateError() throws Throwable { LogEvent result = new Debug().createError(); assertNull(result.getRealm(), "result.getRealm()"); }
public LogEvent createError () { return createLogEvent (ERROR); }
Log implements LogSource { public LogEvent createError () { return createLogEvent (ERROR); } }
Log implements LogSource { public LogEvent createError () { return createLogEvent (ERROR); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createError () { return createLogEvent (ERROR); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String ...
Log implements LogSource { public LogEvent createError () { return createLogEvent (ERROR); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String ...
@Test public void testCreateFatal() throws Throwable { LogEvent result = new Debug().createFatal("t7r"); assertNull(result.getRealm(), "result.getRealm()"); }
public LogEvent createFatal () { return createLogEvent (FATAL); }
Log implements LogSource { public LogEvent createFatal () { return createLogEvent (FATAL); } }
Log implements LogSource { public LogEvent createFatal () { return createLogEvent (FATAL); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createFatal () { return createLogEvent (FATAL); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String ...
Log implements LogSource { public LogEvent createFatal () { return createLogEvent (FATAL); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String ...
@Test public void testCreateInfo() throws Throwable { LogEvent result = Log.getLog("testLogLogName", "testLogRealm").createInfo("testString"); assertEquals("testLogRealm", result.getRealm(), "result.getRealm()"); }
public LogEvent createInfo () { return createLogEvent (INFO); }
Log implements LogSource { public LogEvent createInfo () { return createLogEvent (INFO); } }
Log implements LogSource { public LogEvent createInfo () { return createLogEvent (INFO); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createInfo () { return createLogEvent (INFO); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String re...
Log implements LogSource { public LogEvent createInfo () { return createLogEvent (INFO); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String re...
@Test public void testCreateLogEvent() throws Throwable { LogEvent result = new BSHRequestListener().createLogEvent("testLogLevel", ""); assertNull(result.getRealm(), "result.getRealm()"); }
public LogEvent createLogEvent (String level) { return new LogEvent (this, level); }
Log implements LogSource { public LogEvent createLogEvent (String level) { return new LogEvent (this, level); } }
Log implements LogSource { public LogEvent createLogEvent (String level) { return new LogEvent (this, level); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createLogEvent (String level) { return new LogEvent (this, level); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); vo...
Log implements LogSource { public LogEvent createLogEvent (String level) { return new LogEvent (this, level); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); vo...
@Test public void testCreateTrace() throws Throwable { LogEvent result = Log.getLog("testLogLogName", "testLogRealm").createTrace(); assertEquals("testLogRealm", result.getRealm(), "result.getRealm()"); }
public LogEvent createTrace () { return createLogEvent (TRACE); }
Log implements LogSource { public LogEvent createTrace () { return createLogEvent (TRACE); } }
Log implements LogSource { public LogEvent createTrace () { return createLogEvent (TRACE); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createTrace () { return createLogEvent (TRACE); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String ...
Log implements LogSource { public LogEvent createTrace () { return createLogEvent (TRACE); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String ...
@Test public void testCreateWarn() throws Throwable { LogEvent result = new Log().createWarn("testString"); assertNull(result.getRealm(), "result.getRealm()"); }
public LogEvent createWarn () { return createLogEvent (WARN); }
Log implements LogSource { public LogEvent createWarn () { return createLogEvent (WARN); } }
Log implements LogSource { public LogEvent createWarn () { return createLogEvent (WARN); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public LogEvent createWarn () { return createLogEvent (WARN); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String re...
Log implements LogSource { public LogEvent createWarn () { return createLogEvent (WARN); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String re...
@Test public void testDebug() throws Throwable { new BSHRequestListener().debug("testString", Integer.valueOf(0)); assertTrue(true, "Test completed without Exception"); }
public void debug (Object detail) { Logger.log (createDebug (detail)); }
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } }
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
@Test public void testDebug1() throws Throwable { new BSHRequestListener().debug(""); assertTrue(true, "Test completed without Exception"); }
public void debug (Object detail) { Logger.log (createDebug (detail)); }
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } }
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
Log implements LogSource { public void debug (Object detail) { Logger.log (createDebug (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
@Test public void testUnpackTwoTag() { instance.unpack("02008ValueXyZ03007ValueAb"); assertAll( () -> assertEquals(2, instance.size()), () -> assertEquals("02", instance.get("02").getTagId()), () -> assertEquals("ValueXyZ", instance.get("02").getValue()), () -> assertEquals("03", instance.get("03").getTagId()), () -> a...
public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTLVMsg(buffer); put(currentTag.getTagId(), curre...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
CharTagMap extends HashMap<String, CharTag> { public void unpack(CharSequence data) throws IllegalArgumentException { if (data == null) throw new IllegalArgumentException("TLV data are required to unpack"); CharBuffer buffer = CharBuffer.wrap(data); CharTag currentTag; while (buffer.hasRemaining()) { currentTag = getTL...
@Test public void testError() throws Throwable { new Debug().error(new Object()); assertTrue(true, "Test completed without Exception"); }
public void error (Object detail) { Logger.log (createError (detail)); }
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } }
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
@Test public void testError1() throws Throwable { new BSHRequestListener().error("", Integer.valueOf(18)); assertTrue(true, "Test completed without Exception"); }
public void error (Object detail) { Logger.log (createError (detail)); }
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } }
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
Log implements LogSource { public void error (Object detail) { Logger.log (createError (detail)); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(...
@Test public void testGetLog() throws Throwable { Log result = Log.getLog("testLogLogName", "testLogRealm"); assertEquals("testLogRealm", result.getRealm(), "result.getRealm()"); }
public static Log getLog (String logName, String realm) { return new Log (Logger.getLogger (logName), realm); }
Log implements LogSource { public static Log getLog (String logName, String realm) { return new Log (Logger.getLogger (logName), realm); } }
Log implements LogSource { public static Log getLog (String logName, String realm) { return new Log (Logger.getLogger (logName), realm); } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public static Log getLog (String logName, String realm) { return new Log (Logger.getLogger (logName), realm); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void s...
Log implements LogSource { public static Log getLog (String logName, String realm) { return new Log (Logger.getLogger (logName), realm); } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void s...
@Test public void testGetLogger() throws Throwable { Logger logger = new Logger(); Log bSHRequestListener = new BSHRequestListener(); bSHRequestListener.setLogger(logger, "testLogRealm"); Logger result = bSHRequestListener.getLogger(); assertSame(logger, result, "result"); }
public Logger getLogger() { return logger; }
Log implements LogSource { public Logger getLogger() { return logger; } }
Log implements LogSource { public Logger getLogger() { return logger; } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public Logger getLogger() { return logger; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Ob...
Log implements LogSource { public Logger getLogger() { return logger; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Ob...
@Test public void testGetRealm() throws Throwable { String result = Log.getLog("testLogLogName", "testLogRealm").getRealm(); assertEquals("testLogRealm", result, "result"); }
public String getRealm () { return realm; }
Log implements LogSource { public String getRealm () { return realm; } }
Log implements LogSource { public String getRealm () { return realm; } Log(); Log(Logger logger, String realm); }
Log implements LogSource { public String getRealm () { return realm; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Obj...
Log implements LogSource { public String getRealm () { return realm; } Log(); Log(Logger logger, String realm); static Log getLog(String logName, String realm); void setLogger(Logger logger, String realm); String getRealm(); Logger getLogger(); void setLogger(Logger logger); void setRealm(String realm); void trace(Obj...