org.eclipse.emf.test.build
Class BuildTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.emf.test.build.BuildTest
All Implemented Interfaces:
junit.framework.Test

public class BuildTest
extends junit.framework.TestCase


Field Summary
protected  java.util.Set<java.lang.String> brandingPluginNames
           
protected static int expectedNumberOfDocPlugins
           
protected static int expectedNumberOfSourcePlugins
           
protected  java.io.File featuresDir
           
protected  java.io.File pluginsDir
           
protected static java.lang.String REGEX_SYMBOL
           
protected static java.lang.String[] REQUIRED_BRANDING_PLUGIN_FILES
           
protected static java.lang.String[] REQUIRED_DOC_PLUGIN_FILES
           
protected static java.lang.String[] REQUIRED_FEATURE_FILES
           
protected static java.lang.String[] REQUIRED_REGULAR_PLUGIN_FILES
           
 
Constructor Summary
BuildTest(java.lang.String name)
           
 
Method Summary
protected  java.lang.String getMissingFiles(java.io.File dir, java.lang.String[] requiredFiles)
           
protected  java.lang.String getMissingFiles(java.util.jar.JarFile jar, java.lang.String[] requiredFiles)
           
protected  boolean isBrandingPlugin(java.lang.String name)
           
protected  boolean isDocPlugin(java.lang.String name)
           
protected  boolean isFeatureToTest(java.io.File feature)
           
protected  boolean isFileToTest(java.io.File plugin)
           
protected  boolean isPluginToTest(java.io.File plugin)
           
protected  boolean isSourcePlugin(java.lang.String name)
           
protected  java.util.Set<java.lang.String> retrieveBrandingPluginNames()
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testFeatures()
           
 void testPlugins()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REGEX_SYMBOL

protected static final java.lang.String REGEX_SYMBOL
See Also:
Constant Field Values

REQUIRED_FEATURE_FILES

protected static final java.lang.String[] REQUIRED_FEATURE_FILES

REQUIRED_REGULAR_PLUGIN_FILES

protected static final java.lang.String[] REQUIRED_REGULAR_PLUGIN_FILES

REQUIRED_DOC_PLUGIN_FILES

protected static final java.lang.String[] REQUIRED_DOC_PLUGIN_FILES

REQUIRED_BRANDING_PLUGIN_FILES

protected static final java.lang.String[] REQUIRED_BRANDING_PLUGIN_FILES

expectedNumberOfDocPlugins

protected static int expectedNumberOfDocPlugins

expectedNumberOfSourcePlugins

protected static int expectedNumberOfSourcePlugins

featuresDir

protected java.io.File featuresDir

pluginsDir

protected java.io.File pluginsDir

brandingPluginNames

protected java.util.Set<java.lang.String> brandingPluginNames
Constructor Detail

BuildTest

public BuildTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

isFeatureToTest

protected boolean isFeatureToTest(java.io.File feature)

isPluginToTest

protected boolean isPluginToTest(java.io.File plugin)

isFileToTest

protected boolean isFileToTest(java.io.File plugin)

testFeatures

public void testFeatures()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testPlugins

public void testPlugins()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getMissingFiles

protected java.lang.String getMissingFiles(java.io.File dir,
                                           java.lang.String[] requiredFiles)

getMissingFiles

protected java.lang.String getMissingFiles(java.util.jar.JarFile jar,
                                           java.lang.String[] requiredFiles)

isDocPlugin

protected boolean isDocPlugin(java.lang.String name)

isSourcePlugin

protected boolean isSourcePlugin(java.lang.String name)

isBrandingPlugin

protected boolean isBrandingPlugin(java.lang.String name)

retrieveBrandingPluginNames

protected java.util.Set<java.lang.String> retrieveBrandingPluginNames()

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.