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)
author & internet detective
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
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.
OCA 8 book
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?
XML and BLOBs
convert a db blob of xml into a jdom XML object
iBatis BLOB mapping and reading AS/400
hibernate Converting byte into SQL Blob
Oracle BLOBs and Hibernate
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015