Package haikuvm.bench.from.darjeeling.testvm.classes

Examples of haikuvm.bench.from.darjeeling.testvm.classes.B


  public static void test(int testBase)
  {
    // class cast exception test
    try {
      A a = new A();
      B b = (B)a;
      Darjeeling.assertTrue(testBase + 0, false);
    } catch (ClassCastException ex)
    {
      Darjeeling.assertTrue(testBase + 0, true);
    } catch (Exception ex)
View Full Code Here


  private static boolean _boolean;
  private static int[] _inta;

  private static void testInteger(int testBase)
  {
    B b = new B();
    _integer = 10;
    Darjeeling.assertTrue(testBase +  0, _integer == 10);
    b.integer1 = _integer;
    Darjeeling.assertTrue(testBase +  1, _integer == b.integer1);
    Darjeeling.assertTrue(testBase +  2, b.integer1 == 10);
View Full Code Here

  }
 
  private static void testLong(int testBase)
  {
    B b = new B();
    _long = 10;
    Darjeeling.assertTrue(testBase +  0, _long == 10);
    b.long1 = _long;
    Darjeeling.assertTrue(testBase +  1, _long == b.long1);
    Darjeeling.assertTrue(testBase +  2, b.long1 == 10);
View Full Code Here

    Darjeeling.assertTrue(testBase +  8, b.long3 == 30);
  }
 
  private static void testShort(int testBase)
  {
    B b = new B();
    _short = 10;
    Darjeeling.assertTrue(testBase +  0, _short == 10);
    b.short1 = _short;
    Darjeeling.assertTrue(testBase +  1, _short == b.short1);
    Darjeeling.assertTrue(testBase +  2, b.short1 == 10);
View Full Code Here

  }
 
  private static void testByte(int testBase)
  {
    B b = new B();
    _byte = 10;
    Darjeeling.assertTrue(testBase +  0, _byte == 10);
    b.byte1 = _byte;
    Darjeeling.assertTrue(testBase +  1, _byte == b.byte1);
    Darjeeling.assertTrue(testBase +  2, b.byte1 == 10);
View Full Code Here

 
 
  private static void testBoolean(int testBase)
  {
    B b = new B();
    _boolean = true;
    Darjeeling.assertTrue(testBase +  0, _boolean == true);
    b.boolean1 = _boolean;
    Darjeeling.assertTrue(testBase +  1, _boolean == b.boolean1);
    Darjeeling.assertTrue(testBase +  2, b.boolean1 == true);
View Full Code Here

 
 
  private static void testIntArray(int testBase)
  {
    B b = new B();
    int[] inta = new int[10];
    _inta = inta;
    Darjeeling.assertTrue(testBase +  0, _inta == inta);
    b.inta1 = _inta;
    Darjeeling.assertTrue(testBase +  1, _inta == b.inta1);
View Full Code Here

  {
    A a, b, c, d;
    E e;
   
    a = new A();
    b = new B();
    c = new C();
    d = new D();
    e = new E();
   
    Darjeeling.assertTrue(testBase +  0, a.virtualMethod()==0);
View Full Code Here

  private static void instanceOfTest(int testBase)
  {
   
    // test NEW and INSTANCEOF
    A a = new A();// A implements AInterface
    B b = new B();// B extends A
    C c = new C();// C extends B implents CInterface
    D d = new D();// D extends C
    String str = new String();
    Inner inner = new Inner();
   
View Full Code Here

  }
 
  public static void interfaceImplementTest(int testBase)
  {
    A a = new A();
    B b = new B();
    C c = new C();
    D d = new D();
    E e = new E();
        Inner inner = new Inner();
View Full Code Here

TOP

Related Classes of haikuvm.bench.from.darjeeling.testvm.classes.B

Copyright © 2018 www.massapicom. 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.