You are on page 1of 9

[INFO] Scanning for projects...

[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bookstore-example-with-mvc 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ bookstore-example-with-
mvc ---
[INFO] Deleting C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bookstore-
example-with-mvc ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 316 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ bookstore-
example-with-mvc ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 60 source files to C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\classes
[INFO] /C:/Users/cvazquel/Documents/GitHub/LOGANALYZER-
SpringLogsGenerator/src/main/java/com/example/bookstore/web/view/OrderExcelView.jav
a: C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\src\main\java\com\example\bookstore\web\view\OrderExcelView.jav
a uses or overrides a deprecated API.
[INFO] /C:/Users/cvazquel/Documents/GitHub/LOGANALYZER-
SpringLogsGenerator/src/main/java/com/example/bookstore/web/view/OrderExcelView.jav
a: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @
bookstore-example-with-mvc ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @
bookstore-example-with-mvc ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ bookstore-example-
with-mvc ---
[INFO] Surefire report directory: C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.example.bookstore.basic.BasicUnitTest
Starting testDeleteQuery() method test...
2017-12-28 13:58:23.069 [main] INFO com.example.bookstore.basic.BasicUnitTest -
Database can't be null.
2017-12-28 13:58:23.074 [main] INFO com.example.bookstore.basic.BasicUnitTest -
Database must contain any target value.
2017-12-28 13:58:23.074 [main] INFO com.example.bookstore.basic.BasicUnitTest -
After deleting info, database size have to be 19.
2017-12-28 13:58:23.074 [main] INFO com.example.bookstore.basic.BasicUnitTest -
Database can't contain target value.
testDeleteQuery() method test finished...
Starting testAddQuery() method test...
2017-12-28 13:58:23.075 [main] INFO com.example.bookstore.basic.BasicUnitTest -
Database can't contain target value.
2017-12-28 13:58:23.075 [main] INFO com.example.bookstore.basic.BasicUnitTest -
After adding info, database size have to be 21.
2017-12-28 13:58:23.076 [main] INFO com.example.bookstore.basic.BasicUnitTest -
Database must contain target value.
testAddQuery() method test finished...
Starting testFindQuery() method test...
2017-12-28 13:58:23.076 [main] INFO com.example.bookstore.basic.BasicUnitTest -
Database must find target value.
testFindQuery() method test finished...
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.888 sec
Running com.example.bookstore.repository.JpaBookRepositoryTest
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper
- Loaded default TestExecutionListener class names from location [META-
INF/spring.factories]:
[org.springframework.test.context.web.ServletTestExecutionListener,
org.springframework.test.context.support.DependencyInjectionTestExecutionListener,
org.springframework.test.context.support.DirtiesContextTestExecutionListener,
org.springframework.test.context.transaction.TransactionalTestExecutionListener,
org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper
- Using TestExecutionListeners:
[org.springframework.test.context.web.ServletTestExecutionListener@5136d012,
org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5
939a379,
org.springframework.test.context.support.DirtiesContextTestExecutionListener@e1de81
7,
org.springframework.test.context.transaction.TransactionalTestExecutionListener@521
02734,
org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3541cb24]
[main] INFO org.springframework.context.support.GenericApplicationContext -
Refreshing org.springframework.context.support.GenericApplicationContext@732c2a62:
startup date [Thu Dec 28 13:58:23 CET 2017]; root of context hierarchy
[main] INFO
org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader -
Skipping bean definition for
[BeanMethod:name=accountRepository,declaringClass=com.example.bookstore.service.Acc
ountServiceTest$AccountServiceTestContextConfiguration]: a definition for bean
'accountRepository' already exists. This top-level bean definition is considered as
an override.
[main] INFO org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseFactory -
Creating embedded database 'testdb'
[main] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean -
Building JPA container EntityManagerFactory for persistence unit 'bookstore'
2017-12-28 13:58:24 [main] INFO org.hibernate.annotations.common.Version -
HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
2017-12-28 13:58:24 [main] INFO org.hibernate.Version - HHH000412: Hibernate Core
{4.1.9.Final}
2017-12-28 13:58:24 [main] INFO org.hibernate.cfg.Environment - HHH000206:
hibernate.properties not found
2017-12-28 13:58:24 [main] INFO org.hibernate.cfg.Environment - HHH000021:
Bytecode provider name : javassist
2017-12-28 13:58:24 [main] INFO org.hibernate.ejb.Ejb3Configuration - HHH000204:
Processing PersistenceUnitInfo [
name: bookstore
...]
2017-12-28 13:58:25 [main] INFO
org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator -
HHH000130: Instantiating explicit connection provider:
org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
2017-12-28 13:58:25 [main] INFO org.hibernate.dialect.Dialect - HHH000400: Using
dialect: org.hibernate.dialect.H2Dialect
2017-12-28 13:58:25 [main] INFO
org.hibernate.engine.transaction.internal.TransactionFactoryInitiator - HHH000268:
Transaction strategy:
org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory
2017-12-28 13:58:25 [main] INFO
org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory - HHH000397: Using
ASTQueryTranslatorFactory
2017-12-28 13:58:25 [main] INFO org.hibernate.cache.spi.UpdateTimestampsCache -
HHH000250: Starting update timestamps cache at region:
org.hibernate.cache.spi.UpdateTimestampsCache
2017-12-28 13:58:25 [main] WARN
org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory - HHH020003: Could not
find a specific ehcache configuration for cache named
[org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.
2017-12-28 13:58:25 [main] INFO org.hibernate.cache.internal.StandardQueryCache -
HHH000248: Starting query cache at region:
org.hibernate.cache.internal.StandardQueryCache
2017-12-28 13:58:25 [main] WARN
org.hibernate.cache.ehcache.AbstractEhcacheRegionFactory - HHH020003: Could not
find a specific ehcache configuration for cache named
[org.hibernate.cache.internal.StandardQueryCache]; using defaults.
2017-12-28 13:58:25 [main] INFO org.hibernate.validator.internal.util.Version -
HV000001: Hibernate Validator 4.3.0.Final
2017-12-28 13:58:25 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate -
HHH000228: Running hbm2ddl schema update
2017-12-28 13:58:25 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate -
HHH000102: Fetching database metadata
2017-12-28 13:58:25 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate -
HHH000396: Updating schema
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Account
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Account_Role
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Book
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Category
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: OrderDetail
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Permission
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Role
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Role_Permission
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: orders
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Account
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Account_Role
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Book
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Category
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: OrderDetail
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Permission
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Role
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: Role_Permission
2017-12-28 13:58:25 [main] INFO java.sql.DatabaseMetaData - HHH000262: Table not
found: orders
2017-12-28 13:58:25 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate -
HHH000232: Schema update complete
[main] INFO org.springframework.test.context.transaction.TransactionContext - Began
transaction (1) for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@a2341c6, testMethod =
testStoreBook@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]]; transaction manager
[org.springframework.orm.jpa.JpaTransactionManager@3e3315d9]; rollback [true]
Starting testStoreBook() method test...
2017-12-28 13:58:26.606 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - New book stored:
com.example.bookstore.domain.Book@6d6bbd35[ title=John Doe's life
author=JohnDoe isbn=1234567890123 ]
2017-12-28 13:58:26.609 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Author's book must be
equal than author's stored book.
2017-12-28 13:58:26.610 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Description of book must
be equal than description of stored book.
2017-12-28 13:58:26.612 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Isbn of book must be equal
than isbn of stored book.
testStoreBook() method test finished...
[main] INFO org.springframework.test.context.transaction.TransactionContext -
Rolled back transaction for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@a2341c6, testMethod =
testStoreBook@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]].
[main] INFO org.springframework.test.context.transaction.TransactionContext - Began
transaction (1) for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@aaa0f76, testMethod =
testFindRandom@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]]; transaction manager
[org.springframework.orm.jpa.JpaTransactionManager@3e3315d9]; rollback [true]
Starting testFindRandom() method test...
2017-12-28 13:58:26.743 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Random books found.
testFindRandom() method test finished...
[main] INFO org.springframework.test.context.transaction.TransactionContext -
Rolled back transaction for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@aaa0f76, testMethod =
testFindRandom@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]].
[main] INFO org.springframework.test.context.transaction.TransactionContext - Began
transaction (1) for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@2fcd7d3f, testMethod =
testFindById@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]]; transaction manager
[org.springframework.orm.jpa.JpaTransactionManager@3e3315d9]; rollback [true]
Starting testFindById() method test...
2017-12-28 13:58:26.752 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - After repository has been
initialized, it must find the target value.
2017-12-28 13:58:26.752 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Author found.
2017-12-28 13:58:26.752 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Description found.
2017-12-28 13:58:26.752 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Isbn found.
testFindById() method test finished...
[main] INFO org.springframework.test.context.transaction.TransactionContext -
Rolled back transaction for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@2fcd7d3f, testMethod =
testFindById@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]].
[main] INFO org.springframework.test.context.transaction.TransactionContext - Began
transaction (1) for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@265bd546, testMethod =
testFindByCategory@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]]; transaction manager
[org.springframework.orm.jpa.JpaTransactionManager@3e3315d9]; rollback [true]
Starting testFindByCategory() method test...
2017-12-28 13:58:26.785 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Resource found:
com.example.bookstore.domain.Book@6f1a16fe[ title=The Selfish Gene: 30th
Anniversary Edition author=Richard Dawkins isbn=9780199291151 ]
testFindByCategory() method test finished...
[main] INFO org.springframework.test.context.transaction.TransactionContext -
Rolled back transaction for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@265bd546, testMethod =
testFindByCategory@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]].
[main] INFO org.springframework.test.context.transaction.TransactionContext - Began
transaction (1) for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@53c6f96d, testMethod =
testFindBooks@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]]; transaction manager
[org.springframework.orm.jpa.JpaTransactionManager@3e3315d9]; rollback [true]
Starting testFindBooks() method test...
2017-12-28 13:58:26.851 [main] INFO
com.example.bookstore.repository.JpaBookRepositoryTest - Concrete book found:
com.example.bookstore.domain.Book@5ad5be4a[ title=The Selfish Gene: 30th
Anniversary Edition author=Richard Dawkins isbn=9780199291151 ]
testFindBooks() method test finished...
[main] INFO org.springframework.test.context.transaction.TransactionContext -
Rolled back transaction for test context [DefaultTestContext@2d3ef181 testClass =
JpaBookRepositoryTest, testInstance =
com.example.bookstore.repository.JpaBookRepositoryTest@53c6f96d, testMethod =
testFindBooks@JpaBookRepositoryTest, testException = [null],
mergedContextConfiguration = [MergedContextConfiguration@6e4c0d8c testClass =
JpaBookRepositoryTest, locations = '{}', classes = '{class
com.example.bookstore.config.InfrastructureContextConfiguration, class
com.example.bookstore.config.TestDataContextConfiguration}',
contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations =
'{}', propertySourceProperties = '{}', contextLoader =
'org.springframework.test.context.support.DelegatingSmartContextLoader', parent =
[null]]].
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.737 sec
Running com.example.bookstore.service.AccountServiceTest
[main] INFO org.springframework.test.context.support.AbstractContextLoader - Could
not detect default resource locations for test class
[com.example.bookstore.service.AccountServiceTest]: no resource found for suffixes
{-context.xml}.
[main] INFO
org.springframework.test.context.support.AbstractDelegatingSmartContextLoader -
AnnotationConfigContextLoader detected default configuration classes for context
configuration [ContextConfigurationAttributes@71926a36 declaringClass =
'com.example.bookstore.service.AccountServiceTest', classes = '{class
com.example.bookstore.service.AccountServiceTest$AccountServiceTestContextConfigura
tion}', locations = '{}', inheritLocations = true, initializers = '{}',
inheritInitializers = true, name = [null], contextLoaderClass =
'org.springframework.test.context.ContextLoader'].
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper
- Loaded default TestExecutionListener class names from location [META-
INF/spring.factories]:
[org.springframework.test.context.web.ServletTestExecutionListener,
org.springframework.test.context.support.DependencyInjectionTestExecutionListener,
org.springframework.test.context.support.DirtiesContextTestExecutionListener,
org.springframework.test.context.transaction.TransactionalTestExecutionListener,
org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper
- Using TestExecutionListeners:
[org.springframework.test.context.web.ServletTestExecutionListener@4c5228e7,
org.springframework.test.context.support.DependencyInjectionTestExecutionListener@3
8e7ed69,
org.springframework.test.context.support.DirtiesContextTestExecutionListener@806996
,
org.springframework.test.context.transaction.TransactionalTestExecutionListener@78b
612c6,
org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@257e0827]
[main] INFO org.springframework.context.support.GenericApplicationContext -
Refreshing org.springframework.context.support.GenericApplicationContext@22752544:
startup date [Thu Dec 28 13:58:26 CET 2017]; root of context hierarchy
Starting testLoginSuccess() method test...
2017-12-28 13:58:27.140 [main] INFO
com.example.bookstore.service.AccountServiceTest - John login success.
2017-12-28 13:58:27.140 [main] INFO
com.example.bookstore.service.AccountServiceTest - Doe login success.
testLoginSuccess() method test finished...
Starting testLoginFailure() method test...
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.293 sec
Running com.example.bookstore.web.controller.LoginControllerTest
[main] INFO org.springframework.test.context.support.AbstractContextLoader - Could
not detect default resource locations for test class
[com.example.bookstore.web.controller.LoginControllerTest]: no resource found for
suffixes {-context.xml}.
[main] INFO
org.springframework.test.context.support.AbstractDelegatingSmartContextLoader -
AnnotationConfigContextLoader detected default configuration classes for context
configuration [ContextConfigurationAttributes@45f756e6 declaringClass =
'com.example.bookstore.web.controller.LoginControllerTest', classes = '{class
com.example.bookstore.web.controller.LoginControllerTest$LoginControllerTestConfigu
ration}', locations = '{}', inheritLocations = true, initializers = '{}',
inheritInitializers = true, name = [null], contextLoaderClass =
'org.springframework.test.context.ContextLoader'].
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper
- Loaded default TestExecutionListener class names from location [META-
INF/spring.factories]:
[org.springframework.test.context.web.ServletTestExecutionListener,
org.springframework.test.context.support.DependencyInjectionTestExecutionListener,
org.springframework.test.context.support.DirtiesContextTestExecutionListener,
org.springframework.test.context.transaction.TransactionalTestExecutionListener,
org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
[main] INFO org.springframework.test.context.support.DefaultTestContextBootstrapper
- Using TestExecutionListeners:
[org.springframework.test.context.web.ServletTestExecutionListener@4fdca00a,
org.springframework.test.context.support.DependencyInjectionTestExecutionListener@5
13b52af,
org.springframework.test.context.support.DirtiesContextTestExecutionListener@5a8c93
,
org.springframework.test.context.transaction.TransactionalTestExecutionListener@3be
d3315,
org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@119b0892]
[main] INFO org.springframework.context.support.GenericApplicationContext -
Refreshing org.springframework.context.support.GenericApplicationContext@1a3e8e24:
startup date [Thu Dec 28 13:58:27 CET 2017]; root of context hierarchy
Starting testHandleLogin() method test...
2017-12-28 13:58:27.238 [main] INFO
com.example.bookstore.web.controller.LoginControllerTest -
com.example.bookstore.domain.Account@60a19573 can't be null.
2017-12-28 13:58:27.238 [main] INFO
com.example.bookstore.web.controller.LoginControllerTest - John first name must be
John
2017-12-28 13:58:27.239 [main] INFO
com.example.bookstore.web.controller.LoginControllerTest - Doe first name must be
Doe
2017-12-28 13:58:27.240 [main] INFO
com.example.bookstore.web.controller.LoginControllerTest - mockHttpSession is not
null as expected.
testHandleLogin() method test finished...
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.089 sec
[Thread-5] INFO org.springframework.context.support.GenericApplicationContext -
Closing org.springframework.context.support.GenericApplicationContext@1a3e8e24:
startup date [Thu Dec 28 13:58:27 CET 2017]; root of context hierarchy
[Thread-3] INFO org.springframework.context.support.GenericApplicationContext -
Closing org.springframework.context.support.GenericApplicationContext@732c2a62:
startup date [Thu Dec 28 13:58:23 CET 2017]; root of context hierarchy
[Thread-4] INFO org.springframework.context.support.GenericApplicationContext -
Closing org.springframework.context.support.GenericApplicationContext@22752544:
startup date [Thu Dec 28 13:58:26 CET 2017]; root of context hierarchy
[Thread-3] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean
- Closing JPA EntityManagerFactory for persistence unit 'bookstore'
Results :

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-war-plugin:2.3:war (default-war) @ bookstore-example-with-mvc ---
[INFO] Packaging webapp
[INFO] Assembling webapp [bookstore-example-with-mvc] in
[C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\bookstore-example-with-mvc-1.0]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\src\main\webapp]
[INFO] Building jar: C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\bookstore-example-with-mvc-1.0\WEB-INF\lib\bookstore-
example-with-mvc-1.0.jar
[INFO] Webapp assembled in [2526 msecs]
[INFO] Building war: C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\bookstore-example-with-mvc-1.0.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ bookstore-example-
with-mvc ---
[INFO] Installing C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\target\bookstore-example-with-mvc-1.0.war to
C:\Users\cvazquel\.m2\repository\com\example\springmvc\bookstore-example-with-
mvc\1.0\bookstore-example-with-mvc-1.0.war
[INFO] Installing C:\Users\cvazquel\Documents\GitHub\LOGANALYZER-
SpringLogsGenerator\pom.xml to
C:\Users\cvazquel\.m2\repository\com\example\springmvc\bookstore-example-with-
mvc\1.0\bookstore-example-with-mvc-1.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.207 s
[INFO] Finished at: 2017-12-28T13:58:31+01:00
[INFO] Final Memory: 30M/270M
[INFO] ------------------------------------------------------------------------

You might also like