use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithByteParam.
/**
* End BigInteger Type Related Action Test
*/
/**
* Start Byte Type Related Action Test
*/
@Test
public void callPublicMethodWithByteParam() {
Assert.assertNull(controller.getModel().getByteValue());
final Byte value = 10;
controller.invoke(PUBLIC_WITH_BYTE_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getByteValue(), value);
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPrivateMethodWithDoubleParam.
@Test
public void callPrivateMethodWithDoubleParam() {
Assert.assertNull(controller.getModel().getDoubleValue());
final double value = 10.0;
controller.invoke(PUBLIC_WITH_DOUBLE_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getDoubleValue().doubleValue(), value);
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithSeveralBigIntegerParams.
@Test
public void callPublicMethodWithSeveralBigIntegerParams() {
Assert.assertNull(controller.getModel().getBigIntegerValue());
final BigInteger value1 = BigInteger.TEN;
final BigInteger value2 = BigInteger.TEN;
final BigInteger value3 = BigInteger.TEN;
controller.invoke(PUBLIC_WITH_SEVERAL_BIGINTEGER_PARAMS_ACTION, new Param(PARAM_NAME_1, value1), new Param(PARAM_NAME_2, value2), new Param(PARAM_NAME_3, value3));
Assert.assertEquals(controller.getModel().getBigIntegerValue(), value1.add(value2).add(value3));
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithLongParam.
/**
* End Integer Type Related Action Test
*/
/**
* Start Long Type Related Action Test
*/
@Test
public void callPublicMethodWithLongParam() {
Assert.assertNull(controller.getModel().getLongValue());
final long value = 10L;
controller.invoke(PUBLIC_WITH_LONG_PARAM_ACTION, new Param(PARAM_NAME, value));
Assert.assertEquals(controller.getModel().getLongValue().longValue(), value);
}
use of com.canoo.platform.remoting.client.Param in project dolphin-platform by canoo.
the class ActionTestControllerTest method callPublicMethodWithBooleanParam.
@Test
public void callPublicMethodWithBooleanParam() {
Assert.assertNull(controller.getModel().getBooleanValue());
String value = "Hello Dolphin Platform!";
controller.invoke(PUBLIC_WITH_BOOLEAN_PARAM_ACTION, new Param(PARAM_NAME, true));
Assert.assertTrue(controller.getModel().getBooleanValue());
}
Aggregations