package org.junitdoclet.demo.sub;

import junit.framework.TestCase;
// JUnitDoclet begin import
import org.junitdoclet.demo.sub.SampleSubClass;
// JUnitDoclet end import

/**
* Generated by JUnitDoclet, a tool provided by
* ObjectFab GmbH under LGPL.
* Please see www.junitdoclet.org, www.gnu.org
* and www.objectfab.de for informations about
* the tool, the licence and the authors.
*/


public class SampleSubClassTest
// JUnitDoclet begin extends_implements
extends TestCase
// JUnitDoclet end extends_implements
{
  // JUnitDoclet begin class
  org.junitdoclet.demo.sub.SampleSubClass samplesubclass = null;
  // JUnitDoclet end class
  
  public SampleSubClassTest(String name) {
    // JUnitDoclet begin method SampleSubClassTest
    super(name);
    // JUnitDoclet end method SampleSubClassTest
  }
  
  public org.junitdoclet.demo.sub.SampleSubClass createInstance() {
    // JUnitDoclet begin method testcase.createInstance
    return new org.junitdoclet.demo.sub.SampleSubClass();
    // JUnitDoclet end method testcase.createInstance
  }
  
  protected void setUp() throws Exception {
    // JUnitDoclet begin method testcase.setUp
    super.setUp();
    samplesubclass = createInstance();
    // JUnitDoclet end method testcase.setUp
  }
  
  protected void tearDown() throws Exception {
    // JUnitDoclet begin method testcase.tearDown
    samplesubclass = null;
    super.tearDown();
    // JUnitDoclet end method testcase.tearDown
  }
  
  public void testSetGetDoubleValue() throws Exception {
    // JUnitDoclet begin method setDoubleValue getDoubleValue
    double[] tests = {Double.MIN_VALUE, -1.0, -0.5, 0.0, 0.5, 1.0, Double.MAX_VALUE};
    
    for (int i = 0; i < tests.length; i++) {
      samplesubclass.setDoubleValue(tests[i]);
      assertEquals(tests[i], samplesubclass.getDoubleValue(), 0.0);
        // The ", 0.0" and this comment have been inserted
        // after initial generation of the testcase.
    }
    // JUnitDoclet end method setDoubleValue getDoubleValue
  }
  
  public void testToString() throws Exception {
    // JUnitDoclet begin method toString
    // JUnitDoclet end method toString
  }
  
  
  
  /**
  * JUnitDoclet moves marker to this method, if there is not match
  * for them in the regenerated code and if the marker is not empty.
  * This way, no test gets lost when regenerating after renaming.
  * Method testVault is supposed to be empty.
  */
  public void testVault() throws Exception {
    // JUnitDoclet begin method testcase.testVault
    // JUnitDoclet end method testcase.testVault
  }
  
  public static void main(String[] args) {
    // JUnitDoclet begin method testcase.main
    junit.textui.TestRunner.run(SampleSubClassTest.class);
    // JUnitDoclet end method testcase.main
  }
}
