use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method callPublicMethodWithSeveralDoubleParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with several Double param can be called")
public void callPublicMethodWithSeveralDoubleParams(String containerType, String endpoint) {
final double value1 = 1.0;
final double value2 = 2.0;
final double value3 = 3.0;
final double result = value1 + value2 + value3;
performActionForDouble(containerType, endpoint, PUBLIC_WITH_SEVERAL_DOUBLE_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 testCallPrivateMethodWithBigIntegerParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with BigInteger param can be called")
public void testCallPrivateMethodWithBigIntegerParams(String containerType, String endpoint) {
final BigInteger value = BigInteger.TEN;
performActionForBigInteger(containerType, endpoint, PRIVATE_WITH_BIGINTEGER_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 testCallPrivateMethodWithLongParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with Long param can be called")
public void testCallPrivateMethodWithLongParams(String containerType, String endpoint) {
final long value = 10L;
performActionForLong(containerType, endpoint, PRIVATE_WITH_LONG_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 testCallPublicMethodWithBigIntegerParams.
/**
* End BigDecimal Type Related Integration Test
*/
/**
* Start BigInteger Type Related Integration Test
*/
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with BigInteger param can be called")
public void testCallPublicMethodWithBigIntegerParams(String containerType, String endpoint) {
final BigInteger value = BigInteger.TEN;
performActionForBigInteger(containerType, endpoint, PUBLIC_WITH_BIGINTEGER_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 testCallPrivateMethodWithUUIDParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with UUID param can be called")
public void testCallPrivateMethodWithUUIDParams(String containerType, String endpoint) {
final UUID value = UUID.randomUUID();
performActionForUUID(containerType, endpoint, PRIVATE_WITH_UUID_PARAM_ACTION, value, new Param(PARAM_NAME, value));
}
Aggregations