blob: 38d4a6a2ea80346500a7ac4b0b913c06eccc7864 [file] [log] [blame]
/*
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM - Initial API and implementation
* Jens Lukowski/Innoopract - initial renaming/restructuring
*
*/
package org.eclipse.wst.dtd.ui.tests;
import junit.framework.TestCase;
import org.eclipse.wst.dtd.core.internal.provisional.contenttype.ContentTypeIdForDTD;
import org.eclipse.wst.dtd.ui.internal.provisional.StructuredTextViewerConfigurationDTD;
import org.eclipse.wst.dtd.ui.internal.views.contentoutline.DTDContentOutlineConfiguration;
import org.eclipse.wst.sse.ui.internal.ExtendedConfigurationBuilder;
/**
* Tests retrieving editor contributions for dtd content type
*/
public class TestEditorConfigurationDTD extends TestCase {
public void testGetSourceViewerConfiguration() {
Object o = ExtendedConfigurationBuilder.getInstance().getConfiguration(ExtendedConfigurationBuilder.SOURCEVIEWERCONFIGURATION, ContentTypeIdForDTD.ContentTypeID_DTD);
assertTrue("unexpected source viewer configuration for " + ContentTypeIdForDTD.ContentTypeID_DTD, (o instanceof StructuredTextViewerConfigurationDTD));
}
public void testGetContentOutlineViewerConfiguration() {
Object o = ExtendedConfigurationBuilder.getInstance().getConfiguration(ExtendedConfigurationBuilder.CONTENTOUTLINECONFIGURATION, ContentTypeIdForDTD.ContentTypeID_DTD);
assertTrue("unexpected content outline viewer configuration for " + ContentTypeIdForDTD.ContentTypeID_DTD, (o instanceof DTDContentOutlineConfiguration));
}
}