Package org.apache.kato.hprof.image

Examples of org.apache.kato.hprof.image.ImageFactoryImpl


    assertEquals("modification version mismatch",0,factory.getModificationLevel());
  }
 
  public void testGetImageFromNull1() throws IOException {
   
    ImageFactory factory=new ImageFactoryImpl();
    try {
    factory.getImage(null);
    fail("Expected illegal argument exception");
    }
    catch(IllegalArgumentException iae) {
     
    }
View Full Code Here


    }
  }
 
  public void testGetImageFromNull2() throws IOException {
   
    ImageFactory factory=new ImageFactoryImpl();
    try {
    factory.getImage(null,null);
    fail("Expected illegal argument exception");
    }
    catch(IllegalArgumentException iae) {
     
    }
View Full Code Here

    }
  }
 
  public void testGetImageFromEmptyFile() throws IOException {
   
    ImageFactory factory=new ImageFactoryImpl();
    File realFile = getEmptyHProfFile();
    try {
    factory.getImage(realFile);
    fail("Expecting InvalidFileFormat exception");
    } catch(InvalidFileFormat iff) {
     
    }
   
View Full Code Here

    }
   
  }
  public void testGetImageFromheaderOnlyFile() throws IOException {
   
    ImageFactory factory=new ImageFactoryImpl();
    File realFile = getHeaderOnlyHProfFile();
    try {
    factory.getImage(realFile);
    fail("Expecting InvalidFileFormat exception");
    } catch(InvalidFileFormat iff) {
     
    }
   
View Full Code Here

    }
   
  }
public void testGetImageFromMinimalFile() throws IOException {
 
  ImageFactory factory=new ImageFactoryImpl();
  File realFile = getMinimalHProfFile();
  Image image=factory.getImage(realFile);
 
 
}
View Full Code Here

    hprofFile.open();
    return new HProfView(hprofFile);
 
  }
  public Image getMinimalImage() throws IOException {
    ImageFactoryImpl factory=new ImageFactoryImpl();
    return factory.getImage(getMinimalHProfFile());
   
  }
View Full Code Here

    ImageFactoryImpl factory=new ImageFactoryImpl();
    return factory.getImage(getMinimalHProfFile());
   
  }
  public Image getPopulatedImage() throws IOException {
    ImageFactoryImpl factory=new ImageFactoryImpl();
    return factory.getImage(getPopulatedHProfFile());
   
  }
View Full Code Here

public class TestImageFactory extends AbstractHProfTestCase {

 
  public void testConstructor() {
   
    new ImageFactoryImpl();
   
  }
View Full Code Here

    new ImageFactoryImpl();
   
  }
  public void testMajorVersion() {
   
    ImageFactory factory=new ImageFactoryImpl();
    assertEquals("major version mismatch",0,factory.getMajorVersion());
  }
View Full Code Here

    ImageFactory factory=new ImageFactoryImpl();
    assertEquals("major version mismatch",0,factory.getMajorVersion());
  }
  public void testMinorVersion() {
   
    ImageFactory factory=new ImageFactoryImpl();
    assertEquals("minor version mismatch",1,factory.getMinorVersion());
  }
View Full Code Here

TOP

Related Classes of org.apache.kato.hprof.image.ImageFactoryImpl

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.