Savage1956 / 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

Closed GoogleCodeExporter closed 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

GoogleCodeExporter commented 9 years ago
I have tried it again and it works. I can not tell what the problem was so I 
would suggest to close this thread/issue.
Thanks anyway.

Original comment by tom.mant...@gmail.com on 28 May 2015 at 6:23

GoogleCodeExporter commented 9 years ago
Glad you managed to solve it

Original comment by johan.ha...@gmail.com on 28 May 2015 at 6:29