@Test public void testSerialization1() throws ProcessorException, PrintException, ReadException { ClonePrinter printer = new ClonePrinter(); CloneReader reader = new CloneReader(); Trim proc = new Trim(1); Object e = printer.print(proc); assertNotNull(e); Object o = reader.read(e); assertNotNull(o); assertTrue(o instanceof Trim); Trim proc2 = (Trim) o; assertFalse(proc == proc2); assertEquals(1, proc2.getDelay()); assertEquals(0, proc2.getInputCount()); assertEquals(0, proc2.getOutputCount()); }
public int getDelay() { return m_delay; }
Trim extends SynchronousProcessor { public int getDelay() { return m_delay; } }
Trim extends SynchronousProcessor { public int getDelay() { return m_delay; } private  Trim();  Trim(int delay); }
Trim extends SynchronousProcessor { public int getDelay() { return m_delay; } private  Trim();  Trim(int delay); @Override Trim duplicate(boolean with_state); int getDelay(); }
Trim extends SynchronousProcessor { public int getDelay() { return m_delay; } private  Trim();  Trim(int delay); @Override Trim duplicate(boolean with_state); int getDelay();  }