This method hasn't been implemented yet. If you let me know how you want
to use it I can implement it in the cvs version for you.
P.S. Looks like you've got an old version of the code as it should have
thown a NotImplementedException ;)
On Fri, 2002-08-16 at 02:46, Regis wrote:
> Hello,
>=20
> I wrote the code:
>=20
> MockConnection mockConnection;
> mockConnection =3D new MockConnection(); =09
> =09
> pst =3D new myClass( mockConnection ); =09
> =09
> MockStatement mockStatement =3D new MockStatement();
> =09
> String sql =3D "insert into TUsuario ( cd_usuario,
> nm_usuario, dt_saida ) " +
> "value ( 10, 'Regis Freire
> Melo', '2002-01-01' )";
> =20
> =09
> mockStatement.setExpectedExecuteCalls(1);
> mockConnection.setupStatement( mockStatement );
>=20
> But when I try to run the test, I receive the error:
>=20
> java.lang.UnsupportedOperationException =09
> at
> com.mockobjects.sql.MockStatement.addBatch(MockStatement.java:152) =09
> at
> XYZ.insert(SSPersistenceProprietary.java:259)
>=20
> The error occur in a line that do statement.addBatch.
> =09
> What's wrong?
>=20
> T.I.A.,
>=20
> /**
> * R=E9gis Melo
> * reg...@so...
> * +55(85)9111-8301
> * ICQ 159720027
> *=20
> * SoftSite Tecnologia
> * http://www.softsite.com.br
> * +55(85)261-5266=20
> * +55(85)273-1184=20
> *
> */
>=20
> "Find a job you love and=20
> never work a day in your=20
> life."=20
> Confucius
>=20
>=20
>=20
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r_________________________________________=
______
> Mockobjects-java-users mailing list
> Moc...@li...
> https://lists.sourceforge.net/lists/listinfo/mockobjects-java-users
--=20
jeff martin
information technologist
mkodo limited
mobile: 44 (0) 78 5547 8331
phone: 44 (0) 20 2226 4545
email: je...@mk...
www.mkodo.com
|