Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add "pathOf" to Json- and XmlPath #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
public static String pathOf(String... pathFragments) {         return 
StringUtils.join(pathFragments, ".");     

}

Usage:

from(json).getString(pathOf(SOME, THING));

instead of:
from(json).getString(String.format("%s.%s", SOME, THING));

Original issue reported on code.google.com by johan.ha...@gmail.com on 21 Oct 2011 at 8:48