use of com.artipie.IsJson in project artipie by artipie.
the class VersionSliceTest method returnVersionOfApplication.
@Test
void returnVersionOfApplication() {
final ArtipieProperties proprts = new ArtipieProperties();
MatcherAssert.assertThat(new VersionSlice(proprts), new SliceHasResponse(Matchers.allOf(new RsHasStatus(RsStatus.OK), new RsHasBody(new IsJson(new JsonContains(new JsonHas("version", new JsonValueIs(proprts.version())))))), new RequestLine(RqMethod.GET, "/.version")));
}
Aggregations