xp-framework/xp-contrib — pull request #19 by thekid (2012-10-24 09:01:07+00:00)
Title: Fix tests

Before:

```sh
$ unittest com.atlassian.jira.unittest.**
[............FFFF........................................................
...............................................]
F unittest.TestError(test= com.atlassian.jira.unittest.api.protocol.JiraClientRest2ProtocolTest::login, time= 0.000 seconds) {
Exception lang.IllegalArgumentException (Scheme "" unsupported)
at peer.http.HttpTransport::transportFor(peer.URL{}) [line 52 of HttpConnection.class.php]
at peer.http.HttpConnection::__construct(peer.URL{}) [line 60 of RestClient.class.php]
at webservices.rest.RestClient::setBase(peer.URL{}) [line 35 of RestClient.class.php]
at webservices.rest.RestClient::__construct(peer.URL{}) [line 32 of JiraClientRest2Protocol.class.php]
at com.atlassian.jira.api.protocol.JiraClientRest2Protocol::__construct(peer.URL{}) [line 44 of JiraClientRest2ProtocolTest.class.php]
at com.atlassian.jira.unittest.api.protocol.JiraClientRest2ProtocolTest::setUp() [line 241 of TestSuite.class.php]
at unittest.TestSuite::runInternal(com.atlassian.jira.unittest.api.protocol.JiraClientRest2ProtocolTest{}, unittest.TestResult{}) [line 485 of TestSuite.class.php]
at unittest.TestSuite::run() [line 261 of Runner.class.php]
at xp.unittest.Runner::run(array[1]) [line 272 of Runner.class.php]
at xp.unittest.Runner::main(array[1]) [line 0 of StackTraceElement.class.php]
at php.ReflectionMethod::invokeArgs(NULL, array[1]) [line 102 of Method.class.php]
at lang.reflect.Method::invoke(NULL, array[1]) [line 91 of class.php]

}
[...]
FAIL: 119/119 run (0 skipped), 115 succeeded, 4 failed
Memory used: 3835.95 kB (4165.67 kB peak)
Time taken: 0.002 seconds
```

```sh
$ unittest src/test/
[............SSSS........................................................
...............................................]

OK: 115/119 run (4 skipped), 115 succeeded, 0 failed
Memory used: 3810.09 kB (4069.27 kB peak)
Time taken: 0.003 seconds
```