Package javax.tools.diagnostics.image

Examples of javax.tools.diagnostics.image.ImagePointer


  public void testGetID() throws Exception {
    Set foundSet = new HashSet(SetupJavaMonitor_ObjectMonitors.NUM_MONITORS);
   
    for (int i=0; i < SetupJavaMonitor_ObjectMonitors.NUM_MONITORS; i++){
      JavaMonitor monitor=(JavaMonitor) setup.monitorConfigs[i].monitor;
      ImagePointer id = monitor.getID();
     
      assertNotNull("Found null monitor id for " + setup.monitorConfigs[i].id, id);
     
      assertFalse("Found duplicate monitor id. " + setup.monitorConfigs[i].id, foundSet.contains(id));
     
View Full Code Here


   * Ensures that we get a non-null address
   */
  public void testGetProcedureAddress()
  {
    try {
      ImagePointer address = _stackFrame.getProcedureAddress();
      assertNotNull(address);
    } catch (CorruptDataException e) {
      //accepted
    }
  }
View Full Code Here

   * Ensures that we get a non-null base pointer
   */
  public void testGetBasePointer()
  {
    try {
      ImagePointer address = _stackFrame.getBasePointer();
      assertNotNull(address);
      assertTrue(address.getAddress() != 0);
    } catch (CorruptDataException e) {
      //accepted
    }
  }
View Full Code Here

   * Ensures that the address is non-null
   */
  public void testGetAddress()
  {
    try {
      ImagePointer address = _location.getAddress();
      assertNotNull(address);
    } catch (CorruptDataException e) {
      //acceptable
    }
  }
View Full Code Here

   * Test method for 'javax.tools.diagnostics.image.ImageSymbol.getAddress()'
   * Ensures that the address is non-null
   */
  public void testGetAddress()
  {
    ImagePointer address = _symbol.getAddress();
    assertNotNull(address);
    assertTrue(address.getAddress() != 0);
  }
View Full Code Here

   
    assertFalse(space.equals("String"));
  }
 
  public void testGetPointerZero() throws Exception {
    ImagePointer pointer = getFirstAddressSpace().getPointer(0);
   
    assertEquals(0, pointer.getAddress());
  }
View Full Code Here

   
    assertEquals(0, pointer.getAddress());
  }
 
  public void testGetPointerNonZero() throws Exception {
    ImagePointer pointer = getFirstAddressSpace().getPointer(0xfefeededdcdccbcbL);
   
    assertEquals(0xfefeededdcdccbcbL, pointer.getAddress());
  }
View Full Code Here

  public void testEqualsSelf() throws Exception {
    assertTrue(pointer1.equals(pointer1));   
  }
 
  public void testEqualsLike() throws Exception {
    ImagePointer pointer2 = space.getPointer(address1);
   
    assertTrue(pointer1.equals(pointer2));
  }
View Full Code Here

   
    assertTrue(pointer1.equals(pointer2));
  }
 
  public void testEqualsDifferent() throws Exception {
    ImagePointer pointer2 = space.getPointer(0x2983474);
   
    assertFalse(pointer1.equals(pointer2));
  }
View Full Code Here

   
    assertFalse(pointer1.equals(pointer2));
  }
 
  public void testHashCode() throws Exception {
    ImagePointer pointer2 = space.getPointer(address1);
    assertEquals(pointer1.hashCode(), pointer2.hashCode());
  }
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.image.ImagePointer

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.