@Test public void testSetStatusThrowsArrayIndexOutOfBoundsException1() throws Throwable { BASE1Header bASE1Header = new BASE1Header(); byte[] header = new byte[3]; bASE1Header.unpack(header); try { bASE1Header.setStatus(100); fail("Expected ArrayIndexOutOfBoundsException to be thrown"); } catch (ArrayIndexOutOfBoundsException ex) { if (isJavaVersionAtMost(JAVA_10)) { assertEquals("14", ex.getMessage(), "ex.getMessage()"); } else { assertEquals("Index 14 out of bounds for length 3", ex.getMessage(), "ex.getMessage()"); } } }
public void setStatus(int i) { header[14] = (byte) (i >> 16 & 0xFF); header[15] = (byte) (i >> 8 & 0xFF); header[16] = (byte) (i & 0xFF); }
BASE1Header extends BaseHeader { public void setStatus(int i) { header[14] = (byte) (i >> 16 & 0xFF); header[15] = (byte) (i >> 8 & 0xFF); header[16] = (byte) (i & 0xFF); } }
BASE1Header extends BaseHeader { public void setStatus(int i) { header[14] = (byte) (i >> 16 & 0xFF); header[15] = (byte) (i >> 8 & 0xFF); header[16] = (byte) (i & 0xFF); } BASE1Header();  BASE1Header(String source, String destination);  BASE1Header(String source, String destination, int format);  BASE1Header(byte[] header); }
BASE1Header extends BaseHeader { public void setStatus(int i) { header[14] = (byte) (i >> 16 & 0xFF); header[15] = (byte) (i >> 8 & 0xFF); header[16] = (byte) (i & 0xFF); } BASE1Header();  BASE1Header(String source, String destination);  BASE1Header(String source, String destination, int format);  BASE1Header(byte[] header); int getHLen(); void setHFormat(int hformat); int getFormat(); void setRtCtl(int i); void setFlags(int i); void setStatus(int i); void setBatchNumber(int i); void setFormat(int format); void setLen(int len); void setDestination(String dest); void setSource(String src); String getSource(); String getDestination(); void swapDirection(); boolean isRejected(); String getRejectCode(); String formatHeader(); }
BASE1Header extends BaseHeader { public void setStatus(int i) { header[14] = (byte) (i >> 16 & 0xFF); header[15] = (byte) (i >> 8 & 0xFF); header[16] = (byte) (i & 0xFF); } BASE1Header();  BASE1Header(String source, String destination);  BASE1Header(String source, String destination, int format);  BASE1Header(byte[] header); int getHLen(); void setHFormat(int hformat); int getFormat(); void setRtCtl(int i); void setFlags(int i); void setStatus(int i); void setBatchNumber(int i); void setFormat(int format); void setLen(int len); void setDestination(String dest); void setSource(String src); String getSource(); String getDestination(); void swapDirection(); boolean isRejected(); String getRejectCode(); String formatHeader(); static final int LENGTH; }