/** * Copyright (c) 2012 BMW Car IT 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.jnario.jnario.tests.unit.jnario; import org.jnario.feature.feature.Given; import org.jnario.jnario.test.util.Features; import org.jnario.jnario.tests.unit.jnario.ExecutableIsPendingSpec; import org.jnario.lib.Assert; import org.jnario.lib.Should; import org.jnario.runner.ExampleGroupRunner; import org.jnario.runner.Named; import org.jnario.runner.Order; import org.junit.Test; import org.junit.runner.RunWith; @Named("Step") @RunWith(ExampleGroupRunner.class) @SuppressWarnings("all") public class ExecutableIsPendingStepSpec extends ExecutableIsPendingSpec { @Test @Named("stepWithoutImplementation.isPending[] should be true") @Order(1) public void _stepWithoutImplementationIsPendingShouldBeTrue() throws Exception { Given _stepWithoutImplementation = Features.stepWithoutImplementation(); boolean _isPending = _stepWithoutImplementation.isPending(); boolean _should_be = Should.<Boolean>should_be(Boolean.valueOf(_isPending), true); Assert.assertTrue("\nExpected stepWithoutImplementation.isPending() should be true but" + "\n stepWithoutImplementation.isPending() is " + new org.hamcrest.StringDescription().appendValue(Boolean.valueOf(_isPending)).toString() + "\n stepWithoutImplementation is " + new org.hamcrest.StringDescription().appendValue(_stepWithoutImplementation).toString() + "\n", _should_be); } @Test @Named("implementedStep.isPending[] should be false") @Order(2) public void _implementedStepIsPendingShouldBeFalse() throws Exception { Given _implementedStep = Features.implementedStep(); boolean _isPending = _implementedStep.isPending(); boolean _should_be = Should.<Boolean>should_be(Boolean.valueOf(_isPending), false); Assert.assertTrue("\nExpected implementedStep.isPending() should be false but" + "\n implementedStep.isPending() is " + new org.hamcrest.StringDescription().appendValue(Boolean.valueOf(_isPending)).toString() + "\n implementedStep is " + new org.hamcrest.StringDescription().appendValue(_implementedStep).toString() + "\n", _should_be); } }