Package javax.tools.diagnostics.runtime.java

Examples of javax.tools.diagnostics.runtime.java.JavaField


  }
 
 
  public void testTrueBoolean() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField trueBooleanField = getJavaField(thisJavaObject, "trueBoolean");
   
    boolean trueBooleanValue = trueBooleanField.getBoolean(thisJavaObject);
   
    assertEquals(setup.trueBoolean, trueBooleanValue);   
  }
View Full Code Here


    assertEquals(setup.trueBoolean, trueBooleanValue);   
  }
 
  public void testFalseBoolean() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField falseBooleanField = getJavaField(thisJavaObject, "falseBoolean");
   
    boolean falseBooleanValue = falseBooleanField.getBoolean(thisJavaObject);
   
    assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);   
  }
View Full Code Here

    assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);   
  }
 
  public void testTrueStaticBoolean() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField trueBooleanField = getJavaField(thisJavaObject, "trueStaticBoolean");
   
    boolean trueBooleanValue = trueBooleanField.getBoolean(null);
   
    assertEquals(SetupJavaField_getBoolean.trueStaticBoolean, trueBooleanValue);   
  }
View Full Code Here

    assertEquals(SetupJavaField_getBoolean.trueStaticBoolean, trueBooleanValue);   
  }
 
  public void testFalseStaticBoolean() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField falseBooleanField = getJavaField(thisJavaObject, "falseStaticBoolean");
   
    boolean falseBooleanValue = falseBooleanField.getBoolean(null);
   
    assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);   
  }
View Full Code Here

    assertEquals(SetupJavaField_getBoolean.falseStaticBoolean, falseBooleanValue);   
  }
 
  public void testNotBoolean() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField notBooleanField = getJavaField(thisJavaObject, "notBoolean");
   
    try{
      boolean notBooleanValue = notBooleanField.getBoolean(thisJavaObject);
      fail("getBoolean did't throw IllegalArgumentException when passed int field");
    } catch (IllegalArgumentException e) {
      // ok.
    }
       
View Full Code Here

       
  }
 
  public void testNotBoolean2() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField notBooleanField = getJavaField(thisJavaObject, "notBoolean2");
   
    try{
      boolean notBooleanValue = notBooleanField.getBoolean(thisJavaObject);
      fail("getBoolean did't throw IllegalArgumentException when passed Object field");
    } catch (IllegalArgumentException e) {
      // ok.
    }
       
View Full Code Here

    return thisObject;   
  }
 
  public void testMaxShortValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField maxShortField = getJavaField(thisJavaObject, "maxShort");
   
    short maxShortValue = maxShortField.getShort(thisJavaObject);
   
    assertEquals(setup.maxShort, maxShortValue);   
  }
View Full Code Here

    assertEquals(setup.maxShort, maxShortValue);   
  }
 
  public void testMinShortValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField minShortField = getJavaField(thisJavaObject, "minShort");
   
    short minShortValue = minShortField.getShort(thisJavaObject);
   
    assertEquals(setup.minShort, minShortValue);   
  }
View Full Code Here

    assertEquals(setup.minShort, minShortValue);   
  }

  public void testStaticMinShortValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField minShortField = getJavaField(thisJavaObject, "staticMinShort");
   
    short minShortValue = minShortField.getShort(null);
   
    assertEquals(SetupJavaField_getShort.staticMinShort, minShortValue);   
  }
View Full Code Here

    assertEquals(SetupJavaField_getShort.staticMinShort, minShortValue);   
  }
 
  public void testZeroShortValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField zeroShortField = getJavaField(thisJavaObject, "zeroShort");
   
    short zeroShortValue = zeroShortField.getShort(thisJavaObject);
   
    assertEquals(setup.zeroShort, zeroShortValue);   
  }
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.runtime.java.JavaField

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.