Chapter 2 Test Output
Ran "mvn test" from C:\JavaEE6\Chapter02
After a ton of download messages, the test ran:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.javaee6.chapter02.BookTest
[EL Info]: 2009-09-26 13:05:58.546--ServerSession(1012673)--Thread(Thread[main,5
,main])--property eclipselink.jdbc.user is deprecated, property javax.persistenc
e.jdbc.user should be used instead.
[EL Info]: 2009-09-26 13:05:58.562--ServerSession(1012673)--Thread(Thread[main,5
,main])--property eclipselink.jdbc.driver is deprecated, property javax.persiste
nce.jdbc.driver should be used instead.
[EL Info]: 2009-09-26 13:05:58.562--ServerSession(1012673)--Thread(Thread[main,5
,main])--property eclipselink.jdbc.url is deprecated, property javax.persistence
.jdbc.url should be used instead.
[EL Info]: 2009-09-26 13:05:58.562--ServerSession(1012673)--Thread(Thread[main,5
,main])--property eclipselink.jdbc.password is deprecated, property javax.persis
tence.jdbc.password should be used instead.
[EL Config]: 2009-09-26 13:05:58.734--ServerSession(1012673)--Thread(Thread[main
,5,main])--The access type for the persistent class [class com.apress.javaee6.ch
apter02.Book] is set to [FIELD].
[EL Config]: 2009-09-26 13:05:58.734--ServerSession(1012673)--Thread(Thread[main
,5,main])--The alias name for the entity class [class com.apress.javaee6.chapter
02.Book] is being defaulted to: Book.
[EL Config]: 2009-09-26 13:05:58.765--ServerSession(1012673)--Thread(Thread[main
,5,main])--The table name for entity [class com.apress.javaee6.chapter02.Book] i
s being defaulted to: BOOK.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field id] is being defaulted to: ID.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field title] is being defaulted to: TITL
E.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field price] is being defaulted to: PRIC
E.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field illustrations] is being defaulted
to: ILLUSTRATIONS.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field description] is being defaulted to
: DESCRIPTION.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field isbn] is being defaulted to: ISBN.
[EL Config]: 2009-09-26 13:05:58.796--ServerSession(1012673)--Thread(Thread[main
,5,main])--The column name for element [field nbOfPage] is being defaulted to: N
BOFPAGE.
[EL Config]: 2009-09-26 13:05:58.843--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The access type for the persistent class [class com.apress.javaee6.c
hapter02.Book] is set to [FIELD].
[EL Config]: 2009-09-26 13:05:58.843--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The alias name for the entity class [class com.apress.javaee6.chapte
r02.Book] is being defaulted to: Book.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The table name for entity [class com.apress.javaee6.chapter02.Book]
is being defaulted to: BOOK.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field id] is being defaulted to: ID.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field title] is being defaulted to: TIT
LE.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field price] is being defaulted to: PRI
CE.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field illustrations] is being defaulted
to: ILLUSTRATIONS.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field description] is being defaulted t
o: DESCRIPTION.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field isbn] is being defaulted to: ISBN
.
[EL Config]: 2009-09-26 13:05:58.875--ServerSession(21762307)--Thread(Thread[mai
n,5,main])--The column name for element [field nbOfPage] is being defaulted to:
NBOFPAGE.
[EL Info]: 2009-09-26 13:05:59.484--ServerSession(21762307)--Thread(Thread[main,
5,main])--EclipseLink, version: Eclipse Persistence Services - 2.0.0.v20090713-r
4647
[EL Config]: 2009-09-26 13:05:59.5--ServerSession(21762307)--Connection(24569170
)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
platform=>DerbyPlatform
user name=> "APP"
datasource URL=> "jdbc:derby:memory:chapter02DB;create=true"
))
[EL Config]: 2009-09-26 13:06:00.578--ServerSession(21762307)--Connection(251048
91)--Thread(Thread[main,5,main])--Connected: jdbc:derby:memory:chapter02DB
User: APP
Database: Apache Derby Version: 10.5.1.1 - (764942)
Driver: Apache Derby Embedded JDBC Driver Version: 10.5.1.1 - (764942)
[EL Config]: 2009-09-26 13:06:00.578--ServerSession(21762307)--Connection(244894
46)--Thread(Thread[main,5,main])--connecting(DatabaseLogin(
platform=>DerbyPlatform
user name=> "APP"
datasource URL=> "jdbc:derby:memory:chapter02DB;create=true"
))
[EL Config]: 2009-09-26 13:06:00.578--ServerSession(21762307)--Connection(322392
0)--Thread(Thread[main,5,main])--Connected: jdbc:derby:memory:chapter02DB
User: APP
Database: Apache Derby Version: 10.5.1.1 - (764942)
Driver: Apache Derby Embedded JDBC Driver Version: 10.5.1.1 - (764942)
[EL Info]: 2009-09-26 13:06:01.031--ServerSession(21762307)--Thread(Thread[main,
5,main])--file:/C:/JavaEE6/Chapter02/target/test-classes/-chapter02PU login succ
essful
[EL Fine]: 2009-09-26 13:06:01.046--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--DROP TABLE BOOK
[EL Fine]: 2009-09-26 13:06:01.187--ServerSession(21762307)--Thread(Thread[main,
5,main])--VALUES(1)
[EL Warning]: 2009-09-26 13:06:01.296--ServerSession(21762307)--Thread(Thread[ma
in,5,main])--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.0.0.
v20090713-r4647): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLSyntaxErrorException: 'DROP TABLE' cannot be per
formed on 'BOOK' because it does not exist.
Error Code: 30000
Call: DROP TABLE BOOK
Query: DataModifyQuery(sql="DROP TABLE BOOK")
[EL Fine]: 2009-09-26 13:06:01.296--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--CREATE TABLE BOOK (ID BIGINT NOT NULL, TITLE VARC
HAR(255) NOT NULL, PRICE FLOAT, ILLUSTRATIONS SMALLINT DEFAULT 0, DESCRIPTION VA
RCHAR(2000), ISBN VARCHAR(255), NBOFPAGE INTEGER, PRIMARY KEY (ID))
[EL Fine]: 2009-09-26 13:06:01.359--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--CREATE TABLE SEQUENCE (SEQ_NAME VARCHAR(50) NOT N
ULL, SEQ_COUNT DECIMAL(15), PRIMARY KEY (SEQ_NAME))
[EL Fine]: 2009-09-26 13:06:01.375--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--DELETE FROM SEQUENCE WHERE SEQ_NAME = SEQ_GEN
[EL Fine]: 2009-09-26 13:06:01.453--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--SELECT * FROM SEQUENCE WHERE SEQ_NAME = SEQ_GEN
[EL Fine]: 2009-09-26 13:06:01.468--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--INSERT INTO SEQUENCE(SEQ_NAME, SEQ_COUNT) values
(SEQ_GEN, 0)
[EL Fine]: 2009-09-26 13:06:01.515--ClientSession(30568553)--Connection(3223920)
--Thread(Thread[main,5,main])--UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + ? WHE
RE SEQ_NAME = ?
bind => [50, SEQ_GEN]
[EL Fine]: 2009-09-26 13:06:01.531--ClientSession(30568553)--Connection(3223920)
--Thread(Thread[main,5,main])--SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = ?
bind => [SEQ_GEN]
[EL Fine]: 2009-09-26 13:06:01.562--ClientSession(30568553)--Connection(3223920)
--Thread(Thread[main,5,main])--INSERT INTO BOOK (ID, TITLE, PRICE, ILLUSTRATIONS
, DESCRIPTION, ISBN, NBOFPAGE) VALUES (?, ?, ?, ?, ?, ?, ?)
bind => [1, The Hitchhikers Guide to the Galaxy, 12.5, false, Science fi
ction comedy book, 1-84023-742-2, 354]
[EL Fine]: 2009-09-26 13:06:01.593--ServerSession(21762307)--Connection(3223920)
--Thread(Thread[main,5,main])--SELECT ID, TITLE, PRICE, ILLUSTRATIONS, DESCRIPTI
ON, ISBN, NBOFPAGE FROM BOOK
[EL Config]: 2009-09-26 13:06:01.609--ServerSession(21762307)--Connection(251048
91)--Thread(Thread[main,5,main])--disconnect
[EL Info]: 2009-09-26 13:06:01.625--ServerSession(21762307)--Thread(Thread[main,
5,main])--file:/C:/JavaEE6/Chapter02/target/test-classes/-chapter02PU logout suc
cessful
[EL Config]: 2009-09-26 13:06:01.625--ServerSession(21762307)--Connection(245691
70)--Thread(Thread[main,5,main])--disconnect
[EL Config]: 2009-09-26 13:06:01.625--ServerSession(21762307)--Connection(322392
0)--Thread(Thread[main,5,main])--disconnect
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.36 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20 seconds
[INFO] Finished at: Sat Sep 26 13:06:01 PDT 2009
[INFO] Final Memory: 9M/17M
[INFO] ------------------------------------------------------------------------
C:\JavaEE6\Chapter02>





