Create one function which return boolean
I want to write one function means if the resource status is cv locked in any one of the project,then automatically the status of this resource changed to unavailble for other projects.
Indicate that we can nominate the same resource for different projects but after cv lock that resources made unavailbale for other projects.
Require coding
Edited by: user12877889 on Jun 28, 2010 5:12 AM
Hi,
Well how to say, i suggest you to start with theses documentations:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/toc.htm
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/toc.htm
Thenyou'll probably have a better idea of what's an Oracle DB. After that comme back and describe the tools you're using and what's your requirements (what's you want to do, for what purpose...) then may be we'll be able to help you ..
Similar Messages
-
Function which returns multiple values that can then be used in an SQL Sele
I'd like to create a function which returns multiple values that can then be used in an SQL Select statement's IN( ) clause
Currently, the select statement is like (well, this is a very simplified version):
select application, clientid
from tbl_apps, tbl_status
where tbl_apps.statusid = tbl_status.statusid
and tbl_status.approved > 0;
I'd like to pull the checking of the tbl_status into a PL/SQL function so my select would look something like :
select application, clientid
from tbl_apps
where tbl_apps.statusid in (myfunction);
So my function would be running this sql:
select statusid from tbl_status where approved > 0;
... will return values 1, 5, 15, 32 (and more)
... but I haven't been able to figure out how to return the results so they can be used in SQL.
Thanks for any help you can give me!!
Trisha GorrPerhaps take a look at pipelined functions:
Single column example:
SQL> CREATE OR REPLACE TYPE split_tbl IS TABLE OF VARCHAR2(32767);
2 /
Type created.
SQL> CREATE OR REPLACE FUNCTION split (p_list VARCHAR2, p_delim VARCHAR2:=' ') RETURN SPLIT_TBL PIPELINED IS
2 l_idx PLS_INTEGER;
3 l_list VARCHAR2(32767) := p_list;
4 l_value VARCHAR2(32767);
5 BEGIN
6 LOOP
7 l_idx := INSTR(l_list, p_delim);
8 IF l_idx > 0 THEN
9 PIPE ROW(SUBSTR(l_list, 1, l_idx-1));
10 l_list := SUBSTR(l_list, l_idx+LENGTH(p_delim));
11 ELSE
12 PIPE ROW(l_list);
13 EXIT;
14 END IF;
15 END LOOP;
16 RETURN;
17 END SPLIT;
18 /
Function created.
SQL> SELECT column_value
2 FROM TABLE(split('FRED,JIM,BOB,TED,MARK',','));
COLUMN_VALUE
FRED
JIM
BOB
TED
MARK
SQL> create table mytable (val VARCHAR2(20));
Table created.
SQL> insert into mytable
2 select column_value
3 from TABLE(split('FRED,JIM,BOB,TED,MARK',','));
5 rows created.
SQL> select * from mytable;
VAL
FRED
JIM
BOB
TED
MARK
SQL>Multiple column example:
SQL> CREATE OR REPLACE TYPE myrec AS OBJECT
2 ( col1 VARCHAR2(10),
3 col2 VARCHAR2(10)
4 )
5 /
Type created.
SQL>
SQL> CREATE OR REPLACE TYPE myrectable AS TABLE OF myrec
2 /
Type created.
SQL>
SQL> CREATE OR REPLACE FUNCTION pipedata(p_str IN VARCHAR2) RETURN myrectable PIPELINED IS
2 v_str VARCHAR2(4000) := REPLACE(REPLACE(p_str, '('),')');
3 v_obj myrec := myrec(NULL,NULL);
4 BEGIN
5 LOOP
6 EXIT WHEN v_str IS NULL;
7 v_obj.col1 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
8 v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
9 IF INSTR(v_str,',')>0 THEN
10 v_obj.col2 := SUBSTR(v_str,1,INSTR(v_str,',')-1);
11 v_str := SUBSTR(v_str,INSTR(v_str,',')+1);
12 ELSE
13 v_obj.col2 := v_str;
14 v_str := NULL;
15 END IF;
16 PIPE ROW (v_obj);
17 END LOOP;
18 RETURN;
19 END;
20 /
Function created.
SQL>
SQL> create table mytab (col1 varchar2(10), col2 varchar2(10));
Table created.
SQL>
SQL> insert into mytab (col1, col2) select col1, col2 from table(pipedata('(1,2),(2,3),(4,5)'));
3 rows created.
SQL>
SQL> select * from mytab;
COL1 COL2
1 2
2 3
4 5 -
Plsql use a function which returns a ref cursor
Hi
I've been using an function which returns a ref cursor. I've been returning this into a java resultset. Fine!
Now i'm in plsql and want to use the same function. I'm not sure how to get this resultset in plsql.It's not very practical to use a refcursor like you want to, but here you go
create or replace function test_ref
return sys_refcursor
is
v_rc sys_refcursor;
begin
open v_rc for select emp_name from emp ;
return v_rc;
end;
declare
v_rc sys_refcursor;
v_emp_name emp.emp_name%type;
begin
v_rc := test_ref ;
loop
fetch v_rc into v_emp_name ;
exit when v_rc%notfound ;
dbms_output.put_line('Employee Name: '||v_emp_name );
end loop;
end; -
I am trying to create a function , which would retun table type.
Gurus,
I am trying to create a function which would return a nested table with 3
columns of a table as a type.
my query is like
select col1,col2,col3 from table_1;
I am kinda newbie in Oracle and have never used collections.
Can you please guide ?>
I am kinda newbie in Oracle and have never used collections.
>
Then you should start with the documentation
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/toc.htm
Chapter 5 is all about Using PL/SQL collections and has examples
>
I am trying to create a function which would return a nested table with 3
columns of a table as a type.
>
That isn't enough of a description to know what you are trying to do or how you plan to use the function. The query you provided has no relation to the question you ask.
Are you asking about pipelined functions? Here is an example of that
-- type to match emp record
create or replace type emp_scalar_type as object
(EMPNO NUMBER(4) ,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7, 2),
COMM NUMBER(7, 2),
DEPTNO NUMBER(2)
-- table of emp records
create or replace type emp_table_type as table of emp_scalar_type
-- pipelined function
create or replace function get_emp( p_deptno in number )
return emp_table_type
PIPELINED
as
TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE;
emp_cv EmpCurTyp;
l_rec emp%rowtype;
begin
open emp_cv for select * from emp where deptno = p_deptno;
loop
fetch emp_cv into l_rec;
exit when (emp_cv%notfound);
pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename),
l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) );
end loop;
return;
end;
select * from table(get_emp(20)) -
How to create a function that returns multiple rows in table
Dear all,
I want to create a funtion that returns multiple rows from the table (ex: gl_balances). I done following:
-- Create type (successfull)
Create or replace type tp_gl_balance as Object
PERIOD_NAME VARCHAR2(15),
CURRENCY_CODE VARCHAR2(15),
PERIOD_TYPE VARCHAR2(15),
PERIOD_YEAR NUMBER(15),
BEGIN_BALANCE_DR NUMBER,
BEGIN_BALANCE_CR NUMBER
-- successfull
create type tp_tbl_gl_balance as table of tp_gl_balance;
but i create a function for return some rows from gl_balances, i can't compile it
create or replace function f_gl_balance(p_period varchar2) return tp_tbl_gl_balance pipelined
as
begin
return
(select gb.period_name, gb.currency_code, gb.period_type, gb.period_year, gb.begin_balance_dr, gb.begin_balance_cr
from gl_balances gb
where gb.period_name = p_period);
end;
I also try
create or replace function f_gl_balance(p_period varchar2) return tp_tbl_gl_balance pipelined
as
begin
select gb.period_name, gb.currency_code, gb.period_type, gb.period_year, gb.begin_balance_dr, gb.begin_balance_cr
from gl_balances gb
where gb.period_name = p_period;
return;
end;
Please help me solve this function.
thanks and best reguardhi,
Use TABLE FUNCTIONS,
[http://www.oracle-base.com/articles/9i/PipelinedTableFunctions9i.php]
Regards,
Danish -
Error while calling the function which returns SQL Query!!!
Hi,
I have a Function which returns SQL query. I am calling this function in my APEX report region source.
The query is dynamic SQL and its size varies based on the dynamic "where clause" condition.
But I am not able to execute this function.It gives me the following error in APEX region source.
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Even in SQL* Plus or SQL developer also same error .
The length of my query is more than 4000. I tried changing the variable size which holds my query in the function.
Earlier it was
l_query varchar2(4000)
Now I changed to
l_query varchar2(32767).
Still it is throwing the same error.
Can anybody help me to resolve this.???
Thanks
AlakaHi Varad,
I am already using 32k of varchar2. Then also it is not working.
It is giving the same error. I think there is something to do with buffer size.
My query size is not more than 4200. Even if i give 32k of varchar2 also buffer is able to hold only 3997 size of the query only.
Error is
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Tried CLOB also. It is not working.
Any other solution for this.
Thanks
Alaka -
Help creating a formula which returns current date last year
I need help creating a formula which returns the current date last year. I also need it to work during leap years.
Any ideas?Hi Dagros,
I'm lucky to be a universe designer, I have to do this only once
The easiest way would probably be to use
=RelativeDate(CurrentDate();-365)
So subtractiing 365 to get the same date last year,
but you would need some extra logic for the years with a feb 29 in those 365 days.
=If FormatDate(RelativeDate(CurrentDate();-365);"dd") = FormatDate(CurrentDate();"dd")
Then RelativeDate(CurrentDate();-365)
Else RelativeDate(CurrentDate();-366)
Another question to ask is if you really want the same date last year, or if you also want a really 'same day' so monday compared to monday etc. in this case you would just subtract 364 days and get the day 52 weeks back...
Good luck,
Marianne -
Specify two conditions for button type: pl/sql function body return boolean
Hello,
Can anyone help me out with this issue.
I am using Oracle APEX 3.2 version.
I have page zero select list with submit items P0_ITEM1, P0_ITEM2, P0_ITEM3
and i also have a button on page zero. Now I want to make this button conditional
like only show the button only when all the three items are selected. For this I am having the below condition which is working perfectly fine.
Type: PL/SQL function returning boolean.
RETURN NVL(:P0_ITEM1,'%'||'null%') != '%'||'null%' AND
NVL(:P0_ITEM2,'%'||'null%') != '%'||'null%' AND
NVL(:P0_ITEM3,'%'||'null%') != '%'||'null%' ;Now I want to add one more condition to the button --
the condition is that, the buttton should be displayed only on the pages 1,2,3,4
so can anyone please help me out how do i change the code to include the additional condition.
thanks,
Orton
Edited by: orton607 on Jul 28, 2010 2:02 PMTry:
Type: PL/SQL function returning boolean.
RETURN NVL(:P0_ITEM1,'%'||'null%') != '%'||'null%' AND
NVL(:P0_ITEM2,'%'||'null%') != '%'||'null%' AND
NVL(:P0_ITEM3,'%'||'null%') != '%'||'null%' AND
:app_page_id in (1, 2, 3, 4);http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/concept.htm#sthref156 -
Creating a function and return something from an XML file
Hi!
I'm working with timeline actionscript. I want to create a function that loads my xmlfile and returns an xmlobject with the file's content.
This is what I got so far:
my_btn.addEventListener(MouseEvent.CLICK, getXML("myxml.xml")); //1067: Implicit coercion of a value of type void to an unrelated type Function.
function getXML(fn:String):void{
var infoLoader:URLLoader = new URLLoader();
infoLoader.addEventListener(Event.COMPLETE, xmlLoaded);
infoLoader.load(new URLRequest(fn));
var myXML:XML = xmlLoaded(); //1136: Incorrect number of arguments. Expected 1.
trace(myXML);
function xmlLoaded(e:Event):XML{
return e.target.data;
//trace(e.target.data);
Can anyone take a look and perhaps point me in the right direction?
ThanksI have never used a listcomponent, so I can only help with the steps before filling it with data.
I think you should at start of your application load the XML with filenames and just after it's completed, e.g. in Event.COMPLETE handler, load all other XMLs looping through filenamesXML, like this
var filenamesXML:XML;
var XMLsToLoad:uint = 0;
function filenamesXMLLoaded(e:Event):void
filenamesXML = XML(e.target.data);
XMLsToLoad = filenamesXML.filenames.children().length();
for (var i:uint =1; i < filenamesXML.filenames.children().length(); i++)
getXML( filenamesXML.filenames.children()[i] ); // the function from my previous post, don't forget to implement it
//modify the minor xml load handler from the previous post
function xmlLoaded(e:Event):void
var loadedXML:XML = XML(e.target.data);
xmlArray.push(loadedXML);
XMLsToLoad--;
//assign the one click handler to all buttons, a loop here would be quite handy
function clickHandler(e:MouseEvent):void
if (XMLsToLoad == 0) //check if all xmls have been completely loaded
switch (e.target.name) // swith by clicked button's instance name
case "button_1":
// here you have to implement supplying listcomponent with data, I think a loop again will be a good idea
break;
case "button_2":
// ibid.
break;
Regards,
gc -
Use function which returns clob in proceudre
Hello,
I need some help with a function call i am using.
I have a SYSMAN function which i like to call in procedure.
The output from the function is a CLOB.
Executing the statement in SqlPlus returns 2 lines of data, but written into a procedure returns in an error.
The procedure looks like this:
CREATE OR REPLACE PROCEDURE large_val as
cSql_text CLOB;
sSql_stmt varchar2(200);
job_id varchar2(80);
exec_id varchar2(80);
parm varchar2(50);
begin
job_id := '82A11DD897876D29E0400A0A8A1051A7';
exec_id := '0000000000000000';
parm := 'large_sql_script';
sSql_stmt := 'SELECT SYSMAN.MGMT_JOBS.get_large_param(' || ''''||job_id||'''' ||',' ||''''||exec_id||''''||','||''''||parm|| '''' || ') FROM DUAL;';
dbms_output.put_line(sSql_stmt);
execute immediate sSql_stmt into cSql_text;
END large_val;
The output from dbms_output i am able to run a statement in SqlPlus without error:
SELECT SYSMAN.MGMT_JOBS.get_large_param('82A11DD897876D29E0400A0A8A1051A7','0000000000000000','large_sql_script') FROM DUAL ;
and it returns 2 lines.
Running it as a procecure show's an error i don't understand.
exec large_val;
BEGIN large_val; END;
ERROR at line 1:
ORA-00911: invalid character
ORA-06512: at "SCHEMTS.LARGE_VAL", line 23
ORA-06512: at line 1
Hope anyone can help me.
Any help is appreciated.
Regards,
BenKiran wrote:
you cannot use CLob with select query.Yes you can. At least since 10gR1, but possibly in earlier versions too.
@OP:
Why aren't you using bind variables? And why are you using dynamic sql at all?
You could just do
cSql_text := SYSMAN.MGMT_JOBS.get_large_param(job_id, exec_id, parm); -
Can i create a function which can take infinite parameter.
Can i make a function which get infinite parameter.
like avg.Kamran Riaz wrote:
Can i make a function which get infinite parameter.
like avg.I think you'll have trouble finding anything to take infinite parameters cos that would be bigger than the universe itself.
User defined aggregate functions example...
http://asktom.oracle.com/pls/asktom/f?p=100:11:335287534824285::::P11_QUESTION_ID:229614022562
[email protected]> create or replace type StringAggType as object
2 (
3 theString varchar2(4000),
4
5 static function
6 ODCIAggregateInitialize(sctx IN OUT StringAggType )
7 return number,
8
9 member function
10 ODCIAggregateIterate(self IN OUT StringAggType ,
11 value IN varchar2 )
12 return number,
13
14 member function
15 ODCIAggregateTerminate(self IN StringAggType,
16 returnValue OUT varchar2,
17 flags IN number)
18 return number,
19
20 member function
21 ODCIAggregateMerge(self IN OUT StringAggType,
22 ctx2 IN StringAggType)
23 return number
24 );
25 /
Type created.
[email protected]>
[email protected]> create or replace type body StringAggType
2 is
3
4 static function ODCIAggregateInitialize(sctx IN OUT StringAggType)
5 return number
6 is
7 begin
8 sctx := StringAggType( null );
9 return ODCIConst.Success;
10 end;
11
12 member function ODCIAggregateIterate(self IN OUT StringAggType,
13 value IN varchar2 )
14 return number
15 is
16 begin
17 self.theString := self.theString || ',' || value;
18 return ODCIConst.Success;
19 end;
20
21 member function ODCIAggregateTerminate(self IN StringAggType,
22 returnValue OUT varchar2,
23 flags IN number)
24 return number
25 is
26 begin
27 returnValue := rtrim( ltrim( self.theString, ',' ), ',' );
28 return ODCIConst.Success;
29 end;
30
31 member function ODCIAggregateMerge(self IN OUT StringAggType,
32 ctx2 IN StringAggType)
33 return number
34 is
35 begin
36 self.theString := self.theString || ',' || ctx2.theString;
37 return ODCIConst.Success;
38 end;
39
40
41 end;
42 /
Type body created.
[email protected]>
[email protected]> CREATE or replace
2 FUNCTION stringAgg(input varchar2 )
3 RETURN varchar2
4 PARALLEL_ENABLE AGGREGATE USING StringAggType;
5 /
Function created.
[email protected]>
[email protected]> column enames format a30
[email protected]> select deptno, stringAgg(ename) enames
2 from emp
3 group by deptno
4 /
DEPTNO ENAMES
10 CLARK,KING,MILLER
20 SMITH,FORD,ADAMS,SCOTT,JONES
30 ALLEN,BLAKE,MARTIN,TURNER,JAME
S,WARD
[email protected]> -
How to call Java function which returns byteArray
context I have a class say
public class ByteArray{
public byte[] getByteArray(String str){
return str.getBytes();
}Consider i have object of ByteArray (some how) in native C code. I want to call getByteArray("Test") and obtain a byteArray. what is the C JNI function can i use?hy
CREATE OR REPLACE FUNCTION GET_SAL1(NN in NUMBER)
RETURN BOOLEAN
IS
BEGIN
INSERT INTO STD(ENO) VALUES(NN);
RETURN TRUE;
EXCEPTION
WHEN OTHERS THEN
RETURN false;
END;
you can call :
if GET_SAL1(NN) then
else
error
end if;
I hope i understand
Regards -
How Can I Create a Function to Return to a Specific Menu on DVD Studio Pro?
Hello, I am currently building a DVD for a TV series I created while in college, and I'm having trouble figuring out how to create a function within the DVD that lets the user select the title or menu buttons on their remotes and have that return them either to a) the main menu or b) the menu they were just at, ie episode select or chapter select. Any help is appreciated! Thanks!
Thanks for the help. I'm still a little confused on how to get it select which menu that I would like to return to.
-
How to create one procedure which can drop and create materialized view
Hi,
I want to create one pl/sql procedure which can first drop materialized view CATEGORY_PK and after that create same materialized view CATEGORY_PK.
programme is as follows:
DROP MATERIALIZED VIEW CATEGORY_PK;
CREATE MATERIALIZED VIEW CATEGORY_PK REFRESH FORCE WITH PRIMARY KEY AS
SELECT cav1.ownerid AS categoryid, p.uuid AS productid ,p.domainID AS productdomainid,pav.stringvalue AS NAME
,pav2.stringvalue AS ID, pav3.stringvalue AS SHORT
FROM product p, product_av pav, catalogcategory_av cav1, catalogcategory_av cav2,product_av pav2,product_av pav3
WHERE
cav1.NAME = 'PRODUCT_BINDING_ATTRIBUTE' AND
cav2.NAME = 'PRODUCT_BINDING_VALUE' AND
cav1.ownerid = cav2.ownerid AND
p.uuid = pav.ownerid AND
p.uuid = pav2.ownerid AND
p.uuid = pav3.ownerid AND
pav.NAME = cav1.stringvalue AND
pav2.NAME = cav1.stringvalue AND
pav2.NAME = cav1.stringvalue AND
pav.stringvalue = cav2.stringvalue AND
pav2.stringvalue = cav2.stringvalue AND
pav3.stringvalue = cav2.stringvalue
UNION
SELECT catalogcategoryid AS categoryid, productid, repdomainid AS productdomainid,pav1.stringvalue AS NAME
,pav2.stringvalue AS ID, pav3.stringvalue AS SHORT
FROM productcategoryassignment ,product_av pav1,product_av pav2,product_av pav3
WHERE pav1.ownerid=productid
AND pav2.ownerid=productid
AND pav3.ownerid=productid
AND pav1.NAME='name'
AND pav2.NAME='productID'
AND pav3.NAME='shortDescription';user498566 wrote:
I want to create one pl/sql procedure which can first drop materialized view CATEGORY_PK and after that create same materialized view CATEGORY_PK.That sounds like a waste of time and resources. What do you hope to achieve by this? A refresh? If so, a simple refresh of the old materialized view will do.
If you truly want to continue this road, you'll have to use the EXECUTE IMMEDIATE command to execute DDL commands from within PL/SQL.
Regards,
Rob. -
Creating a function which you can execute with a parameter for date range
Hi Everyone,
Hope you can help me.
I have specific data that I am looking at that I require to query from a function. This function will require that I specify a parameter for a specific date which will only list the date criteria f my choosing.
Here is the data..
StudentID
FirstName
LastName
ClassName
ClassStartDate
ClassEndDate
GPA
1
John
Davids
Soft Dev
11/1/2013 9:00
11/30/2013 12:00
3.25
2
John
Davids
Database
10/1/2013 9:00
10/30/2013 12:00
3.5
3
John
Davids
Web Design
10/1/2013 9:00
10/30/2013 12:00
4
4
John
Davids
Psychology
10/1/2013 9:00
10/30/2013 12:00
3.25
So here is an example function which will need to be altered. I am hoping someone could help me figure this out. I thought the below may have been correct, but it just errors out.
SET
ANSI_NULLSON
GO
SET
QUOTED_IDENTIFIERON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE
FUNCTIONStudentGPATimePeriod
@startdate
AS
BEGIN
selectFirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
fromdbo.Students
whereClassStartDate
=@startdate
END
GOHi Saravana,
If I would to execute this function, how would the parameter be entered?
exec dbo.StudentGPATimePeriod
i think what you need is PROCEDURE, try below
--For a single date
Create PROCEDURE StudentGPATimePeriod
( @startdate datetime )
AS
Begin
select FirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
from dbo.Students
where ClassStartDate >=@startdate and ClassStartDate < dateadd(day,1,@startdate)
End
GO
--for multiple dates
CREATE PROCEDURE getStudentGPAMultipledate
( @startdate datetime,@enddate datetime )
AS
BEGIN
select FirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
from dbo.Students
where ClassStartDate >=@startdate and ClassStartDate < dateadd(day,1,@enddate)
END
GO
EXEC StudentGPATimePeriod @startdate='2014-11-12'
GO
EXEC getStudentGPAMultipledate @startdate='2014-11-12',@enddate='2014-11-13'
Maybe you are looking for
-
Release Date of 10gr2 on windows 32bit??
Any speculation of a release date? before Open World?
-
Problem with iWeb asking for username and password to access my public site
Today for some reason anyone trying to access my site is being asked for username and password. I have made no changes that would require a password. My site has always been public.
-
Hi Team, We are getting ora-1632, max extents error's.. suggest ---what all can be done.. and in future how to avoid it...
-
When I right click on a property node or invoke and then click on help for +++ For example, click " Help for border" and notthing come up? How do I know how to use that specific property since there are so many in Labview.
-
JE-3.1.0 -- testLogSizeBasedCheckpoints test failure
This is on FreeBSD-6.1/amd64 using Java-1.5.0: [junit] Testcase: testLogSizeBasedCheckpoints took 0,84 sec [junit] FAILED [junit] min expected=8 actual=5 [junit] junit.framework.AssertionFailedError: min expected=8 actual=5 [junit] at com.sleepycat.j