File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mocking a Blob object?

 
bhavit pant
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys, i need to mock a blob data in XML. which is defined as

How can i Mock it . i have to use a Mock database as Xml
i am using Junit/ (DjUnit for Coverage)
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could have your XML point to an actual binary file. Of you could write a Java object that reads an XML file. Or you could jump binary data into a string in your XML. Which is best depends on how you are using the XML file.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic