Branch: refs/heads/teiid-8.x-upgrade
Home:
https://github.com/Teiid-Designer/teiid-designer
Commit: 78e7a2cce702d7ab8c9897d9bdca52b482412a90
https://github.com/Teiid-Designer/teiid-designer/commit/78e7a2cce702d7ab8...
Author: Paul Richardson <p.g.richardson(a)redhat.com>
Date: 2012-09-11 (Tue, 11 Sep 2012)
Changed paths:
M
plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/server/ServerPage.java
M
plugins/org.teiid.designer.dqp.ui/src/org/teiid/designer/runtime/ui/views/TeiidView.java
A
plugins/org.teiid.designer.dqp/src/org/teiid/designer/runtime/DefaultServersProvider.java
M plugins/org.teiid.designer.dqp/src/org/teiid/designer/runtime/DqpPlugin.java
A plugins/org.teiid.designer.dqp/src/org/teiid/designer/runtime/IServersProvider.java
M
plugins/org.teiid.designer.dqp/src/org/teiid/designer/runtime/TeiidServerManager.java
M
tests/org.teiid.designer.dqp.test/src/org/teiid/designer/runtime/ServerManagerTest.java
Log Message:
-----------
Fix ServerManager tests
* Server manager unit tests failing due to lack of IServers in
ServerCore at the time of running the tests. Instead of trying to
add them, use a proxy interface to stand in front of calls to
ServerCore so the latter can be mocked in unit tests
* IServersProvider
* Interface providing access to the collection of IServers in the
platform
* DefaultServersProvider
* Implementation of the IServerProvider interface that delegates to
ServerCore. Used by the application at runtime.
* TeiidServerManager
* Pass the IServersProvider instance into the server manager
* ServerManagerTest
* Fixes tests by providing its own implementation of IServerProvider
that provides mocked IServer implementations. Enough to satisfy
the tests
* ServerPage
* TeiidView
* Have classes use the IServersProvider rather than calling ServerCore
directly