blob: a97fffae295f94d0ae214311f7d9517d54d0431f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation 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
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.core.tests.runtime;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.eclipse.core.runtime.OperationCanceledException;
/**
* Test cases for the Path class.
*/
public class OperationCanceledExceptionTest extends RuntimeTest {
/**
* Need a zero argument constructor to satisfy the test harness.
* This constructor should not do any real work nor should it be
* called by user code.
*/
public OperationCanceledExceptionTest() {
super(null);
}
public OperationCanceledExceptionTest(String name) {
super(name);
}
public static Test suite() {
return new TestSuite(OperationCanceledExceptionTest.class);
}
public void testCoreException() {
final String MESSAGE_STRING = "An exception has occurred";
OperationCanceledException e = new OperationCanceledException(MESSAGE_STRING);
assertEquals("1.0", MESSAGE_STRING, e.getMessage());
}
}