TAS-387 Add support for JSON schema validation

This commit is contained in:
Valentin Popa
2016-09-02 10:47:16 +03:00
parent da16d2c241
commit d341d02aee
4 changed files with 14 additions and 16 deletions

View File

@@ -65,7 +65,7 @@ public class RestDemoTest extends RestTest
* @throws JsonToModelConversionException
*/
@Test
public void commentsTest() throws JsonToModelConversionException
public void commentsTest() throws JsonToModelConversionException, Exception
{
Document document = dataContent.usingPath("Shared")
.usingUser(userModel)
@@ -97,7 +97,7 @@ public class RestDemoTest extends RestTest
* @throws JsonToModelConversionException
*/
@Test
public void siteMembersTest() throws DataPreparationException, JsonToModelConversionException
public void siteMembersTest() throws DataPreparationException, JsonToModelConversionException, Exception
{
UserModel newUser = dataUser.createRandomTestUser();
SiteMember siteMember = new SiteMember(Role.SiteConsumer.toString(), newUser.getUsername());