Skip to content

Commit 7ee3e57

Browse files
authored
Ascii doctor fix (eugenp#2168)
* Asciidoctor fix * Reformat
1 parent 213a6e2 commit 7ee3e57

3 files changed

Lines changed: 24 additions & 34 deletions

File tree

‎libraries/pom.xml‎

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<parent>
55
<artifactId>parent-modules</artifactId>
66
<groupId>com.baeldung</groupId>
@@ -59,7 +59,7 @@
5959
<props>${basedir}/datanucleus.properties</props>
6060
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
6161
<verbose>true</verbose>
62-
<fork>false</fork> <!-- Solve windows line too long error -->
62+
<fork>false</fork> <!-- Solve windows line too long error -->
6363
</configuration>
6464
<executions>
6565
<execution>
@@ -81,10 +81,10 @@
8181
<version>${cglib.version}</version>
8282
</dependency>
8383
<dependency>
84-
<groupId>commons-beanutils</groupId>
85-
<artifactId>commons-beanutils</artifactId>
86-
<version>${commons-beanutils.version}</version>
87-
</dependency>
84+
<groupId>commons-beanutils</groupId>
85+
<artifactId>commons-beanutils</artifactId>
86+
<version>${commons-beanutils.version}</version>
87+
</dependency>
8888
<dependency>
8989
<groupId>org.apache.commons</groupId>
9090
<artifactId>commons-lang3</artifactId>
@@ -190,12 +190,6 @@
190190
<artifactId>serenity-core</artifactId>
191191
<version>${serenity.version}</version>
192192
<scope>test</scope>
193-
<exclusions>
194-
<exclusion>
195-
<groupId>org.asciidoctor</groupId>
196-
<artifactId>asciidoctor-java-integration</artifactId>
197-
</exclusion>
198-
</exclusions>
199193
</dependency>
200194
<dependency>
201195
<groupId>net.serenity-bdd</groupId>
@@ -251,7 +245,7 @@
251245
<groupId>org.datanucleus</groupId>
252246
<artifactId>datanucleus-maven-plugin</artifactId>
253247
<version>5.0.2</version>
254-
</dependency>
248+
</dependency>
255249
<dependency>
256250
<groupId>org.datanucleus</groupId>
257251
<artifactId>datanucleus-xml</artifactId>
@@ -303,11 +297,11 @@
303297
<version>1.4.195</version>
304298
</dependency>
305299
<dependency>
306-
<groupId>pl.pragmatists</groupId>
307-
<artifactId>JUnitParams</artifactId>
308-
<version>${jUnitParams.version}</version>
309-
<scope>test</scope>
310-
</dependency>
300+
<groupId>pl.pragmatists</groupId>
301+
<artifactId>JUnitParams</artifactId>
302+
<version>${jUnitParams.version}</version>
303+
<scope>test</scope>
304+
</dependency>
311305
<dependency>
312306
<groupId>org.quartz-scheduler</groupId>
313307
<artifactId>quartz</artifactId>
@@ -338,8 +332,8 @@
338332
<groupId>io.netty</groupId>
339333
<artifactId>netty-all</artifactId>
340334
<version>${netty.version}</version>
341-
</dependency>
342-
<!-- OpenNLP -->
335+
</dependency>
336+
<!-- OpenNLP -->
343337
<dependency>
344338
<groupId>org.apache.opennlp</groupId>
345339
<artifactId>opennlp-tools</artifactId>
@@ -361,7 +355,7 @@
361355
<multiverse.version>0.7.0</multiverse.version>
362356
<cglib.version>3.2.4</cglib.version>
363357
<commons-lang.version>3.5</commons-lang.version>
364-
<commons-beanutils.version>1.9.3</commons-beanutils.version>
358+
<commons-beanutils.version>1.9.3</commons-beanutils.version>
365359
<jasypt.version>1.9.2</jasypt.version>
366360
<javatuples.version>1.2</javatuples.version>
367361
<javaassist.version>3.21.0-GA</javaassist.version>

‎libraries/src/test/java/com/baeldung/serenity/spring/AdderClassDirtiesContextIntegrationTest.java‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,21 @@
1414
import static com.baeldung.serenity.spring.RandomNumberUtil.randomInt;
1515
import static org.springframework.test.annotation.DirtiesContext.ClassMode.AFTER_CLASS;
1616

17-
/**
18-
* @author aiet
19-
*/
20-
2117
@RunWith(Suite.class)
2218
@Suite.SuiteClasses({
23-
AdderClassDirtiesContextIntegrationTest.DirtiesContextTest.class, AdderClassDirtiesContextIntegrationTest.AnotherDirtiesContextTest.class
24-
})
19+
AdderClassDirtiesContextIntegrationTest.DirtiesContextTest.class, AdderClassDirtiesContextIntegrationTest.AnotherDirtiesContextTest.class
20+
})
2521
public class AdderClassDirtiesContextIntegrationTest {
2622

2723
@RunWith(SerenityRunner.class)
2824
@ContextConfiguration(classes = AdderService.class)
2925
public static abstract class Base {
3026

31-
@Steps AdderServiceSteps adderServiceSteps;
27+
@Steps
28+
AdderServiceSteps adderServiceSteps;
3229

33-
@ClassRule public static SpringIntegrationClassRule springIntegrationClassRule = new SpringIntegrationClassRule();
30+
@ClassRule
31+
public static SpringIntegrationClassRule springIntegrationClassRule = new SpringIntegrationClassRule();
3432

3533
void whenAccumulate_thenSummedUp() {
3634
adderServiceSteps.whenAccumulate();

‎libraries/src/test/java/com/baeldung/serenity/spring/AdderTest.java‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
import org.springframework.beans.factory.annotation.Autowired;
77
import org.springframework.test.context.ContextConfiguration;
88

9-
/**
10-
* @author aiet
11-
*/
12-
@ContextConfiguration(classes = { AdderController.class, AdderService.class })
9+
@ContextConfiguration(classes = {AdderController.class, AdderService.class})
1310
public class AdderTest extends SerenityStory {
1411

15-
@Autowired private AdderService adderService;
12+
@Autowired
13+
private AdderService adderService;
1614

1715
@BeforeStory
1816
public void init() {

0 commit comments

Comments
 (0)