Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.test
Class TestSelector  view TestSelector download TestSelector.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.hibernate.test.TestSelector
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.FileSelector, junit.framework.Test

public class TestSelector
extends junit.framework.TestCase
implements org.apache.tools.ant.types.selectors.FileSelector

A custom Ant FileSelector used to limit the tests run from the Ant build script to only those defined in the AllTests suite.

AllTests is used/maintained by the developers to easily run the test suite in all IDEs. It represents all the tests which should actually be run and included in test results.


Field Summary
private  java.util.Set allTestClassNames
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestSelector()
           
 
Method Summary
private  java.lang.String determineClassName(java.lang.String file)
           
 boolean isSelected(java.io.File dir, java.lang.String fileFromDir, java.io.File fullFile)
          Method that each selector will implement to create their selection behaviour.
 void testFileSelection()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allTestClassNames

private final java.util.Set allTestClassNames
Constructor Detail

TestSelector

public TestSelector()
Method Detail

isSelected

public boolean isSelected(java.io.File dir,
                          java.lang.String fileFromDir,
                          java.io.File fullFile)
                   throws org.apache.tools.ant.BuildException
Description copied from interface: org.apache.tools.ant.types.selectors.FileSelector
Method that each selector will implement to create their selection behaviour. If there is a problem with the setup of a selector, it can throw a BuildException to indicate the problem.

Specified by:
isSelected in interface org.apache.tools.ant.types.selectors.FileSelector

determineClassName

private java.lang.String determineClassName(java.lang.String file)

testFileSelection

public void testFileSelection()