parent
213a6e2bf2
commit
7ee3e57727
|
@ -190,12 +190,6 @@
|
|||
<artifactId>serenity-core</artifactId>
|
||||
<version>${serenity.version}</version>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.asciidoctor</groupId>
|
||||
<artifactId>asciidoctor-java-integration</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.serenity-bdd</groupId>
|
||||
|
|
|
@ -14,10 +14,6 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import static com.baeldung.serenity.spring.RandomNumberUtil.randomInt;
|
||||
import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER_CLASS;
|
||||
|
||||
/**
|
||||
* @author aiet
|
||||
*/
|
||||
|
||||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses({
|
||||
AdderClassDirtiesContextIntegrationTest.DirtiesContextTest.class, AdderClassDirtiesContextIntegrationTest.AnotherDirtiesContextTest.class
|
||||
|
@ -28,9 +24,11 @@ public class AdderClassDirtiesContextIntegrationTest {
|
|||
@ContextConfiguration(classes = AdderService.class)
|
||||
public static abstract class Base {
|
||||
|
||||
@Steps AdderServiceSteps adderServiceSteps;
|
||||
@Steps
|
||||
AdderServiceSteps adderServiceSteps;
|
||||
|
||||
@ClassRule public static SpringIntegrationClassRule springIntegrationClassRule = new SpringIntegrationClassRule();
|
||||
@ClassRule
|
||||
public static SpringIntegrationClassRule springIntegrationClassRule = new SpringIntegrationClassRule();
|
||||
|
||||
void whenAccumulate_thenSummedUp() {
|
||||
adderServiceSteps.whenAccumulate();
|
||||
|
|
|
@ -6,13 +6,11 @@ import org.jbehave.core.annotations.BeforeStory;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.test.context.ContextConfiguration;
|
||||
|
||||
/**
|
||||
* @author aiet
|
||||
*/
|
||||
@ContextConfiguration(classes = {AdderController.class, AdderService.class})
|
||||
public class AdderTest extends SerenityStory {
|
||||
|
||||
@Autowired private AdderService adderService;
|
||||
@Autowired
|
||||
private AdderService adderService;
|
||||
|
||||
@BeforeStory
|
||||
public void init() {
|
||||
|
|
Loading…
Reference in New Issue