BAEL-5363 Fixed pom files, assertions instead of console output, and fixed package folders (#12462)

Co-authored-by: Christian Jaimes <christian.jaimes@oracle>
This commit is contained in:
chrisjaimes 2022-07-07 12:41:30 -04:00 committed by GitHub
parent b094ba8098
commit b045e8309d
6 changed files with 10 additions and 5 deletions

View File

@ -3,10 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>parent-modules</artifactId>
<groupId>com.baeldung</groupId>
<artifactId>persistence-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -31,6 +31,11 @@ public class CrudClientLiveTest {
@Order(2)
public void whenReadingEventsByDate_thenCheckForReturnedDocument() {
Assertions.assertNotNull(CrudClient.readEventsByDate(CrudClient.dateQuery));
Event event = CrudClient.readEventsByDate(CrudClient.dateQuery);
Assertions.assertNotNull(event);
Assertions.assertEquals("Soccer game", event.title);
Assertions.assertEquals("Bar Avenue", event.location);
Assertions.assertEquals(CrudClient.soccerGame.dateTime, event.dateTime);
}
@Test
@ -39,6 +44,9 @@ public class CrudClientLiveTest {
List<Event> events = CrudClient.readEventsByDateRange(CrudClient.from, CrudClient.to);
Assertions.assertNotNull(events);
Assertions.assertEquals(1, events.size());
Assertions.assertEquals("Soccer game", events.get(0).title);
Assertions.assertEquals("Bar Avenue", events.get(0).location);
Assertions.assertEquals(CrudClient.soccerGame.dateTime, events.get(0).dateTime);
}
@Test

View File

@ -45,6 +45,7 @@
<module>java-mongodb</module> <!-- long running -->
<module>java-mongodb-2</module> <!-- long running -->
<module>java-mongodb-3</module> <!-- long running -->
<module>java-mongodb-queries</module> <!-- long running -->
<module>jnosql</module> <!-- long running -->
<module>jooq</module>
<module>jpa-hibernate-cascade-type</module>

View File

@ -7,9 +7,6 @@
<groupId>com.baeldung</groupId>
<artifactId>parent-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
<modules>
<module>persistence-modules/java-mongodb-queries</module>
</modules>
<name>parent-modules</name>
<packaging>pom</packaging>