You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Andrew McIntyre (JIRA)" <ji...@apache.org> on 2007/02/07 21:27:05 UTC
[jira] Created: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Convert tests in derbynet that will run via HarnessJavaTest
-----------------------------------------------------------
Key: DERBY-2305
URL: https://issues.apache.org/jira/browse/DERBY-2305
Project: Derby
Issue Type: Improvement
Components: Test
Affects Versions: 10.3.0.0
Reporter: Andrew McIntyre
Assigned To: Andrew McIntyre
Priority: Trivial
Fix For: 10.3.0.0
Attachments: derby-2305-v1.diff
I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McIntyre updated DERBY-2305:
-----------------------------------
Attachment: derby-2305-v2.diff
Attaching updated patch which includes the change to TestProto I left out of the other patch.
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff, derby-2305-v2.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McIntyre updated DERBY-2305:
-----------------------------------
Attachment: derby-2305-v1.diff
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471109 ]
Andrew McIntyre commented on DERBY-2305:
----------------------------------------
Thanks for the quick feedback, Dan.
I guess I was a little surprised when the base test classes didn't load the driver in their setUp, but I suppose that makes sense if you want to test different driver loading behaviors and still use the base classes. I asked about j9 because badConnection was listed in j9derbynetmats.runall, so some client/server tests were at one time run with j9, however inappropriate that may have been. :-)
Good point about the exception text. I'll remove that, and take a look at checkDriver as well...
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McIntyre updated DERBY-2305:
-----------------------------------
Attachment: (was: derby-2305-v2.diff)
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McIntyre updated DERBY-2305:
-----------------------------------
Attachment: derby-2305-v1.diff
Starting over, decided to just go ahead and include the new BadConnectionTest this time instead of trying to untangle the two patches.
Comments for BadConnectionTest:
1. I had to get the default connection or else the driver wasn't automatically loaded via any of the other setup processes. Is that expected?
2. Using clientServerDecorator excludes the test from running on j9, are we not expecting to run client testing with j9 at all?
3. I probably didn't need to assertEquals the entire exception text in testBadConnectionAttribute. I can remove that if anyone objects.
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McIntyre updated DERBY-2305:
-----------------------------------
Attachment: (was: derby-2305-v1.diff)
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DERBY-2305) Convert tests in derbynet that will run
via HarnessJavaTest
Posted by "Andrew McIntyre (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew McIntyre closed DERBY-2305.
----------------------------------
Resolution: Fixed
Derby Info: (was: [Patch Available])
Committed patch and removed the tests that run in NetHarnessJavaTest from the old harness. Will investigate converting BadConnectionTest into a more generic driver test later.
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Daniel John Debrunner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471101 ]
Daniel John Debrunner commented on DERBY-2305:
----------------------------------------------
Just FYI - I was waiting the customary 72 hours for feedback on taking the HarnessJavaTest approach before enabling it and removing tests from the old harness. I think there's still around 24 to go ....
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DERBY-2305) Convert tests in derbynet that will
run via HarnessJavaTest
Posted by "Daniel John Debrunner (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-2305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471104 ]
Daniel John Debrunner commented on DERBY-2305:
----------------------------------------------
A1) Yes.
A2) Client doesn't implement JSR169 so it cannot be run on J2ME/CDC/Foundation
A3) Comparing the exception text means that the test will most likely fail if run in a different locale.
It would be good to have the ability to run the tests in different locales :-)
Also it seems nothing in BadConnectionAttribute is specific to client/server. Seems like moving the test to jdbcapi and renaming the class ConnectionAttributeTest would be good. Then it could be a single place for checking bad and good attributes, combining with checkDriver.
> Convert tests in derbynet that will run via HarnessJavaTest
> -----------------------------------------------------------
>
> Key: DERBY-2305
> URL: https://issues.apache.org/jira/browse/DERBY-2305
> Project: Derby
> Issue Type: Improvement
> Components: Test
> Affects Versions: 10.3.0.0
> Reporter: Andrew McIntyre
> Assigned To: Andrew McIntyre
> Priority: Trivial
> Fix For: 10.3.0.0
>
> Attachments: derby-2305-v1.diff
>
>
> I was able to convert three tests in derbynet to run via HarnessJavaTest. The problems with the other tests are mentioned in the javadoc for the test. Forking the VM seemed to be a problem in most cases, at least running from within Eclipse, because the forked VM would not have the correct classpath. Attaching patch for review. Note that BadConnectionTest is commented out in _Suite in this patch, as I have a separate patch for converting the very simple bad connection test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.