On 10 Aug 2004 at 20:39, Mark Lybarger wrote:

> hey dl, i also followed the directions in the same article.  i could get 
> the part 1 stuff working ok, but had errors running part 2 and part 3.  
> here's an example error i recieved in example_02.  it's using axion db, 
> and i'm on a linux platform, that shouldn't matter i hope.  any ideas on 
> this error?
> 

Mark

This is "the blind leading the blind" ..  I've got no real clues ..

the email address of author N. Alex Rupp is in the paper.
[EMAIL PROTECTED] .. and web site is here:- http://www.nrfx.com

He would be the fount of knowledge on this.

______________________________________________________________________________________

myself .. I had only progressed to trying out Test 1 last night ..

Trying Test 2 today, I get a successful build of database but failed build of EJB.

Here is my test report.  I am using redirect in command line ">" to create report.

More on redirect here 

http://www-courses.cs.uiuc.edu/~cs125/cs125/_html/_assign/_testing/outputRedirection.html

______________________________________________________________________________________

5. Generate the Database

command line (note the redirection > to log file):-

C:\ebj-testing-examples-part02\example_02> maven db:setup > c:\logs\report1.txt

______________________________________________________________________________________


6. Compile your EJB JAR and Execute the Entity Tests: 

command line (note the redirection > to log file):-

C:\ebj-testing-examples-part02\example_02> maven db:setup > c:\logs\report2.txt


When running this command the report is redirected to the report .. so you will see 
no significant output to Command Prompt window .. be patient.

______________________________________________________________________________________


Note:

When trying several times you must use this sequence (as documented in article):-

$ maven db:setup
$ maven
$ maven db:teardown

______________________________________________________________________________________


Consolidated report1.txt + report2.txt follows:-

______________________________________________________________________________________

report1.txt
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2

Attempting to download openejb-core-1.0-SNAPSHOT.jar.
build:start:
db:setup:
[sql] Executing file: 
C:\ejb-testing-examples-part02\example_02\src\sql\setupEmployee.sql
[sql] 10 of 10 SQL statements executed successfully

BUILD SUCCESSFUL
Total time: 7 seconds
Finished at: Wed Aug 11 10:04:02 BST 2004



report2.txt
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2

Attempting to download openejb-core-1.0-SNAPSHOT.jar.
build:start:

default:
java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\ejb-testing-examples-part02\example_02/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:

jar:jar:
aspectj:init:


jar:

validate:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to C:\ejb-testing-examples-part02\example_02/target/classes

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:

test:test:
    [junit] Running com.nrfx.articles.openejb.EmployeeAccessorsTest
    [junit] Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 3.876 sec
    [junit] [ERROR] TEST com.nrfx.articles.openejb.EmployeeAccessorsTest FAILED
    [junit] Running com.nrfx.articles.openejb.EmployeeCreateTest
    [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 3.996 sec
    [junit] [ERROR] TEST com.nrfx.articles.openejb.EmployeeCreateTest FAILED
    [junit] Running com.nrfx.articles.openejb.EmployeeFindTest
    [junit] Tests run: 5, Failures: 5, Errors: 0, Time elapsed: 3.856 sec
    [junit] [ERROR] TEST com.nrfx.articles.openejb.EmployeeFindTest FAILED

Total time: 26 seconds
Finished at: Wed Aug 11 10:05:27 BST 2004

______________________________________________________________________________________


This final bit of the report was not directed to the log file and displays in the 
command prompt window:-
(I'm trying to work out how to direct this to a test report).


BUILD FAILED
File:..............file:/C:/Documents and 
Settings/[username]/.maven/plugins/maven-test-plugin-1.5/plugin.jelly
Element.......fail
Line.............148
Column........54
There were test failures

______________________________________________________________________________________



Note:

I monitored maven using FILEMON (www.sysinternals.com) and found some failed 
paths to jars so I'm pursuing that line now.

Reply via email to