blob: 62a368694df5c98d970cce98858648846c71b085 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2008, 2017 Jae Gangemi and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.dltk.ui.tests.core;
import org.eclipse.dltk.core.tests.model.AbstractModelTests;
import org.eclipse.dltk.core.tests.model.TestConstants;
import org.eclipse.dltk.ui.DLTKUILanguageManager;
import org.eclipse.dltk.ui.IDLTKUILanguageToolkit;
import org.junit.Assert;
public class DLTKUILanguageManagerTests extends AbstractModelTests {
public DLTKUILanguageManagerTests(String name) {
super("org.eclipse.dltk.ui.tests.core", name);
}
public void testGetUILanguageToolkit() {
IDLTKUILanguageToolkit toolkit = DLTKUILanguageManager
.getLanguageToolkit(TestConstants.NATURE_ID);
Assert.assertNotNull(toolkit);
}
public void testUILanguageToolkits() {
IDLTKUILanguageToolkit[] toolkits = DLTKUILanguageManager
.getLanguageToolkits();
/*
* need at least 1, > 1 means multiple plugin implementations were
* installed in the pde when the test ran
*/
Assert.assertTrue(toolkits.length > 0);
}
}