hmpatel / rest-assured

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

com.jayway.jsonpath version conflict with com.jayway.restassured #403

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have built a own Selenium WebDriver Framework (can be shared across teams) 
that uses Chrome Tracing. For this I have com.jayway.jsonpath version 2.0.0

  <dependency>
            <groupId>com.jayway.jsonpath</groupId>
            <artifactId>json-path</artifactId>
            <version>2.0.0</version>
        </dependency>

2. Then I have a project specific Test Project that has a dependency to the 
Selenium WebDriver Framework mentioned above. Additionally I would like to use 
rest-assured in this project. So I added

 <dependency>
      <groupId>com.jayway.restassured</groupId>
      <artifactId>rest-assured</artifactId>
      <version>2.4.1</version>
      <scope>test</scope>
    </dependency>

3. The problem now is that rest-assured has got something like

<dependency>
            <groupId>com.jayway.restassured</groupId>
            <artifactId>json-path</artifactId>
            <version>2.4.1</version>
        </dependency>

which seems to break my tests.

What is the difference between restassured json-path 2.4.1 and json-path 2.0.0?

Any feedback, hints etc. are much appreciated.

Thank you.

Original issue reported on code.google.com by tom.mant...@gmail.com on 22 May 2015 at 6:37

GoogleCodeExporter commented 9 years ago
In what way do they break your tests? The JsonPath implementation shipped with 
RA is a totally different implementation the "other" JsonPath. RA's JsonPath 
uses Groovy's GPath syntax and the other is using the Goessner syntax.

Original comment by johan.ha...@gmail.com on 26 May 2015 at 9:15