UnstableConsole Output

[INFO] 
[INFO] --< es.uvigo.esei.dgss.teamA.microstories:dgss2526-teamA-microstories-service >--
[INFO] Building Service 0.1.0-SNAPSHOT                                    [4/7]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ dgss2526-teamA-microstories-service ---
[INFO] Deleting /var/lib/jenkins/workspace/microstories-2526-teamA/service/target
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) @ dgss2526-teamA-microstories-service ---
[INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/var/lib/jenkins/workspace/microstories-2526-teamA/service/target/jacoco.exec,classdumpdir=/var/lib/jenkins/workspace/microstories-2526-teamA/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ dgss2526-teamA-microstories-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ dgss2526-teamA-microstories-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ dgss2526-teamA-microstories-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] Copying 4 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ dgss2526-teamA-microstories-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/test-classes
[INFO] 
[INFO] --- maven-dependency-plugin:2.10:unpack (unpack) @ dgss2526-teamA-microstories-service ---
[INFO] Configured Artifact: org.wildfly:wildfly-dist:10.1.0.Final:zip
[INFO] Unpacking /var/lib/jenkins/.m2/repository/org/wildfly/wildfly-dist/10.1.0.Final/wildfly-dist-10.1.0.Final.zip to /var/lib/jenkins/workspace/microstories-2526-teamA/service/target with includes "" and excludes ""
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:copy-resources (copy-wildfly-resources) @ dgss2526-teamA-microstories-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ dgss2526-teamA-microstories-service ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running es.uvigo.esei.microstories.services.ServiceIntegrationTestSuite
13:24:40,326 INFO  [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
13:24:40,847 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
13:24:41,320 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting
13:24:46,250 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
13:24:46,304 INFO  [org.xnio] (MSC service thread 1-3) XNIO version 3.4.0.Final
13:24:46,317 INFO  [org.xnio.nio] (MSC service thread 1-3) XNIO NIO Implementation Version 3.4.0.Final
13:24:46,390 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 4.0.21.Final
13:24:46,522 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 36) WFLYCLINF0001: Activating Infinispan subsystem.
13:24:46,600 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 52) WFLYWS0002: Activating WebServices Extension
13:24:46,618 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 49) WFLYSEC0002: Activating Security Subsystem
13:24:46,631 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 50) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
13:24:46,640 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 42) WFLYJSF0007: Activated the following JSF Implementations: [main]
13:24:46,662 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 44) WFLYNAM0001: Activating Naming Subsystem
13:24:46,720 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 35) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors
13:24:46,728 INFO  [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final)
13:24:46,759 INFO  [org.jboss.as.security] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=4.9.6.Final
13:24:46,783 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
13:24:46,895 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0003: Undertow 1.4.0.Final starting
13:24:46,908 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = h2
13:24:46,950 INFO  [org.jboss.as.naming] (MSC service thread 1-4) WFLYNAM0003: Starting Naming Service
13:24:46,969 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
13:24:47,560 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 51) WFLYUT0014: Creating file handler for path '/var/lib/jenkins/workspace/microstories-2526-teamA/service/target/wildfly-10.1.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
13:24:47,716 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.
13:24:47,730 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting
13:24:48,011 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:28080
13:24:48,449 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
13:24:48,449 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0001: Bound data source [java:jboss/datasources/dgss2526/teamA/microstories]
13:24:49,112 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) WFLYDS0013: Started FileSystemDeploymentService for directory /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/wildfly-10.1.0.Final/standalone/deployments
13:24:49,313 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.4.Final
13:24:49,497 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 56) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
13:24:49,501 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 56) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
13:24:49,501 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 55) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
13:24:49,502 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 55) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
13:24:49,649 INFO  [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBossWS 5.1.5.Final (Apache CXF 3.1.6) 
13:24:49,863 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:29990/management
13:24:49,864 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:29990
13:24:49,864 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 9368ms - Started 302 of 506 services (325 services are lazy, passive or on-demand)
13:24:50,744 WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.doServiceDeploy is null. It won't be invoked.
13:24:52,730 INFO  [org.jboss.remoting] (main) JBoss Remoting version 5.0.2.Final
13:24:52,971 INFO  [org.xnio] (main) XNIO version 3.5.1.Final
13:24:52,986 INFO  [org.xnio.nio] (main) XNIO NIO Implementation Version 3.5.1.Final
13:24:53,124 INFO  [org.wildfly.security] (main) ELY00001: WildFly Elytron version 1.1.2.Final
13:24:55,874 INFO  [org.jboss.as.repository] (management-handler-thread - 2) WFLYDR0001: Content added at location /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/wildfly-10.1.0.Final/standalone/data/content/56/79baa6227e180b413a8e030d74c0f3b89d4f16/content
13:24:55,910 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "test.war" (runtime-name: "test.war")
13:24:57,397 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) WFLYJPA0002: Read persistence.xml for test
13:24:57,603 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 12) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'test.war#test'
13:24:57,660 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 12) HHH000204: Processing PersistenceUnitInfo [
	name: test
	...]
