2 * RocksimContentHandlerTest.java
4 package net.sf.openrocket.file.rocksim;
6 import junit.framework.Test;
7 import junit.framework.TestSuite;
8 import junit.framework.TestCase;
11 * RocksimContentHandler Tester.
14 public class RocksimContentHandlerTest extends TestCase {
17 * The class under test.
19 public static final Class classUT = RocksimContentHandler.class;
22 * The test class (this class).
24 public static final Class testClass = RocksimContentHandlerTest.class;
27 * Create a test suite of all tests within this test class.
29 * @return a suite of tests
31 public static Test suite() {
32 return new TestSuite(RocksimContentHandlerTest.class);
38 * @param name the name of the test to run.
40 public RocksimContentHandlerTest(String name) {
47 public void setUp() throws Exception {
52 * Teardown the fixture.
54 public void tearDown() throws Exception {
60 * Method: getDocument()
62 * @throws Exception thrown if something goes awry
64 public void testGetDocument() throws Exception {
65 RocksimContentHandler handler = new RocksimContentHandler();
66 assertNotNull(handler.getDocument());