super.setUp();
DebugHelper.registerStandardElementListObservers();
}
private KnuthSequence getKnuthSequence1() {
KnuthSequence seq = new BlockKnuthSequence();
for (int i = 0; i < 5; i++) {
seq.add(new KnuthBox(0, null, true));
seq.add(new KnuthPenalty(0, KnuthPenalty.INFINITE, false, null, true));
seq.add(new KnuthGlue(5000, 0, 0, null, true));
seq.add(new KnuthBox(10000, null, false));
if (i < 4) {
seq.add(new KnuthPenalty(0, 0, false, null, false));
seq.add(new KnuthGlue(-5000, 0, 0, null, true));
}
}
seq.add(new KnuthPenalty(0, KnuthPenalty.INFINITE, false, null, false));
seq.add(new KnuthGlue(0, Integer.MAX_VALUE, 0, null, false));
seq.add(new KnuthPenalty(0, -KnuthPenalty.INFINITE, false, null, false));
ElementListObserver.observe(seq, "test", null);
return seq;
}