Assert.assertEquals(cut.getValue(), testedCut.getValue());
}
@Test
public void testCut() throws BlockError {
Cut cut = new Cut();
List<String> applyTo = new ArrayList<String>(3);
applyTo.add("a");
applyTo.add("b");
cut.setApplyTo(applyTo);
cut.setValue(4);
// Prepare record
RecordImpl r = new RecordImpl();
r.add(new Field("a", "aaaaaa"));
r.add(new Field("b", "bbbbb"));
r.add(new Field("c", "cccc"));
r.add(new Field("d", "ddd"));
// Perform copy
cut.apply(r, new VariableSpace());
Assert.assertEquals("aaaa", r.get("a").getValue());
Assert.assertEquals("bbbb", r.get("b").getValue());
Assert.assertEquals("cccc", r.get("c").getValue());
Assert.assertEquals("ddd", r.get("d").getValue());