The Meta-Environment API

nl.cwi.sen1.visplugin.screenshotmaker
Class ScreenshotMakerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nl.cwi.sen1.visplugin.screenshotmaker.ScreenshotMakerTest
All Implemented Interfaces:
junit.framework.Test

public class ScreenshotMakerTest
extends junit.framework.TestCase

Test the screenshot function with different extensions.

Author:
R. Bergen, S. Tharmarajah

Constructor Summary
ScreenshotMakerTest()
           
 
Method Summary
private  boolean exportAs(javax.swing.JPanel testPanel, java.lang.String exportDestination, java.lang.String fileExtension)
          Test the screenshot function with different extensions.
protected  void setUp()
           
 void testExportScreenShot()
          Test the screenshot function with different extensions.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScreenshotMakerTest

public ScreenshotMakerTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testExportScreenShot

public void testExportScreenShot()
Test the screenshot function with different extensions.


exportAs

private boolean exportAs(javax.swing.JPanel testPanel,
                         java.lang.String exportDestination,
                         java.lang.String fileExtension)
Test the screenshot function with different extensions.

Parameters:
testPanel - The Jpanel which should be saved
exportDestination - The destination of the exported image
fileExtension - The extension of the exported image

The Meta-Environment API