From 7ee3e57727b9a45b26208adf77ffe5ef5c1ed595 Mon Sep 17 00:00:00 2001 From: Grzegorz Piwowarek Date: Tue, 27 Jun 2017 08:20:33 +0200 Subject: [PATCH] Ascii doctor fix (#2168) * Asciidoctor fix * Reformat --- libraries/pom.xml | 36 ++++++++----------- ...derClassDirtiesContextIntegrationTest.java | 14 ++++---- .../baeldung/serenity/spring/AdderTest.java | 8 ++--- 3 files changed, 24 insertions(+), 34 deletions(-) diff --git a/libraries/pom.xml b/libraries/pom.xml index 6872e4ad7c..0ab240f6d7 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -1,6 +1,6 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> parent-modules com.baeldung @@ -59,7 +59,7 @@ ${basedir}/datanucleus.properties ${basedir}/log4j.properties true - false + false @@ -81,10 +81,10 @@ ${cglib.version} - commons-beanutils - commons-beanutils - ${commons-beanutils.version} - + commons-beanutils + commons-beanutils + ${commons-beanutils.version} + org.apache.commons commons-lang3 @@ -190,12 +190,6 @@ serenity-core ${serenity.version} test - - - org.asciidoctor - asciidoctor-java-integration - - net.serenity-bdd @@ -251,7 +245,7 @@ org.datanucleus datanucleus-maven-plugin 5.0.2 - + org.datanucleus datanucleus-xml @@ -303,11 +297,11 @@ 1.4.195 - pl.pragmatists - JUnitParams - ${jUnitParams.version} - test - + pl.pragmatists + JUnitParams + ${jUnitParams.version} + test + org.quartz-scheduler quartz @@ -338,8 +332,8 @@ io.netty netty-all ${netty.version} - - + + org.apache.opennlp opennlp-tools @@ -361,7 +355,7 @@ 0.7.0 3.2.4 3.5 - 1.9.3 + 1.9.3 1.9.2 1.2 3.21.0-GA diff --git a/libraries/src/test/java/com/baeldung/serenity/spring/AdderClassDirtiesContextIntegrationTest.java b/libraries/src/test/java/com/baeldung/serenity/spring/AdderClassDirtiesContextIntegrationTest.java index bb25186cee..82dbad0f11 100644 --- a/libraries/src/test/java/com/baeldung/serenity/spring/AdderClassDirtiesContextIntegrationTest.java +++ b/libraries/src/test/java/com/baeldung/serenity/spring/AdderClassDirtiesContextIntegrationTest.java @@ -14,23 +14,21 @@ 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 - }) + AdderClassDirtiesContextIntegrationTest.DirtiesContextTest.class, AdderClassDirtiesContextIntegrationTest.AnotherDirtiesContextTest.class +}) public class AdderClassDirtiesContextIntegrationTest { @RunWith(SerenityRunner.class) @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(); diff --git a/libraries/src/test/java/com/baeldung/serenity/spring/AdderTest.java b/libraries/src/test/java/com/baeldung/serenity/spring/AdderTest.java index a57b924211..771f389cb1 100644 --- a/libraries/src/test/java/com/baeldung/serenity/spring/AdderTest.java +++ b/libraries/src/test/java/com/baeldung/serenity/spring/AdderTest.java @@ -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 }) +@ContextConfiguration(classes = {AdderController.class, AdderService.class}) public class AdderTest extends SerenityStory { - @Autowired private AdderService adderService; + @Autowired + private AdderService adderService; @BeforeStory public void init() {