Re: Bug is com.microsoft.sqlserver.jdbc.SQLServerDataSource (2005 Beta



Note we are planning on changing this back to allowing selectMethod due to
huge customer demand.

--
Matt Neerincx [MSFT]

This posting is provided "AS IS", with no warranties, and confers no rights.

Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

"jef" <jef@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5FB92280-7932-4722-84AC-72A3102980E5@xxxxxxxxxxxxxxxx
> The following JUnit code fails:
> // elided ...
> public void testSelectMethod()
> {
> SQLServerDataSource source = new SQLServerDataSource();
> source.setSelectMethod("cursor");
> assertEquals("cursor", source.getSelectMethod());
> }
> // elided ...
>
> with:
>
> junit.framework.ComparisonFailure: Select method not set to cursor
> expected:<cursor> but was:<null>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at test.foo.assumptions.JTASQLTest.testSelectMethod(JTASQLTest.java:49)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
>
> --
> jef - integralpath.blogs.com


.



Relevant Pages

  • Re: Binary or Byte data linked to Checkbox
    ... Matt Neerincx [MSFT] ... Please do not send email directly to this alias. ... > I'm using Access 2003 linked to an SQL Server data table via an ODBC ...
    (microsoft.public.sqlserver.odbc)
  • Re: About the Redbutton.
    ... Alaa Abdelhalim [MSFT] ... This posting is provided "AS IS" with no warranties, ... Please do not send e-mail directly to this alias. ... "Yun H" wrote in message ...
    (microsoft.public.win2000.security)
  • New Paper on Firewall Clients
    ... Pesach Shelnitz [MSFT] ... This posting is provided "AS IS" with no warranties, ... OR if you wish to include a script sample in your post please add "Use of ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.isaserver)
  • New Paper on Firewall Clients
    ... Pesach Shelnitz [MSFT] ... This posting is provided "AS IS" with no warranties, ... OR if you wish to include a script sample in your post please add "Use of ... Please do not send e-mail directly to this alias. ...
    (microsoft.public.isa)
  • Re: how to retreive ma data file
    ... Tom Helms [MSFT] ... This posting is provided "AS IS" with no warranties, ... do not send e-mail directly to this alias. ...
    (microsoft.public.cert.exam.mcse)