/**
* 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.feature.tests.integration;
import org.jnario.feature.tests.integration.ParsingSimpleJnarioFilesFeature;
import org.jnario.lib.Assert;
import org.jnario.lib.Should;
import org.jnario.runner.FeatureRunner;
import org.jnario.runner.Named;
import org.jnario.runner.Order;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(FeatureRunner.class)
@Named("Scenario: And stuff.")
@SuppressWarnings("all")
public class ParsingSimpleJnarioFilesFeatureAndStuff extends ParsingSimpleJnarioFilesFeature {
int x;
int y;
int z;
@Test
@Order(0)
@Named("Given two numbers.")
public void _givenTwoNumbers() {
this.x = 3;
this.y = 5;
}
@Test
@Order(1)
@Named("And their sum.")
public void _andTheirSum() {
this.z = 8;
}
@Test
@Order(2)
@Named("Then the adding these should be the result.")
public void _thenTheAddingTheseShouldBeTheResult() {
Assert.assertTrue("\nExpected (x+y) => z but"
+ "\n x+y is " + new org.hamcrest.StringDescription().appendValue(Integer.valueOf((this.x + this.y))).toString()
+ "\n x is " + new org.hamcrest.StringDescription().appendValue(this.x).toString()
+ "\n y is " + new org.hamcrest.StringDescription().appendValue(this.y).toString()
+ "\n z is " + new org.hamcrest.StringDescription().appendValue(Integer.valueOf(this.z)).toString() + "\n", Should.<Integer>operator_doubleArrow(Integer.valueOf((this.x + this.y)), Integer.valueOf(this.z)));
}
}