· 6 years ago · Mar 08, 2019, 07:18 AM
1INFO XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [test-context.xml]
2INFO GenericApplicationContext - Refreshing org.springframework.context.support.GenericApplicationContext@651f73: startup date [Sun Oct 28 12:27:58 EET 2012]; root of context hierarchy
3INFO DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@192bb70: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,visitorServiceImpl,hibernateVisitorDao,visitorController,indexController,exporter,jmxStatistic,em,h2DataSource,postgreDataSource,txManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
4INFO LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'JpaPersistenceUnit'
5INFO Version - HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
6INFO Version - HHH000412: Hibernate Core {4.1.6.Final}
7INFO Environment - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.show_sql=true, hibernate.bytecode.use_reflection_optimizer=false, hibernate.format_sql=true, hibernate.hbm2ddl.auto=create-drop, hibernate.use_sql_comments=true}
8INFO Environment - HHH000021: Bytecode provider name : javassist
9INFO Ejb3Configuration - HHH000204: Processing PersistenceUnitInfo [
10 name: JpaPersistenceUnit
11 ...]
12INFO ConnectionProviderInitiator - HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
13INFO Dialect - HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
14INFO LobCreatorBuilder - HHH000423: Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
15INFO TransactionFactoryInitiator - HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory
16INFO ASTQueryTranslatorFactory - HHH000397: Using ASTQueryTranslatorFactory
17INFO SchemaExport - HHH000227: Running hbm2ddl schema export
18Hibernate:
19 alter table comment
20 drop constraint FK38A5EE5F224BAFED
21Hibernate:
22 drop table if exists comment cascade
23Hibernate:
24 drop table if exists spot cascade
25Hibernate:
26 drop table if exists visitor cascade
27Hibernate:
28 drop sequence hibernate_sequence
29Hibernate:
30 create table comment (
31 id int8 not null,
32 comment varchar(255),
33 grade int8 not null,
34 language varchar(255),
35 author_id int8,
36 primary key (id)
37 )
38Hibernate:
39 create table spot (
40 id int8 not null,
41 disabled boolean not null,
42 latitude numeric(19, 2),
43 longitude numeric(19, 2),
44 name varchar(255),
45 primary key (id)
46 )
47Hibernate:
48 create table visitor (
49 id int8 not null,
50 latitude numeric(19, 2),
51 longitude numeric(19, 2),
52 name varchar(255),
53 password_hash varchar(255),
54 password_salt varchar(255),
55 primary key (id)
56 )
57Hibernate:
58 alter table comment
59 add constraint FK38A5EE5F224BAFED
60 foreign key (author_id)
61 references visitor
62Hibernate:
63 create sequence hibernate_sequence
64INFO SchemaExport - HHH000230: Schema export complete
65INFO MBeanExporter - Registering beans for JMX exposure on startup
66INFO MBeanExporter - Located MBean 'name.dargiri.oaxis.monitoring:name=statistic': registering with JMX server as MBean [name.dargiri.oaxis.monitoring:name=statistic]
67WARN Cglib2AopProxy - Unable to proxy method [public final void name.dargiri.oaxis.dbtest.SpringHibernateAwareDBTestCase.setUp() throws java.lang.Exception] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
68INFO TransactionalTestExecutionListener - Began transaction (1): transaction manager [org.springframework.orm.jpa.JpaTransactionManager@1f26637]; rollback [true]
69WARN AbstractTableMetaData - Potential problem found: The configured data type factory 'class org.dbunit.dataset.datatype.DefaultDataTypeFactory' might cause problems with the current database 'PostgreSQL' (e.g. some datatypes may not be supported properly). In rare cases you might see this message because the list of supported database products is incomplete (list=[derby]). If so please request a java-class update via the forums.If you are using your own IDataTypeFactory extending DefaultDataTypeFactory, ensure that you override getValidDbProducts() to specify the supported database products.
70Hibernate:
71 select
72 nextval ('hibernate_sequence')
73Hibernate:
74 /* insert name.dargiri.oaxis.datamodel.Visitor
75 */ insert
76 into
77 visitor
78 (latitude, longitude, name, password_hash, password_salt, id)
79 values
80 (?, ?, ?, ?, ?, ?)
81WARN AbstractTableMetaData - Potential problem found: The configured data type factory 'class org.dbunit.dataset.datatype.DefaultDataTypeFactory' might cause problems with the current database 'PostgreSQL' (e.g. some datatypes may not be supported properly). In rare cases you might see this message because the list of supported database products is incomplete (list=[derby]). If so please request a java-class update via the forums.If you are using your own IDataTypeFactory extending DefaultDataTypeFactory, ensure that you override getValidDbProducts() to specify the supported database products.
82ERROR DbUnitAssert - junit.framework.ComparisonFailure: row count (table=VISITOR) expected:<[2]> but was:<[1]>
83INFO TransactionalTestExecutionListener - Rolled back transaction after test execution for test context [[TestContext@11b8618 testClass = HibernateVisitorDaoTest, testInstance = name.dargiri.oaxis.dao.HibernateVisitorDaoTest@aff9, testMethod = registerExample@HibernateVisitorDaoTest, testException = junit.framework.ComparisonFailure: row count (table=VISITOR) expected:<[2]> but was:<[1]>, mergedContextConfiguration = [MergedContextConfiguration@1210a97 testClass = HibernateVisitorDaoTest, locations = '{classpath:/test-context.xml}', classes = '{}', activeProfiles = '{}', contextLoader = 'org.springframework.test.context.support.DelegatingSmartContextLoader']]]
84
85junit.framework.ComparisonFailure: row count (table=VISITOR)
86Expected :2
87Actual :1
88 <Click to see difference>
89 at org.dbunit.assertion.JUnitFailureFactory.createFailure(JUnitFailureFactory.java:39)
90 at org.dbunit.assertion.DefaultFailureHandler.createFailure(DefaultFailureHandler.java:105)
91 at org.dbunit.assertion.DbUnitAssert.assertEquals(DbUnitAssert.java:370)
92 at org.dbunit.assertion.DbUnitAssert.assertEquals(DbUnitAssert.java:253)
93 at org.dbunit.assertion.DbUnitAssert.assertEquals(DbUnitAssert.java:205)
94 at org.dbunit.Assertion.assertEquals(Assertion.java:104)
95 at name.dargiri.oaxis.dao.HibernateVisitorDaoTest.registerExample(HibernateVisitorDaoTest.java:35)
96 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
97 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
98 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
99 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
100 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
101 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
102 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
103 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
104 at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
105 at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
106 at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
107 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
108 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
109 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
110 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
111 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
112 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
113 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
114 at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
115 at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
116 at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
117 at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
118 at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
119 at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)
120 at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)
121 at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
122 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
123 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
124 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
125
126INFO GenericApplicationContext - Closing org.springframework.context.support.GenericApplicationContext@651f73: startup date [Sun Oct 28 12:27:58 EET 2012]; root of context hierarchy
127INFO DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@192bb70: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,visitorServiceImpl,hibernateVisitorDao,visitorController,indexController,exporter,jmxStatistic,em,h2DataSource,postgreDataSource,txManager,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy
128INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
129INFO LocalContainerEntityManagerFactoryBean - Closing JPA EntityManagerFactory for persistence unit 'JpaPersistenceUnit'
130INFO SchemaExport - HHH000227: Running hbm2ddl schema export
131Hibernate:
132 alter table comment
133 drop constraint FK38A5EE5F224BAFED
134Hibernate:
135 drop table if exists comment cascade
136Hibernate:
137 drop table if exists spot cascade
138Hibernate:
139 drop table if exists visitor cascade
140Hibernate:
141 drop sequence hibernate_sequence
142INFO SchemaExport - HHH000230: Schema export complete
143
144Process finished with exit code 255