| org.netbeans.modules.cnd.test.BaseTestCase
All known Subclasses: org.netbeans.modules.cnd.test.base.BaseDocumentUnitTestCase, org.netbeans.modules.cnd.completion.includes.CCIncludesAuxTestCase, org.netbeans.modules.cnd.modelimpl.test.ModelImplBaseTestCase, org.netbeans.modules.cnd.repository.impl.TryGetTest, org.netbeans.modules.cnd.modelimpl.test.ProjectBasedTestCase, org.netbeans.modules.cnd.editor.spi.cplusplus.SyntaxSupportProviderTest, org.netbeans.modules.cnd.loaders.CndEditorProviderTestCase, org.netbeans.modules.cnd.loaders.CndDataObjectTestCase, org.netbeans.modules.cnd.folding.APTFoldingProviderTestCase, org.netbeans.modules.cnd.loaders.CndFileObjectTestCase, org.netbeans.modules.cnd.repository.util.RepositoryCacheMapTest, org.netbeans.modules.cnd.completion.CheckModelTestCase, org.netbeans.modules.cnd.loaders.CndDocumentProviderTestCase,
BaseTestCase | abstract public class BaseTestCase extends NbTestCase (Code) | | base class to isolate using of NbJUnit library
${xtest.data} vallue is usually ${module}/test/unit/data folder
author: Vladimir Voskresensky |
BaseTestCase | public BaseTestCase(String testName)(Code) | | Creates a new instance of BaseTestCase
|
compareReferenceFiles | public void compareReferenceFiles(String testFilename, String goldenFilename)(Code) | | Compares golden file and reference log. If both files are the
same, test passes. If files differ, test fails and diff file is
created (diff is created only when using native diff, for details
see JUnit module documentation)
Parameters: testFilename - reference log file name Parameters: goldenFilename - golden file name |
compareReferenceFiles | public void compareReferenceFiles()(Code) | | Compares default golden file and default reference log. If both files are the
same, test passes. If files differ, test fails and default diff (${methodname}.diff)
file is created (diff is created only when using native diff, for details
see JUnit module documentation)
|
getDataFile | protected File getDataFile(String filename)(Code) | | Get the test method specific data file;
usually it is ${xtest.data}/${classname}/filename
See Also: getTestCaseDataClass See Also: getTestCaseDataDir |
getGoldenFile | public File getGoldenFile(String filename)(Code) | | Get the test method specific golden file as ${xtest.data}/goldenfiles/${classname}/filename
Parameters: filename - filename to get from golden files directory golden file See Also: getTestCaseGoldenDataClass |
getTestCaseDataClass | protected Class getTestCaseDataClass()(Code) | | this method is responsible for construction of part
${classname}
in path ${xtest.data}/${classname}
See Also: getGoldenFile |
getTestCaseDataDir | protected File getTestCaseDataDir()(Code) | | Get the test method specific data dir
usually it is ${xtest.data}/${classname}
See Also: getTestCaseDataClass |
getTestCaseGoldenDataClass | protected Class getTestCaseGoldenDataClass()(Code) | | this method is responsible for construction of part
${classname}
in path ${xtest.data}/goldenfiles/${classname}/filename
See Also: getGoldenFile |
|
|