| org.eclipse.pde.build.tests.PDETestCase
All known Subclasses: org.eclipse.pde.build.internal.tests.SourceTests, org.eclipse.pde.build.internal.tests.ProductTests, org.eclipse.pde.build.internal.tests.ScriptGenerationTests, org.eclipse.pde.build.internal.tests.FetchTests,
PDETestCase | abstract public class PDETestCase extends TestCase (Code) | | |
Method Summary | |
public static void | assertLogContainsLine(IFile log, String msg) | public static void | assertLogContainsLines(IFile log, String[] lines) | public static void | assertResourceFile(IFolder buildFolder, String fileName) | public static Project | assertValidAntScript(IFile buildXML) | public static void | assertZipContents(IFolder buildFolder, String archive, Set entries) | public static void | assertZipContents(IFolder buildFolder, String archive, Set entries, boolean assertEmpty) | protected void | clearStatics() | protected String[] | createAntRunnerArgs(String script, String[] targets, String antHome, Properties additionalProperties, String listener, String logger) | protected void | generateScripts(IFolder buildFolder, Properties generateProperties) | protected IProject | newTest() | protected IFolder | newTest(String resources) | protected void | runAntScript(String script, String[] targets, String antHome, Properties additionalProperties) | protected void | runAntScript(String script, String[] targets, String antHome, Properties additionalProperties, String listener, String logger) | protected void | runBuild(IFolder buildFolder) | protected void | runProductBuild(IFolder buildFolder) | protected void | runTest() |
assertLogContainsLine | public static void assertLogContainsLine(IFile log, String msg) throws Exception(Code) | | Assert that the given log file contains the given message
The message is expected to be contained on a single line
Parameters: log - Parameters: msg - throws: Exception - |
assertLogContainsLines | public static void assertLogContainsLines(IFile log, String[] lines) throws Exception(Code) | | Assert that the given log file contains the given lines
Lines are expected to appear in order
Parameters: log - Parameters: lines - throws: Exception - |
assertResourceFile | public static void assertResourceFile(IFolder buildFolder, String fileName) throws Exception(Code) | | Assert that the given resource exists and has size > 0
Parameters: buildFolder - Parameters: fileName - throws: Exception - |
assertValidAntScript | public static Project assertValidAntScript(IFile buildXML) throws Exception(Code) | | assert that the given xml file exists, has size > 0 and is a valid ant script
Parameters: buildXML - throws: Exception - |
assertZipContents | public static void assertZipContents(IFolder buildFolder, String archive, Set entries) throws Exception(Code) | | Assert that the zip file contains at least the given entries
Parameters: buildFolder - Parameters: archive - Parameters: entries - throws: Exception - |
assertZipContents | public static void assertZipContents(IFolder buildFolder, String archive, Set entries, boolean assertEmpty) throws Exception(Code) | | |
runBuild | protected void runBuild(IFolder buildFolder) throws Exception(Code) | | |
runProductBuild | protected void runProductBuild(IFolder buildFolder) throws Exception(Code) | | |
|
|