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:
parent
b094ba8098
commit
b045e8309d
@ -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>
|
||||
|
||||
|
@ -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
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user