ShiftrWriter outputPath = new ShiftrWriter( "&(1,2).&.value" );
WalkedPath twoSteps = new WalkedPath( null, lpe );
twoSteps.add( null, lpe2 );
{
EvaluatablePathElement outputElement = (EvaluatablePathElement) outputPath.get( 0 );
String evaledLeafOutput = outputElement.evaluate( twoSteps );
AssertJUnit.assertEquals( "AAA", evaledLeafOutput );
}
{
EvaluatablePathElement outputElement = (EvaluatablePathElement) outputPath.get( 1 );
String evaledLeafOutput = outputElement.evaluate( twoSteps );
AssertJUnit.assertEquals( "rating-BBB", evaledLeafOutput );
}
{
EvaluatablePathElement outputElement = (EvaluatablePathElement) outputPath.get( 2 );
String evaledLeafOutput = outputElement.evaluate( twoSteps );
AssertJUnit.assertEquals( "value", evaledLeafOutput );
}
}