Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
Description
In the method examineExpectedInDerbyNetClient, the code validates the error code using the following:
return
sqlex.getSQLState().equals("08006") &&
sqlex.getErrorCode() == SqlCode.disconnectError.getCode();
SqlCode is an internal class and our tests shouldn't rely on it. We should probably just use the error code explicitly, or define a testing class that contains some of the error codes that Derby returns.
Also: are our error codes even a documented public interface?
Attachments
Issue Links
- duplicates
-
DERBY-2054 Rewrite 'derbynet/SuicideOfStreaming' to a JUnit test
- Closed