________________________________
From: Fnu Mahalakshmi
Sent: Friday, May 28, 2010 3:43 PM
To: 'rules-users-request(a)lists.jboss.org'
Subject: error running test scenarios
Hi,
I am working on a drools application and I am getting the following error:
I import java files to my application and then create the rules + test scenarios to run
them.
Attaching a jar file of the java classes.
My Test Case:
Run scenario
[cid:image001.gif@01CAFE7B.7BEA36E0]
GIVEN
insert [Ovo]
[TestOvoUseType]
ipAddress:
[cid:image002.gif@01CAFE7B.7BEA36E0]
useType:
[cid:image002.gif@01CAFE7B.7BEA36E0]
[cid:image002.gif@01CAFE7B.7BEA36E0]
[cid:image001.gif@01CAFE7B.7BEA36E0]
EXPECT
[cid:image002.gif@01CAFE7B.7BEA36E0]
[cid:image003.gif@01CAFE7B.7BEA36E0]
Use real date and time
Use a simulated date and time
Expect rules
Production Ips:
fired at least once
did not fire
fired this many times:
Choose...
[cid:image002.gif@01CAFE7B.7BEA36E0]
More...
(configuration)
Allow these rules to fire:
Prevent these rules from firing:
All rules may fire
[cid:image001.gif@01CAFE7B.7BEA36E0]
[cid:image004.gif@01CAFE7B.7BEA36E0]
[cid:image001.gif@01CAFE7B.7BEA36E0]
(globals)
Test for checking Production Ips
Title: [ProdIp Test]
[show more info...]
Rules case:
WHEN
[cid:image001.gif@01CAFE7B.7BEA36E0]
Ovo
useType
--- please choose ---
is equal to
is not equal to
matches
sounds like
[cid:image005.gif@01CAFE7B.7BEA36E0]
[cid:image002.gif@01CAFE7B.7BEA36E0]
[cid:image002.gif@01CAFE7B.7BEA36E0]
THEN
[cid:image001.gif@01CAFE7B.7BEA36E0]
Insert Ip
type
[cid:image002.gif@01CAFE7B.7BEA36E0]
[cid:image002.gif@01CAFE7B.7BEA36E0]
(options)
[cid:image001.gif@01CAFE7B.7BEA36E0]
View source
Validate
Ips in Ovo are Production Ips
Title: [Production Ips]
[show more info...]
Error stack:
15:36:25,517 INFO [STDOUT] ERROR 28-05 15:36:25,507
(ServiceImplementation.java:runScenario:1942) [Error: unable to find constructor
for: org.servers.Ovo]
[Near : {... new org.servers.Ovo( ....}]
^ [Line: 1,
Column: 0]
I have defined the constructor in the Ovo class and Ip class respectively.
Please let me know if you can throw some light on this.
Thanks,
Jillika
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before
printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a
href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged,
confidential and protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by replying to the message,
and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>