@Test public void testSetVISA1ResponseFilter() throws Throwable { int[] sequence = new int[0]; VISA1ResponseFilter filter = new VISA1Packager(sequence, 100, "testVISA1PackagerBadResultCode", "testVISA1PackagerOkPattern"); int[] sequence2 = new int[0]; VISA1Packager vISA1Packager = new VISA1Packager(sequence2, 1000, "testVISA1PackagerBadResultCode1", "testVISA1PackagerOkPattern1"); vISA1Packager.setVISA1ResponseFilter(filter); assertEquals(100, ((VISA1Packager) vISA1Packager.filter).respField, "vISA1Packager.filter.respField"); assertEquals("testVISA1PackagerBadResultCode", ((VISA1Packager) vISA1Packager.filter).badResultCode, "vISA1Packager.filter.badResultCode"); assertEquals("testVISA1PackagerOkPattern", ((VISA1Packager) vISA1Packager.filter).okPattern, "vISA1Packager.filter.okPattern"); assertSame(filter, vISA1Packager.filter, "vISA1Packager.filter"); }
public void setVISA1ResponseFilter (VISA1ResponseFilter filter) { this.filter = filter; }
VISA1Packager extends SimpleLogSource implements ISOPackager, VISA1ResponseFilter { public void setVISA1ResponseFilter (VISA1ResponseFilter filter) { this.filter = filter; } }
VISA1Packager extends SimpleLogSource implements ISOPackager, VISA1ResponseFilter { public void setVISA1ResponseFilter (VISA1ResponseFilter filter) { this.filter = filter; } VISA1Packager(int[] sequence, int respField, String badResultCode, String okPattern); }
VISA1Packager extends SimpleLogSource implements ISOPackager, VISA1ResponseFilter { public void setVISA1ResponseFilter (VISA1ResponseFilter filter) { this.filter = filter; } VISA1Packager(int[] sequence, int respField, String badResultCode, String okPattern); void setVISA1ResponseFilter(VISA1ResponseFilter filter); @Override byte[] pack(ISOComponent c); String guessAutNumber(String s); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent m, InputStream in); String getFieldDescription(ISOComponent m, int fldNumber); String getDescription(); ISOMsg createISOMsg(); }
VISA1Packager extends SimpleLogSource implements ISOPackager, VISA1ResponseFilter { public void setVISA1ResponseFilter (VISA1ResponseFilter filter) { this.filter = filter; } VISA1Packager(int[] sequence, int respField, String badResultCode, String okPattern); void setVISA1ResponseFilter(VISA1ResponseFilter filter); @Override byte[] pack(ISOComponent c); String guessAutNumber(String s); @Override int unpack(ISOComponent m, byte[] b); void unpack(ISOComponent m, InputStream in); String getFieldDescription(ISOComponent m, int fldNumber); String getDescription(); ISOMsg createISOMsg(); static final byte[] FS; }