Examples of OCVariant


Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Integer);
  }

  @Test
  public void double2floatCorrect() throws JIException {
    OCVariant var = new OCVariant(new Double(10.90));
    Object di = var.value(Float.class);
    assertTrue(di instanceof Float);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Float);
  }

  @Test
  public void int2doubleCorrect() throws JIException {
    OCVariant var = new OCVariant(new Integer(10));
    Object di = var.value(Double.class);
    assertTrue(di instanceof Double);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Double);
  }

  @Test
  public void int2shortCorrect() throws JIException {
    OCVariant var = new OCVariant(new Integer(10));
    Object di = var.value(Short.class);
    assertTrue(di instanceof Short);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Short);
  }

  @Test
  public void int2floatCorrect() throws JIException {
    OCVariant var = new OCVariant(new Integer(10));
    Object di = var.value(Float.class);
    assertTrue(di instanceof Float);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Float);
  }

  @Test
  public void float2doubleCorrect() throws JIException {
    OCVariant var = new OCVariant(new Float(10.90));
    Object di = var.value(Double.class);
    assertTrue(di instanceof Double);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Double);
  }

  @Test
  public void float2bigDecimalCorrect() throws JIException {
    OCVariant var = new OCVariant(new Float(10.90));
    Object di = var.value(BigDecimal.class);
    assertTrue(di instanceof BigDecimal);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof BigDecimal);
  }

  @Test
  public void float2intCorrect() throws JIException {
    OCVariant var = new OCVariant(new Float(10));
    Object di = var.value(Integer.class);
    assertTrue(di instanceof Integer);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Integer);
  }

  @Test(expected = IllegalStateException.class)
  public void float2intWrong() throws JIException {
    OCVariant var = new OCVariant(new Float(10.2));
    Object di = var.value(Integer.class);
    assertTrue(di instanceof Integer);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof Integer);
  }

  @Test
  public void int2bigDecimalCorrect() throws JIException {
    OCVariant var = new OCVariant(new Integer(10));
    Object di = var.value(BigDecimal.class);
    assertTrue(di instanceof BigDecimal);
  }
View Full Code Here

Examples of com.ipc.oce.OCVariant

    assertTrue(di instanceof BigDecimal);
  }

  @Test
  public void int2stringCorrect() throws JIException {
    OCVariant var = new OCVariant(new Integer(10));
    Object di = var.value(String.class);
    assertTrue(di instanceof String);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.