junit.runner

Class Version


public class Version
extends Object

This class defines the current version of JUnit

Method Summary

static String
id()
static void
main(String[] args)

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

id

public static String id()
Usages and Demos :

View More Examples of id()
   1: 
   2: import junit.runner.Version;
   3: import org.junit.internal.runners.OldTestClassRunner;
   4:         ...
   5:     public Result runMain(String... args) {
   6:         System.out.println("JUnit version " + Version.id());
   7:         List<Class<?>> classes= new ArrayList<Class<?>>();
   8:         ...
   9:     public String getVersion() {
  10:         return Version.id();
  11:     }

View Full Code Here
   1: import junit.runner.TestRunListener;
   2: import junit.runner.Version;
   3: 
   4:         ...
   5:             label= new JLabel("JV");
   6:         label.setToolTipText("JUnit Version "+Version.id());
   7:         return label;
   8:     }

View Full Code Here

main

public static void main(String[] args)