FilepathReplacer { public static String substitute(String expression) { return substitute(expression, System.getProperties()); }  static String substitute(String expression);  }
@Test(dataProvider="expressionsDOS") public void testDOS(final String expression, final Properties p, final String expectedOutput) throws Exception { Assert.assertEquals(FilepathReplacer.substitute(expression, p), expectedOutput); }
@Test(dataProvider="expressions") public void test(final String expression, final Properties p, final String expectedOutput) throws Exception { Assert.assertEquals(FilepathReplacer.substitute(expression, p), expectedOutput); }
@Test(dataProvider="errorExpressions",expectedExceptions=java.lang.AssertionError.class) public void testErrors(final String expression, final Properties p) throws Exception { FilepathReplacer.substitute(expression, p); }