TestBar.java :  » Code-Analyzer » JBlanket » csdl » foo » Java Open Source

Java Open Source » Code Analyzer » JBlanket 
JBlanket » csdl » foo » TestBar.java
package csdl.foo;

import junit.framework.TestCase;
import csdl.foo.Bar;

/**
 * Provides one test case for class Bar.
 *
 * @author Joy M. Agustin
 * @version $Id: TestBar.java,v 1.4 2004/11/07 08:53:27 timshadel Exp $
 */
public abstract class TestBar extends TestCase {

  /**
   * Required by JUnit.
   *
   * @param name Description of the Parameter
   */
  public TestBar(String name) {
    super(name);
  }

  /**
   * Prints out method name to screen, creates an instance of the Bar class, calls the main method
   * in Bar, and then performs a meaningless test.
   *
   * @throws Exception Description of the Exception
   */
  public void testBar() throws Exception {
    System.out.println("TestFooBar: testFoo");
    Bar bar = new Bar();
    Bar.main(null);
    assertEquals("meaningless test", 1, 1);
  }

  public abstract int oneAbstract();

  public void oneVoid() {
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.