Examples of ImageFactoryImpl


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

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

    }
  }
 
  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

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

    }
  }
 
  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

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

    }
   
  }
  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

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

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

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

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

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

    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

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

public class TestImageFactory extends AbstractHProfTestCase {

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

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

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

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

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