blob: db9a1280175b25ac1e337c7e6d6f769923c17187 [file] [log] [blame]
// NotTest.java
package org.eclipse.stem.core.predicate.tests;
/*******************************************************************************
* Copyright (c) 2008 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
*******************************************************************************/
import junit.textui.TestRunner;
import org.eclipse.stem.core.predicate.False;
import org.eclipse.stem.core.predicate.Not;
import org.eclipse.stem.core.predicate.PredicateFactory;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Not</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("all")
public class NotTest extends UnaryBooleanOperatorTest {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static void main(String[] args) {
TestRunner.run(NotTest.class);
}
/**
* Constructs a new Not test case with the given name.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotTest(String name) {
super(name);
}
/**
* Returns the fixture for this Not test case.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected Not getFixture() {
return (Not)fixture;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#setUp()
* @generated NOT
*/
@Override
protected void setUp() throws Exception {
final Not notExpression = PredicateFactory.eINSTANCE.createNot();
final False false0 = PredicateFactory.eINSTANCE.createFalse();
notExpression.setOperand(false0);
setFixture(notExpression);
} // setUp
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see junit.framework.TestCase#tearDown()
* @generated
*/
@Override
protected void tearDown() throws Exception {
setFixture(null);
}
/**
* @see org.eclipse.stem.core.predicate.tests.PredicateTest#getExpectedResult()
*/
@Override
protected boolean getExpectedResult() {
return true;
}
} // NotTest