use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method testCallPrivateMethodWithElementTypeParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with ElementType param can be called")
public void testCallPrivateMethodWithElementTypeParams(String containerType, String endpoint) {
final ElementType value = ElementType.METHOD;
performActionForElementType(containerType, endpoint, PRIVATE_WITH_ELEMENT_TYPE_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 testCallPrivateMethodWithDoubleParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with Double param can be called")
public void testCallPrivateMethodWithDoubleParams(String containerType, String endpoint) {
final double value = 10.0;
performActionForDouble(containerType, endpoint, PRIVATE_WITH_DOUBLE_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 callPublicMethodWithSeveralFloatParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with several Float param can be called")
public void callPublicMethodWithSeveralFloatParams(String containerType, String endpoint) {
final float value1 = 1.0F;
final float value2 = 2.0F;
final float value3 = 3.0F;
final float result = value1 + value2 + value3;
performActionForFloat(containerType, endpoint, PUBLIC_WITH_SEVERAL_FLOAT_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 callPublicMethodWithSeveralBigDecimalParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with several BigDecimal param can be called")
public void callPublicMethodWithSeveralBigDecimalParams(String containerType, String endpoint) {
final BigDecimal value1 = BigDecimal.TEN;
final BigDecimal value2 = BigDecimal.TEN;
final BigDecimal value3 = BigDecimal.TEN;
final BigDecimal result = value1.add(value2).add(value3);
performActionForBigDecimal(containerType, endpoint, PUBLIC_WITH_SEVERAL_BIGDECIMAL_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 testCallPrivateMethodWithShortParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with Short param can be called")
public void testCallPrivateMethodWithShortParams(String containerType, String endpoint) {
final short value = 10;
performActionForShort(containerType, endpoint, PRIVATE_WITH_SHORT_PARAM_ACTION, value, new Param(PARAM_NAME, value));
}
Aggregations