13:24:57,800 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment test.war
13:24:57,917 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 12) HHH000412: Hibernate Core {5.0.10.Final}
13:24:57,922 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 12) HHH000206: hibernate.properties not found
13:24:57,937 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 12) HHH000021: Bytecode provider name : javassist
13:24:58,039 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.2.4.Final
13:24:58,183 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 12) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
13:24:58,367 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'StoryService' in deployment unit 'deployment "test.war"' are as follows:

	java:global/test/StoryService!es.uvigo.esei.microstories.services.StoryService
	java:app/test/StoryService!es.uvigo.esei.microstories.services.StoryService
	java:module/StoryService!es.uvigo.esei.microstories.services.StoryService
	java:global/test/StoryService
	java:app/test/StoryService
	java:module/StoryService

13:24:59,040 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 12) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
13:24:59,041 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 12) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
13:24:59,211 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 2.3.5 (Final)
13:24:59,782 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 18) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'test.war#test'
13:24:59,871 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 12) WFLYCLINF0002: Started client-mappings cache from ejb container
13:25:00,545 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 18) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
13:25:00,556 WARN  [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 18) HHH000431: Unable to determine H2 database version, certain features may not work
13:25:00,624 INFO  [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 18) Envers integration enabled? : true
13:25:02,013 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 18) HHH000227: Running hbm2ddl schema export
Hibernate: drop table story if exists
Hibernate: drop table story_themes if exists
Hibernate: drop table story_views if exists
Hibernate: create table story (id bigint generated by default as identity, content varchar(1000) not null, genre varchar(255) not null, published_at timestamp, title varchar(50) not null, primary key (id))
Hibernate: create table story_themes (story_id bigint not null, theme varchar(20) not null, primary key (story_id, theme))
Hibernate: create table story_views (story_id bigint not null, viewed_at timestamp not null, primary key (story_id, viewed_at))
Hibernate: alter table story_themes add constraint FK9xe5ttl75r1h6075frr65d2wl foreign key (story_id) references story
Hibernate: alter table story_views add constraint FKoarxahf8fai2nq69pypjfr9o5 foreign key (story_id) references story
13:25:02,072 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 18) HHH000230: Schema export complete
13:25:03,499 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 27) WFLYUT0021: Registered web context: /test
13:25:03,589 INFO  [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0010: Deployed "test.war" (runtime-name : "test.war")
13:25:04,847 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-2) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:04,916 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-2) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:05,248 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-10) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:05,267 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-10) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:05,436 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-13) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:05,475 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-13) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:05,582 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-16) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:05,596 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-16) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:05,711 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-19) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:05,736 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-19) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:05,823 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-23) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:05,835 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-23) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:05,897 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-24) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:06,161 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-27) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:06,291 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-30) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:06,317 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-30) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:08,850 INFO  [org.hibernate.hql.internal.QueryTranslatorFactoryInitiator] (default task-3) HHH000397: Using ASTQueryTranslatorFactory
Hibernate: select story0_.id as id1_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ inner join story_views views1_ on story0_.id=views1_.story_id where views1_.viewed_at between ? and ? group by story0_.id order by count(views1_.viewed_at) DESC, story0_.published_at DESC
13:25:09,189 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-31) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:09,315 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-1) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:09,339 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-1) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:09,463 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-5) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:09,490 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-5) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:09,579 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-8) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:09,591 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-8) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:09,713 ERROR [org.dbunit.operation.AbstractBatchOperation] (default task-11) execute: Error casting value for table 'story_views' and column 'VIEWED_AT'
13:25:09,725 ERROR [org.dbunit.assertion.DbUnitAssert] (default task-11) org.dbunit.assertion.DbComparisonFailure[row count (table=STORY_VIEWS)expected:<33>but was:<0>]
13:25:09,790 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 27) WFLYUT0022: Unregistered web context: /test
13:25:09,831 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 18) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'test.war#test'
13:25:09,831 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 18) HHH000227: Running hbm2ddl schema export
Hibernate: drop table story if exists
Hibernate: drop table story_themes if exists
Hibernate: drop table story_views if exists
13:25:09,838 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 18) HHH000230: Schema export complete
13:25:09,842 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 12) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'test.war#test'
13:25:09,873 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 27) WFLYCLINF0003: Stopped client-mappings cache from ejb container
13:25:09,880 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment test.war (runtime-name: test.war) in 116ms
13:25:09,916 WARN  [org.jboss.as.controller] (management-handler-thread - 3) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address []
13:25:09,920 INFO  [org.jboss.as.repository] (management-handler-thread - 3) WFLYDR0002: Content removed from location /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/wildfly-10.1.0.Final/standalone/data/content/56/79baa6227e180b413a8e030d74c0f3b89d4f16/content
13:25:09,921 INFO  [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0009: Undeployed "test.war" (runtime-name: "test.war")
[ERROR] Tests run: 15, Failures: 8, Errors: 7, Skipped: 0, Time elapsed: 30.88 s <<< FAILURE! - in es.uvigo.esei.microstories.services.ServiceIntegrationTestSuite
[ERROR] testGetStoryById(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.97 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

[ERROR] testGetTop2ReadStoriesLastMonthByGenre(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.163 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

[ERROR] testSearchStories_InvalidPage(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.195 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: javax.ejb.EJBTransactionRolledbackException

[ERROR] testSearchStories_InvalidSize(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.117 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: javax.ejb.EJBTransactionRolledbackException

[ERROR] testSearchStories_InvalidText(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.144 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: javax.ejb.EJBTransactionRolledbackException

[ERROR] testGetStoryById_NotFound(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.091 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: es.uvigo.esei.microstories.services.exceptions.EntityNotFoundException

[ERROR] getFilteredStoriesByDateWithInitialDateAfterFinalDate(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.21 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: javax.ejb.EJBTransactionRolledbackException

[ERROR] getFilteredStoriesByDateWithOnlyInitialDate(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.131 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: javax.ejb.EJBTransactionRolledbackException

[ERROR] getFilteredStoriesByDate(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.152 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

[ERROR] testGetTop2ReadStoriesLastMonthByGenre_NoStories(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 2.768 s  <<< FAILURE!
java.lang.AssertionError: 
Test failed in 2 cases. 
STORY expected to be empty, but was <10>.
STORY_THEMES expected to be empty, but was <16>.


[ERROR] getFilteredStoriesByDateWithOnlyFinalDate(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.106 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: javax.ejb.EJBTransactionRolledbackException

[ERROR] testSearchStories(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.151 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

[ERROR] getFilteredStoriesByGenre(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.14 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

[ERROR] getFilteredStoriesByTheme(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.1 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

[ERROR] testGetRecentStories(es.uvigo.esei.microstories.services.StoryServiceIntegrationTest)  Time elapsed: 0.136 s  <<< ERROR!
org.jboss.arquillian.persistence.dbunit.exception.DBUnitDataSetHandlingException: Failed while seeding database.
Caused by: org.dbunit.dataset.datatype.TypeCastException: Error casting value for table 'story_views' and column 'VIEWED_AT'
Caused by: org.dbunit.dataset.datatype.TypeCastException: Unable to typecast value <[now-1M 10:15:30]> of type <java.lang.String> to TIMESTAMP
Caused by: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]

13:25:10,025 WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.undeploy is null. It won't be invoked.
13:25:10,045 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
13:25:10,046 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0010: Unbound data source [java:jboss/datasources/dgss2526/teamA/microstories]
13:25:10,097 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0019: Stopped Driver service with driver-name = h2
13:25:10,111 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0019: Host default-host stopping
13:25:10,113 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0008: Undertow HTTP listener default suspending
13:25:10,124 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:28080
13:25:10,132 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0004: Undertow 1.4.0.Final stopping
13:25:10,205 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 110ms
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   StoryServiceIntegrationTest.getFilteredStoriesByDateWithInitialDateAfterFinalDate Expected exception: javax.ejb.EJBTransactionRolledbackException
[ERROR]   StoryServiceIntegrationTest.getFilteredStoriesByDateWithOnlyFinalDate Expected exception: javax.ejb.EJBTransactionRolledbackException
[ERROR]   StoryServiceIntegrationTest.getFilteredStoriesByDateWithOnlyInitialDate Expected exception: javax.ejb.EJBTransactionRolledbackException
[ERROR]   StoryServiceIntegrationTest.testGetStoryById_NotFound Expected exception: es.uvigo.esei.microstories.services.exceptions.EntityNotFoundException
[ERROR]   StoryServiceIntegrationTest.testGetTop2ReadStoriesLastMonthByGenre_NoStories Test failed in 2 cases. 
STORY expected to be empty, but was <10>.
STORY_THEMES expected to be empty, but was <16>.

[ERROR]   StoryServiceIntegrationTest.testSearchStories_InvalidPage Expected exception: javax.ejb.EJBTransactionRolledbackException
[ERROR]   StoryServiceIntegrationTest.testSearchStories_InvalidSize Expected exception: javax.ejb.EJBTransactionRolledbackException
[ERROR]   StoryServiceIntegrationTest.testSearchStories_InvalidText Expected exception: javax.ejb.EJBTransactionRolledbackException
[ERROR] Errors: 
[ERROR]   StoryServiceIntegrationTest.getFilteredStoriesByDate » DBUnitDataSetHandling F...
[ERROR]   StoryServiceIntegrationTest.getFilteredStoriesByGenre » DBUnitDataSetHandling ...
[ERROR]   StoryServiceIntegrationTest.getFilteredStoriesByTheme » DBUnitDataSetHandling ...
[ERROR]   StoryServiceIntegrationTest.testGetRecentStories » DBUnitDataSetHandling Faile...
[ERROR]   StoryServiceIntegrationTest.testGetStoryById » DBUnitDataSetHandling Failed wh...
[ERROR]   StoryServiceIntegrationTest.testGetTop2ReadStoriesLastMonthByGenre » DBUnitDataSetHandling
[ERROR]   StoryServiceIntegrationTest.testSearchStories » DBUnitDataSetHandling Failed w...
[INFO] 
[ERROR] Tests run: 15, Failures: 8, Errors: 7, Skipped: 0
[INFO] 
[ERROR] There are test failures.

Please refer to /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[JENKINS] Recording test results
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) @ dgss2526-teamA-microstories-service ---
[INFO] Loading execution data file /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/jacoco.exec
[INFO] Analyzed bundle 'Service' with 4 classes
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ dgss2526-teamA-microstories-service ---
[INFO] Building jar: /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT.jar
[INFO] 
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ dgss2526-teamA-microstories-service >>>
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) @ dgss2526-teamA-microstories-service ---
[INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/var/lib/jenkins/workspace/microstories-2526-teamA/service/target/jacoco.exec,classdumpdir=/var/lib/jenkins/workspace/microstories-2526-teamA/target/classes
[WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ dgss2526-teamA-microstories-service <<<
[INFO] 
[INFO] 
[INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ dgss2526-teamA-microstories-service ---
[INFO] Building jar: /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-sources.jar
[INFO] 
[INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadocs) @ dgss2526-teamA-microstories-service ---
[INFO] 
Loading source files for package es.uvigo.esei.microstories.services.exceptions...
Loading source files for package es.uvigo.esei.microstories.services...
Loading source files for package es.uvigo.esei.microstories.dtos...
Loading source files for package es.uvigo.esei.microstories.mappers...
Constructing Javadoc information...
Standard Doclet version 1.8.0_144
Building tree for all the packages and classes...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/exceptions/EntityNotFoundException.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/StoryService.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/dtos/StoryResponseDto.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/mappers/StoryMapper.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/overview-frame.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/dtos/package-frame.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/dtos/package-summary.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/dtos/package-tree.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/mappers/package-frame.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/mappers/package-summary.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/mappers/package-tree.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/package-frame.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/package-summary.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/package-tree.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/exceptions/package-frame.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/exceptions/package-summary.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/exceptions/package-tree.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/constant-values.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/serialized-form.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/exceptions/class-use/EntityNotFoundException.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/class-use/StoryService.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/dtos/class-use/StoryResponseDto.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/mappers/class-use/StoryMapper.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/dtos/package-use.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/mappers/package-use.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/package-use.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/es/uvigo/esei/microstories/services/exceptions/package-use.html...
Building index for all the packages and classes...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/overview-tree.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/index-all.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/deprecated-list.html...
Building index for all classes...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/allclasses-frame.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/allclasses-noframe.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/index.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/overview-summary.html...
Generating /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/apidocs/help-doc.html...
4 warnings
[WARNING] Javadoc Warnings
[WARNING] /var/lib/jenkins/workspace/microstories-2526-teamA/service/src/main/java/es/uvigo/esei/microstories/services/StoryService.java:50: warning: no @param for text
[WARNING] public List<StoryResponseDto> searchStoriesByText(String text, int page, int size) {
[WARNING] ^
[WARNING] /var/lib/jenkins/workspace/microstories-2526-teamA/service/src/main/java/es/uvigo/esei/microstories/services/StoryService.java:50: warning: no @param for page
[WARNING] public List<StoryResponseDto> searchStoriesByText(String text, int page, int size) {
[WARNING] ^
[WARNING] /var/lib/jenkins/workspace/microstories-2526-teamA/service/src/main/java/es/uvigo/esei/microstories/services/StoryService.java:50: warning: no @param for size
[WARNING] public List<StoryResponseDto> searchStoriesByText(String text, int page, int size) {
[WARNING] ^
[WARNING] /var/lib/jenkins/workspace/microstories-2526-teamA/service/src/main/java/es/uvigo/esei/microstories/services/StoryService.java:50: warning: no @return
[WARNING] public List<StoryResponseDto> searchStoriesByText(String text, int page, int size) {
[WARNING] ^
[INFO] Building jar: /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:test-jar (default) @ dgss2526-teamA-microstories-service ---
[INFO] Building jar: /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-tests.jar
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-integration-test) @ dgss2526-teamA-microstories-service ---
[INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/var/lib/jenkins/workspace/microstories-2526-teamA/service/target/jacoco.exec,classdumpdir=/var/lib/jenkins/workspace/microstories-2526-teamA/target/classes
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.9:report (post-integration-test) @ dgss2526-teamA-microstories-service ---
[INFO] Loading execution data file /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/jacoco.exec
[INFO] Analyzed bundle 'Service' with 4 classes
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ dgss2526-teamA-microstories-service ---
[INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT.jar to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-service/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT.jar
[INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/service/pom.xml to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-service/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT.pom
[INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-sources.jar to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-service/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-sources.jar
[INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-javadoc.jar to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-service/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-javadoc.jar
[INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/service/target/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-tests.jar to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-service/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-service-0.1.0-SNAPSHOT-tests.jar