String jsonActual = os.toString();
Assert.assertEquals(jsonActual, jsonExpected);
}
private BehaviorTreeData buildSample() {
SequenceNode sequence = new SequenceNode();
sequence.children().add(new DebugNode(1));
sequence.children().add(new RepeatNode(new DebugNode(2)));
ParallelNode parallel = new ParallelNode(ParallelNode.Policy.RequireAll, ParallelNode.Policy.RequireAll);
sequence.children().add(parallel);
parallel.children().add(new MonitorNode());
parallel.children().add(new DebugNode(3));
BehaviorTreeData tree = new BehaviorTreeData();
tree.setRoot(sequence);
tree.createRenderable();