*
* @throws Exception for any error
*/
public void testPrimitives() throws Exception {
Registry registry = _orb.getRegistry(getConnectionProperties());
EchoService echo = (EchoService) registry.lookup(ECHO_SERVICE);
assertEquals(true, echo.echoBoolean(true));
assertEquals(false, echo.echoBoolean(false));
assertEquals(Byte.MIN_VALUE, echo.echoByte(Byte.MIN_VALUE));
assertEquals(Byte.MAX_VALUE, echo.echoByte(Byte.MAX_VALUE));
assertEquals(Character.MIN_VALUE, echo.echoChar(Character.MIN_VALUE));
assertEquals(Character.MAX_VALUE, echo.echoChar(Character.MAX_VALUE));
assertEquals(Short.MIN_VALUE, echo.echoShort(Short.MIN_VALUE));
assertEquals(Short.MAX_VALUE, echo.echoShort(Short.MAX_VALUE));
assertEquals(Integer.MIN_VALUE, echo.echoInt(Integer.MIN_VALUE));
assertEquals(Integer.MAX_VALUE, echo.echoInt(Integer.MAX_VALUE));
assertEquals(Long.MIN_VALUE, echo.echoLong(Long.MIN_VALUE));
assertEquals(Long.MAX_VALUE, echo.echoLong(Long.MAX_VALUE));
assertEquals(Float.MIN_VALUE, echo.echoFloat(Float.MIN_VALUE), 0.0f);
assertEquals(Float.MAX_VALUE, echo.echoFloat(Float.MAX_VALUE), 0.0f);
assertEquals(Double.MIN_VALUE, echo.echoDouble(Double.MIN_VALUE), 0.0);
assertEquals(Double.MAX_VALUE, echo.echoDouble(Double.MAX_VALUE), 0.0);
}