mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 23:15:24 +02:00
Fix JUnit-failure when running in head-less mode.
This commit is contained in:
parent
686781efd0
commit
3094503910
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,7 @@ package org.eclipse.cdt.core.tests.templateengine;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.templateengine.TemplateEngine;
|
import org.eclipse.cdt.core.templateengine.TemplateEngine;
|
||||||
import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
|
import org.eclipse.cdt.core.testplugin.util.BaseTestCase;
|
||||||
|
import org.eclipse.ui.PlatformUI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the functionality of TemplateEngine.
|
* Test the functionality of TemplateEngine.
|
||||||
|
@ -50,6 +51,11 @@ public class TestTemplateEngine extends BaseTestCase {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public void testSharedDefaults(){
|
public void testSharedDefaults(){
|
||||||
|
// when running the testcase in head-less mode, the TestExtraPagesProvider class cannot be loaded,
|
||||||
|
// which is logged.
|
||||||
|
if (!PlatformUI.isWorkbenchRunning()) {
|
||||||
|
setExpectedNumberOfLoggedNonOKStatusObjects(1);
|
||||||
|
}
|
||||||
assertNotNull(TemplateEngine.getSharedDefaults());
|
assertNotNull(TemplateEngine.getSharedDefaults());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue