couchbase/couchbase-lite-android — pull request #300 by yaronyg (2014-05-08 22:48:48+00:00)
Title: Fixes for issues 280, 283, 285, 287 & 299

https://github.com/couchbase/couchbase-lite-android/issues/280 -
Moves mavenLocal() from buildscript/repositories back to
repositories where it belongs.

https://github.com/couchbase/couchbase-lite-android/issues/283 -
Fixes the while in RouterTest so it will exit if activeTasks.size()
doesn't shrink.

https://github.com/couchbase/couchbase-lite-android/issues/285 -
Makes LiteTestCaseBase (see below) inherit from AndroidTestCase

https://github.com/couchbase/couchbase-lite-android/issues/287 -
Supports a new property, LiteListener, that if set to 'true' will
cause a Lite Listener to be started. So now one can run the tests using
the listener instead of having to have the Sync Gateway.
Also includes the code to create the Listener.

https://github.com/couchbase/couchbase-lite-android/issues/299 -
There are really just two changes we need. One is to change what
TestCase we inherit in if we are in Android or Java. The other is to
change how temporary files for the listener (287) are created. To make
this possible we did the following:
* LiteTestCase now inherits from LiteTestCaseBase
( LiteTestContext now inherits from LiteTestContextBase

Now the trick is that both LiteTestCaseBase and LiteTestContextBase are
defined in the com.couchbase.test.lite namespace. This is intentional!
That way we can define Android and Java versions of both of these classes
in their respective projects and then just blindly copy
com.couchbase.lite classes from androidTest to Java tests. Because the
android/java specific classes (LiteTestCaseBase & LiteTestContextBase) are
in their own separate namespace we can check them in and things will just
work when we compile.

And yes, I will be submitting a parallel PR for couchbase-lite-java. I am getting some weird errors there
and I want to first make sure I didn't screw anything up before submitting the PR for couchbase-lite-java.