Replace spy with mock in tests

Spying ConnectionImpl fails with Java 8 with some dubious
InvocationTargetException.

Instead of spying the existing connection object, create a mock and
make sure that it returns another mocked RemoteObject for the
DropDown widget that is created internally.

Change-Id: I26fe1030451ce05ab3ab35525cbaebc6a9e2b3b8
1 file changed
tree: 8021b6bc47158c4e8ef5b356191312e9ecab1148
  1. .gitignore
  2. bundles/
  3. component.xml
  4. examples/
  5. features/
  6. releng/
  7. tests/