Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 17 17:42
    Naprill opened #33
  • Jan 14 09:53
    franbanho commented #31
  • Jan 14 09:42
    marcingrzejszczak commented #31
  • Jan 14 09:42
    marcingrzejszczak milestoned #31
  • Jan 14 09:42
    marcingrzejszczak labeled #31
  • Jan 14 09:42
    marcingrzejszczak unlabeled #31
  • Jan 14 09:27

    marcingrzejszczak on master

    Release version: 0.4.14 [ci sk… Release version: 0.4.14 [ci sk… Release version: 0.4.14 [ci sk… (compare)

  • Jan 14 09:27

    marcingrzejszczak on jsonassert-0.4.14

    (compare)

  • Jan 14 09:24
    marcingrzejszczak demilestoned #32
  • Jan 14 09:24
    marcingrzejszczak milestoned #32
  • Jan 14 09:23

    marcingrzejszczak on master

    Bumped libs Small fixes (compare)

  • Jan 14 09:16
    marcingrzejszczak commented #31
  • Jan 14 09:14
    franbanho commented #31
  • Jan 14 09:00
    marcingrzejszczak closed #31
  • Jan 14 09:00

    marcingrzejszczak on master

    Fixing problem with scientific … (compare)

  • Jan 14 09:00
    marcingrzejszczak closed #32
  • Jan 14 09:00
    marcingrzejszczak labeled #32
  • Jan 14 09:00
    marcingrzejszczak milestoned #32
  • Jan 14 08:52
    franbanho commented #31
  • Jan 14 08:50
    franbanho opened #32
Marcin Grzejszczak
@marcingrzejszczak
Let's switch to English
Can you say sth more about testing spring boot apps with your tool?
Chris Suszynski
@cardil
Yeah. I'ts really simple. This is just a server executor that automates starting and stoping your java -jar application. You can configure it easy with builder interface.
It is made to be used as JUnit rule - class or test. Also you can use JUnit suite runner to run multiple test in this simple "container"
To setup for spring app, just type: @ClassRule public static Gasper gasper = Gasper.configuration().springBoot().build();
Marcin Grzejszczak
@marcingrzejszczak
Why not just run the app with standard spring boot test classes?
Chris Suszynski
@cardil
It will run your builded jar application from target, folder
Marcin Grzejszczak
@marcingrzejszczak
Ah ok
So it's testing a packaged app
Can you configure the target folder? Cause it won't with for Gradle
Chris Suszynski
@cardil
I written is mostly for WildFly Swarm, but I also added support for Spring.
Marcin Grzejszczak
@marcingrzejszczak
Cool
Chris Suszynski
@cardil
Yes. You can setup target folder. Right now it parses pom.xml for zero configuration. Maybe I will add also support for Gradle. Hmm...
Marcin Grzejszczak
@marcingrzejszczak
Btw I'll try to extend jsonassert to support more json path stuff. Regex for booleans and numbers
There are also filters but I will do it once someone files an issue :P
Chris Suszynski
@cardil
Nice :smile:
Marcin Grzejszczak
@marcingrzejszczak
@all - Jsonassert 0.2.1 got released with bug fix + assertJ support. Also the groupids have changed so check out the migration guide - https://github.com/marcingrzejszczak/jsonassert#migrations
Chris Suszynski
@cardil
Today I've used jsonassert for acceptance testing of my new OSS project. It worked like a charm. Flawlessly. Thanks!
Marcin Grzejszczak
@marcingrzejszczak
Sweet
Which version ? 0.3.0 ?
Chris Suszynski
@cardil
BTW I run into name conflict with the other jsonassert :-P maybe changing name will prevent this. AssertJSON. More like AssertJ ^^
Marcin Grzejszczak
@marcingrzejszczak
There is another method assertThatJson
Chris Suszynski
@cardil
I think newest version
Marcin Grzejszczak
@marcingrzejszczak
To prevent the name clash
And there is an assertj module if you want to use assertj
Chris Suszynski
@cardil
BTW I really like the flexibility for checking in arrays
Gr8 thing
Marcin Grzejszczak
@marcingrzejszczak
Happy to hear that :)
Denis Stepanov
@dstepanov
Can I use JsonAssert to compare two strings?
Marcin Grzejszczak
@marcingrzejszczak
meaning?
JsonAssert is for assertion of a JSON
Denis Stepanov
@dstepanov
Checking if JsonAssert can do something like org.skyscreamer.jsonassert.JSONAssert.assertEquals
Marcin Grzejszczak
@marcingrzejszczak
no
Marcin Grzejszczak
@marcingrzejszczak
it's a fluent API to check elements of JSON
Denis Stepanov
@dstepanov
Ok ;)
farshidkeshavarz
@farshidkeshavarz
HI
is there a way to check Response Header value via Regex?
via matchingrules
Marcin Grzejszczak
@marcingrzejszczak
jsonassert asserts jsons
farshidkeshavarz
@farshidkeshavarz
I am using Json Pact file and it's converted to java class by spring-cloud-contract-spec-pact plugin
Marcin Grzejszczak
@marcingrzejszczak
farshidkeshavarz
@farshidkeshavarz
is there another room to ask those type of questions?
Marcin Grzejszczak
@marcingrzejszczak
farshidkeshavarz
@farshidkeshavarz
@marcingrzejszczak thanks.. I will post my question there
Marcin Grzejszczak
@marcingrzejszczak
ok, once you do, please provide more details please
farshidkeshavarz
@farshidkeshavarz
I will
Matija Folnovic
@mfolnovic
@marcingrzejszczak hello! we've stumbled upon this library by looking at tests generated by spring cloud contract and it looks awesome! i'm just wondering (due to it's inactivity) if we should use it or do you know of some Spring utility somewhere which does the same thing? :)
or it would make sense to merge this to spring-test ? :thinking:
Marcin Grzejszczak
@marcingrzejszczak
yo! it's not inactive - it's just stable :)
Matija Folnovic
@mfolnovic
cool, awesome, tnx! :)