edu.rice.cs.drjava.model.print
Class DrJavaBookTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.model.print.DrJavaBookTest
All Implemented Interfaces:
Test

public final class DrJavaBookTest
extends DrJavaTestCase

Test functions of DrJavaBook


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private  DrJavaBook book
          The DrJavaBook instance we will be testing.
 
Constructor Summary
DrJavaBookTest(String name)
          Standard constructor.
 
Method Summary
 void setUp()
          Set up for every test.
static Test suite()
          Creates a test suite for JUnit to run.
 void tearDown()
          Clean up for every test case.
 void testGetNumberOfPages()
           
 void testGetPageFormat()
           
 void testGetPrintable()
           
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

book

private DrJavaBook book
The DrJavaBook instance we will be testing.

Constructor Detail

DrJavaBookTest

public DrJavaBookTest(String name)
Standard constructor.

Parameters:
name - name of this DrJavaBook test
Method Detail

suite

public static Test suite()
Creates a test suite for JUnit to run.

Returns:
a test suite based on the methods in this class

setUp

public void setUp()
           throws Exception
Description copied from class: DrJavaTestCase
Set up for every test.

Overrides:
setUp in class DrJavaTestCase
Throws:
Exception - This convention is mandated by JUnit.TestCase, the superclass of this class.

tearDown

public void tearDown()
              throws Exception
Description copied from class: DrJavaTestCase
Clean up for every test case. Only used in unit tests. Added because Windows would intermittently throw a java.util.concurrent.RejectedExecutionException during cleanup.

Overrides:
tearDown in class DrJavaTestCase
Throws:
Exception

testGetNumberOfPages

public void testGetNumberOfPages()

testGetPageFormat

public void testGetPageFormat()

testGetPrintable

public void testGetPrintable()