A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Mocking a Blob object?
Joined: May 22, 2012
Dec 12, 2012 00:05:23
hey guys, i need to mock a blob data in XML. which is defined as
<resultMap id="Tc37Result" class="jp.co.Abc.xyz.efg.bill.model.Tc37EntityModel"> <result property="tc37103" column="TC37103" jdbcType="BLOB" javaType="java.io.File"/> <!-- 添付ファイル -->
How can i Mock it . i have to use a Mock database as Xml
i am using Junit/ (DjUnit for Coverage)
Joined: May 26, 2003
Dec 13, 2012 19:13:00
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
in your XML. Which is best depends on how you are using the XML file.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
subject: Mocking a Blob object?
Oracle BLOBs and Hibernate
hibernate Converting byte into SQL Blob
convert a db blob of xml into a jdom XML object
XML and BLOBs
iBatis BLOB mapping and reading AS/400
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014