Package javax.tools.diagnostics.runtime.java

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


   
  }
 
  public void testCharValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField charValueField = getJavaField(thisJavaObject, "charValue");

    try{
      long aCharValue = charValueField.getLong(thisJavaObject);
    } catch (IllegalArgumentException e) {
      fail("Unexpected illegal argument exception from JavaField.getLong(charValue)");
   
  }
View Full Code Here


   
  }
 
  public void testShortValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField shortValueField = getJavaField(thisJavaObject, "shortValue");

    try{
      long aShortValue = shortValueField.getLong(thisJavaObject);
    } catch (IllegalArgumentException e) {
      fail("Unexpected illegal argument exception from JavaField.getLong(shortValue)");
   
  }
View Full Code Here

   
  }
 
  public void testBooleanValue() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField booleanValueField = getJavaField(thisJavaObject, "booleanValue");
   
    try{
      long aBooleanValue = booleanValueField.getLong(thisJavaObject);
      fail("Missing illegal argument exception from JavaField.getLong(booleanValue)");
    } catch (IllegalArgumentException e) {
      // expected
    }
  }
View Full Code Here

    }
  }
 
  public void testObjectReference() throws Exception {
    JavaObject thisJavaObject = getScenerioReference();
    JavaField objectReferenceField = getJavaField(thisJavaObject, "objectReference");
   
    try{
      long anObjectReference = objectReferenceField.getLong(thisJavaObject);
      fail("Missing illegal argument exception from JavaField.getLong(objectReference)");
    } catch (IllegalArgumentException e) {
      // expected
    }
  }
View Full Code Here

   
    assertEquals("[[B", field.getSignature());
  }
 
  public void testShortArrayArrayFieldSignature() throws Exception {
    JavaField field = getJavaField(getScenerioReference(), "shortArrayArrayField");
   
    assertEquals("[[S", field.getSignature());
  }
View Full Code Here

   
    assertEquals("[[S", field.getSignature());
  }
 
  public void testCharArrayArrayFieldSignature() throws Exception {
    JavaField field = getJavaField(getScenerioReference(), "charArrayArrayField");
   
    assertEquals("[[C", field.getSignature());
  }
View Full Code Here

   
    assertEquals("[[C", field.getSignature());
  }
 
  public void testIntArrayArrayFieldSignature() throws Exception {
    JavaField field = getJavaField(getScenerioReference(), "intArrayArrayField");
   
    assertEquals("[[I", field.getSignature());
  }
View Full Code Here

   
    assertEquals("[[I", field.getSignature());
  }
 
  public void testLongArrayArrayFieldSignature() throws Exception {
    JavaField field = getJavaField(getScenerioReference(), "longArrayArrayField");
   
    assertEquals("[[J", field.getSignature());
  }
View Full Code Here

   
    assertEquals("[[J", field.getSignature());
  }
 
  public void testFloatArrayArrayFieldSignature() throws Exception {
    JavaField field = getJavaField(getScenerioReference(), "floatArrayArrayField");
   
    assertEquals("[[F", field.getSignature());
  }
View Full Code Here

   
    assertEquals("[[F", field.getSignature());
  }
 
  public void testDoubleArrayArrayFieldSignature() throws Exception {
    JavaField field = getJavaField(getScenerioReference(), "doubleArrayArrayField");
   
    assertEquals("[[D", field.getSignature());
  }
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.