brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <>
Subject [jira] [Commented] (BROOKLYN-83) HTTP tests under NetBeans fail -- too much unwrapping
Date Wed, 12 Nov 2014 10:50:33 GMT


Aled Sage commented on BROOKLYN-83:

I don't think this is just NetBeans. The test `SensorResourceIntegrationTest.testSensorBytes()`
was failing in jenkins (i.e. CLI, running on Ubuntu) with a very similar error.

See the fix in
For some reason it was defaulting to the `text/plain` version instead of `application/json`,
hence the string not being quoted (i.e. not being returned in json).

I don't know whether it the client was sending `text/plain` (even though we hadn't told it
to), or if the server-side was defaulting to `SensorApi.getPlain()` rather than `get()` when
there was no `Accepts` defined.

I'll rename the issue again, as it is not caused by too much unwrapping.

> HTTP tests under NetBeans fail -- too much unwrapping
> -----------------------------------------------------
>                 Key: BROOKLYN-83
>                 URL:
>             Project: Brooklyn
>          Issue Type: Bug
>         Environment: netbeans
>            Reporter: David Medinets
>            Priority: Minor
> I cloned the github repository this evening. Then ran a build using NetBeans. I ran into
the following test failure:
> testGet(  Time elapsed: 0.004 sec  <<<
> java.lang.AssertionError: expected ["12345 frogs"] but found [12345 frogs]
> 	at
> 	at org.testng.Assert.failNotEquals(
> 	at org.testng.Assert.assertEquals(
> 	at org.testng.Assert.assertEquals(
> 	at
> 	at
> 	at
> I marked this critical because the build failed.

This message was sent by Atlassian JIRA

View raw message