PathExpression does not evaluate correctly
Brought to you by:
charliehubbard
The path expressions:
pathExpressionTwo = new PathExpression("*.deadlineType.childDeadlines", false);
pathExpressionThree = new PathExpression("*.E.E.*.Z.*", true);
did not previously yield "true" or "false" for the actual paths as expected:
Path path = new Path("schedule", "deadlines", "deadlineType");
Assert.assertFalse(pathExpressionTwo.matches(path));
Path path = new Path("deadlines", "deadlineType", "name");
Assert.assertFalse(pathExpressionTwo.matches(path));
Path path = new Path("A", "E", "E");
Assert.assertFalse(pathExpressionThree.matches(path));
See the inline comments in "PathExpression.matches(Path)" for further details.
Fixed version of PathExpression