@Override
public void setUp() {
testTree1 = new SelectionTree(null);
SelectedFactoryNode sfn1 =
new SelectedFactoryNode(new SelectionInformation<>(
AbstractProcessorFactory.class, new ParameterBlock(),
new BogusSimulatorFactoryA()));
testTree1.addVertex(sfn1);
testTree1.addEdge(new Edge<>(sfn1, testTree1.getRoot()));
testTree2 = new SelectionTree(null);
SelectedFactoryNode sfn2 =
new SelectedFactoryNode(new SelectionInformation<>(
AbstractProcessorFactory.class, new ParameterBlock(),
new BogusSimulatorFactoryA()));
testTree2.addVertex(sfn2);
testTree2.addEdge(new Edge<>(sfn2, testTree2.getRoot()));
testTree3 = new SelectionTree(null);
SelectedFactoryNode sfn3 =
new SelectedFactoryNode(new SelectionInformation<>(
AbstractProcessorFactory.class, (new ParameterBlock()).addSubBl(
FlexibleBogusSimulatorFactory.SIM_PROPERTIES,
TEST_PARAMETER_VALUE), new FlexibleBogusSimulatorFactory()));
testTree3.addVertex(sfn3);
testTree3.addEdge(new Edge<>(sfn3, testTree3.getRoot()));
testTree4 = new SelectionTree(null);
SelectedFactoryNode sfn4 =
new SelectedFactoryNode(new SelectionInformation<>(
AbstractProcessorFactory.class, new ParameterBlock().addSubBl(
"test1", 1.0).addSubBl("test2", 2.0),
new BogusSimulatorFactoryA()));
testTree4.addVertex(sfn4);
testTree4.addEdge(new Edge<>(sfn4, testTree4.getRoot()));