package com.isti.util;

import junit.framework.TestCase;
// 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 IstiVersionTest
// JUnitDoclet begin extends_implements
extends TestCase
// JUnitDoclet end extends_implements
{
  // JUnitDoclet begin class
  com.isti.util.IstiVersion istiversion = null;
  // JUnitDoclet end class

  public IstiVersionTest(String name) {
    // JUnitDoclet begin method IstiVersionTest
    super(name);
    // JUnitDoclet end method IstiVersionTest
  }

  public com.isti.util.IstiVersion createInstance() throws Exception {
    // JUnitDoclet begin method testcase.createInstance
    return new com.isti.util.IstiVersion("2.0.0");
    // JUnitDoclet end method testcase.createInstance
  }

  protected void setUp() throws Exception {
    // JUnitDoclet begin method testcase.setUp
    super.setUp();
    istiversion = createInstance();
    // JUnitDoclet end method testcase.setUp
  }

  protected void tearDown() throws Exception {
    // JUnitDoclet begin method testcase.tearDown
    istiversion = null;
    super.tearDown();
    // JUnitDoclet end method testcase.tearDown
  }

  public void testCompareTo() throws Exception {
    // JUnitDoclet begin method compareTo
      String s = "1.9";
      assertEquals(" test "+s, 1, istiversion.compareTo(new IstiVersion(s)));
      s = "2.0.1";
      assertEquals(" test "+s, -1, istiversion.compareTo(new IstiVersion(s)));
      s="2.1";
      assertEquals(" test "+s, -1, istiversion.compareTo(new IstiVersion(s)));
      s="1.9beta";
      assertEquals(" test "+s, 1, istiversion.compareTo(new IstiVersion(s)));
      s="2.0beta";
      assertEquals(" test "+s, 1, istiversion.compareTo(new IstiVersion(s)));
      s="2.0.0.1";
      assertEquals(" test "+s, -1, istiversion.compareTo(new IstiVersion(s)));
      s= "2.0.1beta";
      assertEquals(" test "+s, -1, istiversion.compareTo(new IstiVersion(s)));
    // JUnitDoclet end method compareTo
  }

  public void testEquals() throws Exception {
    // JUnitDoclet begin method equals
    // JUnitDoclet end method equals
  }

  public void testGetBuild() throws Exception {
    // JUnitDoclet begin method getBuild
    // JUnitDoclet end method getBuild
  }

  public void testGetMinor() throws Exception {
    // JUnitDoclet begin method getMinor
    // JUnitDoclet end method getMinor
  }

  public void testGetPatch() throws Exception {
    // JUnitDoclet begin method getPatch
    // JUnitDoclet end method getPatch
  }

  public void testIsBeta() throws Exception {
    // JUnitDoclet begin method isBeta
    // JUnitDoclet end method isBeta
  }

  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(IstiVersionTest.class);
    // JUnitDoclet end method testcase.main
  }
}

