com.tngtech.jgiven.tests.TestClassWithDescription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgiven-tests Show documentation
Show all versions of jgiven-tests Show documentation
JGiven Tests - Contains BDD tests for JGiven written in JGiven
package com.tngtech.jgiven.tests;
import org.junit.Test;
import org.testng.annotations.Listeners;
import com.tngtech.jgiven.annotation.Description;
import com.tngtech.jgiven.junit.ScenarioTest;
import com.tngtech.jgiven.testng.ScenarioTestListener;
@Listeners( ScenarioTestListener.class )
@Description( "Test Description" )
public class TestClassWithDescription extends ScenarioTest {
@Test
@org.testng.annotations.Test
public void some_test() {
given().nothing();
when().something_happens();
then().something_happened();
}
}