Bug 261660 - tests.unitofwork.CommitUnitOfWorkForcingSQLExceptionTest failed on Sybase
Summary: tests.unitofwork.CommitUnitOfWorkForcingSQLExceptionTest failed on Sybase
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
: 240012 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-20 10:50 EST by Edwin Tang CLA
Modified: 2022-06-09 10:33 EDT (History)
1 user (show)

See Also:


Attachments
proposed test change (1.17 KB, patch)
2010-08-17 13:57 EDT, Chris Delahunt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Tang CLA 2009-01-20 10:50:06 EST
tests.unitofwork.CommitUnitOfWorkForcingSQLExceptionTest failed on Sybase

Exception:
==========
Exception Description: Fatal error occurred. Internal Exception: junit.framework.AssertionFailedError: An expected SQLException was not thrown.

Local Exception Stack:
Exception [EclipseLink-0] (Eclipse Persistence Services - 1.1.0.20090115-SNAPSHOT): org.eclipse.persistence.testing.framework.TestErrorException
Exception Description: Fatal error occurred.
Internal Exception: junit.framework.AssertionFailedError: An expected SQLException was not thrown.
at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:164)
at org.eclipse.persistence.testing.framework.TestCase.runBare(TestCase.java:263)
at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
at org.eclipse.persistence.testing.framework.TestSuite.execute(TestSuite.java:75)
at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:247)
at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)
Caused by: junit.framework.AssertionFailedError: An expected SQLException was not thrown.
at org.eclipse.persistence.testing.tests.unitofwork.CommitUnitOfWorkForcingSQLExceptionTest.test(CommitUnitOfWorkForcingSQLExceptionTest.java:74)
at org.eclipse.persistence.testing.framework.TestCase.executeTest(TestCase.java:543)
at org.eclipse.persistence.testing.framework.TestCase.execute(TestCase.java:154)
Comment 1 Peter Krogh CLA 2009-11-27 13:40:52 EST
This bug fix did not make the cut off for 2.0.0. We are deferring the bugs to Future where we can properly sort them all together based on community votes and severity. We will then assign them accordingly to future patch sets and releases.
Comment 2 Peter Krogh CLA 2009-11-30 11:35:57 EST
Changing the priority of the bugs that have been recently triaged to future.  Targetting them to P2 will differentiate them from the P3s that have been triaged into future earlier.
Comment 3 Praba Vijayaratnam CLA 2010-04-29 10:02:00 EDT
*** Bug 240012 has been marked as a duplicate of this bug. ***
Comment 4 Peter Krogh CLA 2010-06-04 14:39:14 EDT
2.1 Bug scrubbing, deferring to 2.1.1.
Comment 5 Chris Delahunt CLA 2010-08-17 13:57:49 EDT
Created attachment 176822 [details]
proposed test change

Test is not valid on Sybase because it silently truncates strings to match the column length and the test relies on databases throwing an exception if the string is too long.  The patch changes the test to throw a warning if the Plaform is Sybase
Comment 6 Chris Delahunt CLA 2010-08-17 15:45:04 EDT
fix checked into main.
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:33:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink