KIE Smoke Tests :: kie-drools-wb :: base methods 6.2.0.Beta2

org.kie.smoke.kie.drools.wb.base.methods
Class KieDroolsWbRestSmokeIntegrationTestMethods

java.lang.Object
  extended by org.kie.smoke.kie.drools.wb.base.methods.KieDroolsWbRestSmokeIntegrationTestMethods

public class KieDroolsWbRestSmokeIntegrationTestMethods
extends Object

These are various tests for the drools-wb-rest module


Constructor Summary
KieDroolsWbRestSmokeIntegrationTestMethods()
           
 
Method Summary
protected static void addToRequestBody(org.jboss.resteasy.client.ClientRequest restRequest, Object obj)
           
protected static Object convertJsonStringToObject(String jsonStr, Class<?> type)
           
protected static String convertObjectToJsonString(Object object)
           
 void manipulatingOUs(URL deploymentUrl)
          Tests the following REST urls: ..
 void manipulatingRepositories(URL deploymentUrl)
          Tests the following REST urls: ..
 void mavenOperations(URL deploymentUrl)
          Tests the following REST urls: ..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KieDroolsWbRestSmokeIntegrationTestMethods

public KieDroolsWbRestSmokeIntegrationTestMethods()
Method Detail

addToRequestBody

protected static void addToRequestBody(org.jboss.resteasy.client.ClientRequest restRequest,
                                       Object obj)
                                throws Exception
Throws:
Exception

convertObjectToJsonString

protected static String convertObjectToJsonString(Object object)
                                           throws org.codehaus.jackson.JsonGenerationException,
                                                  org.codehaus.jackson.map.JsonMappingException,
                                                  IOException
Throws:
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
IOException

convertJsonStringToObject

protected static Object convertJsonStringToObject(String jsonStr,
                                                  Class<?> type)
                                           throws org.codehaus.jackson.JsonParseException,
                                                  org.codehaus.jackson.map.JsonMappingException,
                                                  IOException
Throws:
org.codehaus.jackson.JsonParseException
org.codehaus.jackson.map.JsonMappingException
IOException

manipulatingRepositories

public void manipulatingRepositories(URL deploymentUrl)
                              throws Exception
Tests the following REST urls: ../rest/repostitories GET ../rest/repostitories POST ../rest/jobs/{id} GET ../rest/repositories/{repo}/projects POST

Parameters:
deploymentUrl - URL of deployment
Throws:
Exception - When things go wrong..

mavenOperations

public void mavenOperations(URL deploymentUrl)
                     throws Exception
Tests the following REST urls: ../rest/repositories GET ../rest/repositories/{repo}/projecst POST ../rest/jobs/{id} GET

Parameters:
deploymentUrl -
Throws:
Exception

manipulatingOUs

public void manipulatingOUs(URL deploymentUrl)
                     throws Exception
Tests the following REST urls: ../rest/organizationalunits GET ../rest/organizationalunits POST

Parameters:
deploymentUrl -
Throws:
Exception

KIE Smoke Tests :: kie-drools-wb :: base methods 6.2.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.