List Info

Thread: Test Case for TextDocument




Test Case for TextDocument
user name
2007-05-10 12:09:20
Hi all,

I have written a Test Case for "TextDocument.java"
.

Since I do not yet have the commit priviliges, I am
attaching the file
here. It seems to work for me as it passes the tests. Please
comment
on the results after including it into the "odf4j"
source tree under
the "test packages" at
"org.openoffice.odf.text"


Thanks

-- 
Amit krishna Saha

GSM :+91 9903140286
http://amitsaha.in
.googlepages.com

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeodftoolkit.openoffice.org
For additional commands, e-mail: dev-helpodftoolkit.openoffice.org
  
Re: Test Case for TextDocument
user name
2007-05-11 05:37:18
Amit krishna Saha wrote:
> Hi all,
> 

Hi Amit,

> I have written a Test Case for
"TextDocument.java" .
> 
> Since I do not yet have the commit priviliges, I am
attaching the file
> here. It seems to work for me as it passes the tests.
Please comment
> on the results after including it into the
"odf4j" source tree under
> the "test packages" at
"org.openoffice.odf.text"

I think you will get commit priviliges soon.

One note to the test case:

You have used a test document located at
//home//amit//first.odt. This 
would of course only work for a very limited subset of users
of odf4j 

Please use a test document in the test-case directoy and a
relative Path 
  to that one instead and cvs commit -kb that test document
also when 
you´ve got commit access or probably even better use an
empty document 
created from the internal template by using the TextDocument
constructor.

> 
> 
> Thanks
> 

Kind regards,
Bernd Eilers


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeodftoolkit.openoffice.org
For additional commands, e-mail: dev-helpodftoolkit.openoffice.org


Re: Test Case for TextDocument
user name
2007-05-11 13:44:22
Hi Bernd Ellers,

> I think you will get commit priviliges soon.

Sounds great.

> Please use a test document in the test-case directoy
and a relative Path
>   to that one instead and cvs commit -kb that test
document also when
> you´ve got commit access or probably even better use an
empty document
> created from the internal template by using the
TextDocument constructor.

I successfully made my code more  usable by including a test
document
in the test-case directory (test/testdocumen1.odt)

However I am facing some problems while using the
EmptyDocumentTemplate()

What does baseURI indicate as in:

public static OpenDocument load(InputStream is, String
baseURI) in the
file OpenDocumentFactory.java

Thanks

-- 
Amit krishna Saha
http://amitsaha.in
.googlepages.com

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeodftoolkit.openoffice.org
For additional commands, e-mail: dev-helpodftoolkit.openoffice.org


Re: Test Case for TextDocument
user name
2007-05-11 14:13:24
> What does baseURI indicate as in:
>
> public static OpenDocument load(InputStream is, String
baseURI) in the
> file OpenDocumentFactory.java

I think i got the answer. baseURI indicates the path of the
file, right?


-- 
Amit krishna Saha
http://amitsaha.in
.googlepages.com

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeodftoolkit.openoffice.org
For additional commands, e-mail: dev-helpodftoolkit.openoffice.org


Re: Test Case for TextDocument
user name
2007-05-14 05:26:09
Amit krishna Saha wrote:
>> What does baseURI indicate as in:
>>
>> public static OpenDocument load(InputStream is,
String baseURI) in the
>> file OpenDocumentFactory.java
> 
> 
> I think i got the answer. baseURI indicates the path of
the file, right?
> 

It should be an URL/URI like file://home/amit/testdoc.odt or

http://www.open
office.org/testdoc.odt or
ftp://ftp.staroffice.de/testdoc.odt

> 

Kind regards,
Bernd Eilers

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeodftoolkit.openoffice.org
For additional commands, e-mail: dev-helpodftoolkit.openoffice.org


Re: Test Case for TextDocument
user name
2007-05-14 07:01:23
Hello Bernd Eilers,

>
> It should be an URL/URI like
file://home/amit/testdoc.odt or
> http://www.open
office.org/testdoc.odt or
ftp://ftp.staroffice.de/testdoc.odt

Thanks for the information.

Cheers,

-- 
Amit krishna Saha
http://amitsaha.in
.googlepages.com

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeodftoolkit.openoffice.org
For additional commands, e-mail: dev-helpodftoolkit.openoffice.org


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )