@Test public void testShouldIgnoreThrowsArrayIndexOutOfBoundsException() throws Throwable { VAPChannel vAPChannel = new VAPChannel(); byte[] b = new byte[0]; try { vAPChannel.shouldIgnore(b); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("2", ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Index 2 out of bounds for length 0", ex.getMessage(), "ex.getMessage()"); } } }
protected boolean shouldIgnore (byte[] b) { if (b != null) { BASE1Header h = new BASE1Header(b); return h.getFormat() > 2; } return false; }
VAPChannel extends BaseChannel { protected boolean shouldIgnore (byte[] b) { if (b != null) { BASE1Header h = new BASE1Header(b); return h.getFormat() > 2; } return false; } }
VAPChannel extends BaseChannel { protected boolean shouldIgnore (byte[] b) { if (b != null) { BASE1Header h = new BASE1Header(b); return h.getFormat() > 2; } return false; } VAPChannel();  VAPChannel(String host, int port, ISOPackager p);  VAPChannel(ISOPackager p);  VAPChannel(ISOPackager p, ServerSocket serverSocket); }
VAPChannel extends BaseChannel { protected boolean shouldIgnore (byte[] b) { if (b != null) { BASE1Header h = new BASE1Header(b); return h.getFormat() > 2; } return false; } VAPChannel();  VAPChannel(String host, int port, ISOPackager p);  VAPChannel(ISOPackager p);  VAPChannel(ISOPackager p, ServerSocket serverSocket); void setSrcId(String srcid); String getSrcId(); void setDstId(String dstid); String getDstId(); void send(ISOMsg m); void setConfiguration(Configuration cfg); }
VAPChannel extends BaseChannel { protected boolean shouldIgnore (byte[] b) { if (b != null) { BASE1Header h = new BASE1Header(b); return h.getFormat() > 2; } return false; } VAPChannel();  VAPChannel(String host, int port, ISOPackager p);  VAPChannel(ISOPackager p);  VAPChannel(ISOPackager p, ServerSocket serverSocket); void setSrcId(String srcid); String getSrcId(); void setDstId(String dstid); String getDstId(); void send(ISOMsg m); void setConfiguration(Configuration cfg);  }