use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithBigDecimalParam.
/**
* End Double Type Related Action Test
*/
/**
* Start BigDecimal Type Related Action Test
*/
@Test
public void callPublicMethodWithBigDecimalParam() {
Assert.assertNull(controller.getModel().getBigDecimalValue());
final BigDecimal value = new BigDecimal(10);
controller.invoke(PUBLIC_WITH_BIGDECIMAL_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getBigDecimalValue(), value);
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithIntegerParam.
/**
* Start Integer Type Related Action Test
*/
@Test
public void callPublicMethodWithIntegerParam() {
Assert.assertNull(controller.getModel().getIntegerValue());
final int value = 10;
controller.invoke(PUBLIC_WITH_INTEGER_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getIntegerValue().intValue(), value);
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithShortParam.
/**
* End Date Type Related Action Test
*/
/**
* Start Short Type Related Action Test
*/
@Test
public void callPublicMethodWithShortParam() {
Assert.assertNull(controller.getModel().getShortValue());
final short value = 10;
controller.invoke(PUBLIC_WITH_SHORT_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getShortValue().shortValue(), value);
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithNullParam.
@Test
public void callPublicMethodWithNullParam() {
Assert.assertNull(controller.getModel().getBooleanValue());
String value = "Hello Dolphin Platform!";
controller.invoke(PUBLIC_WITH_BOOLEAN_PARAM_ACTION, new Param(PARAM_NAME, null));
Assert.assertNull(controller.getModel().getBooleanValue());
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPrivateMethodWithFloatParam.
@Test
public void callPrivateMethodWithFloatParam() {
Assert.assertNull(controller.getModel().getFloatValue());
final float value = 10F;
controller.invoke(PUBLIC_WITH_FLOAT_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getFloatValue().floatValue(), value);
}
Aggregations