blob: bb8e77d02a36d6f4d2d07b87300b2023a38e1086 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009, 2017 Standards for Technology in Automotive Retail and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* David Carver (STAR) - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.xsl.internal.core.tests;
import org.eclipse.jface.text.IDocumentPartitioner;
import static org.junit.Assert.*;
import org.eclipse.wst.xsl.core.internal.text.rules.StructuredTextPartitionerForXSL;
import org.junit.Test;
public class TestStructuredTextPartitionerForXSL {
@Test
public void testXSLNewInstance() {
StructuredTextPartitionerForXSL textPartioner = new StructuredTextPartitionerForXSL();
IDocumentPartitioner documentPartitioner = textPartioner.newInstance();
assertTrue("Did not retrieve StructuredTextPartitionerForXSL", documentPartitioner instanceof StructuredTextPartitionerForXSL);
}
}