use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method callPrivateMethodWithSeveralIntegerParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with several Integer param can be called")
public void callPrivateMethodWithSeveralIntegerParams(String containerType, String endpoint) {
final int value1 = 1;
final int value2 = 2;
final int result = value1 + value2;
performActionForInteger(containerType, endpoint, PRIVATE_WITH_SEVERAL_INTEGER_PARAMS_ACTION, result, new Param(PARAM_NAME_1, value1), new Param(PARAM_NAME_2, value2));
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method testCallPrivateMethodWithDateParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with Date param can be called")
public void testCallPrivateMethodWithDateParams(String containerType, String endpoint) {
final Date value = new Date();
performActionForDate(containerType, endpoint, PRIVATE_WITH_DATE_PARAM_ACTION, value, new Param(PARAM_NAME, value));
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method testCallPrivateMethodWithCalendarParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with Calendar param can be called")
public void testCallPrivateMethodWithCalendarParams(String containerType, String endpoint) {
final Calendar value = Calendar.getInstance();
performActionForCalendar(containerType, endpoint, PRIVATE_WITH_CALENDER_PARAM_ACTION, value, new Param(PARAM_NAME, value));
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method callPublicMethodWithSeveralShortParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with several Short param can be called")
public void callPublicMethodWithSeveralShortParams(String containerType, String endpoint) {
final short value1 = 1;
final short value2 = 2;
final short value3 = 3;
final short result = (short) (value1 + value2 + value3);
performActionForShort(containerType, endpoint, PUBLIC_WITH_SEVERAL_SHORT_PARAMS_ACTION, result, new Param(PARAM_NAME_1, value1), new Param(PARAM_NAME_2, value2), new Param(PARAM_NAME_3, value3));
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method callPrivateMethodWithSeveralShortParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with several Short param can be called")
public void callPrivateMethodWithSeveralShortParams(String containerType, String endpoint) {
final short value1 = 1;
final short value2 = 2;
final short result = (short) (value1 + value2);
performActionForShort(containerType, endpoint, PRIVATE_WITH_SEVERAL_SHORT_PARAMS_ACTION, result, new Param(PARAM_NAME_1, value1), new Param(PARAM_NAME_2, value2));
}
Aggregations