use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionControllerTest method testCallPublicMethodWithCalendarParams.
/**
* End Byte Type Related Integration Test
*/
/**
* Start Calendar Type Related Integration Test
*/
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with Calendar param can be called")
public void testCallPublicMethodWithCalendarParams(String containerType, String endpoint) {
final Calendar value = Calendar.getInstance();
performActionForCalendar(containerType, endpoint, PUBLIC_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 testCallPublicMethodWithBigDecimalParams.
/**
* End Double Type Related Integration Test
*/
/**
* Start BigDecimal Type Related Integration Test
*/
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with BigDecimal param can be called")
public void testCallPublicMethodWithBigDecimalParams(String containerType, String endpoint) {
final BigDecimal value = BigDecimal.TEN;
performActionForBigDecimal(containerType, endpoint, PUBLIC_WITH_BIGDECIMAL_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 callPrivateMethodWithSeveralLongParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with several Long param can be called")
public void callPrivateMethodWithSeveralLongParams(String containerType, String endpoint) {
final long value1 = 1L;
final long value2 = 2L;
final long result = value1 + value2;
performActionForLong(containerType, endpoint, PRIVATE_WITH_SEVERAL_LONG_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 testCallPublicMethodWithByteParams.
/**
* End BigInteger Type Related Integration Test
*/
/**
* Start Byte Type Related Integration Test
*/
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an public action method with Byte param can be called")
public void testCallPublicMethodWithByteParams(String containerType, String endpoint) {
final byte value = 10;
performActionForByte(containerType, endpoint, PUBLIC_WITH_BYTE_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 testCallPrivateMethodWithIntegerParams.
@Test(dataProvider = ENDPOINTS_DATAPROVIDER, description = "Tests if an private action method with Integer param can be called")
public void testCallPrivateMethodWithIntegerParams(String containerType, String endpoint) {
final int value = 10;
performActionForInteger(containerType, endpoint, PRIVATE_WITH_INTEGER_PARAM_ACTION, value, new Param(PARAM_NAME, value));
}
Aggregations