[
https://issues.apache.org/jira/browse/BROOKLYN-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14207935#comment-14207935
]
Aled Sage commented on BROOKLYN-83:
-----------------------------------
Note that this class has 3 similar test methods for get and three for getRaw:
one for json, one for plain, and one where we don't specify it (the last one
expecting json back). Therefore we don't need the same code change as in
`SensorResourceIntegrationTest`. We just need to delete the methods that don't
use `Accepts`.
> HTTP tests under NetBeans fail -- defaulting to Accepts text/plain?
> -------------------------------------------------------------------
>
> Key: BROOKLYN-83
> URL: https://issues.apache.org/jira/browse/BROOKLYN-83
> 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(brooklyn.rest.resources.SensorResourceTest) Time elapsed: 0.004 sec
> <<< FAILURE!
> java.lang.AssertionError: expected ["12345 frogs"] but found [12345 frogs]
> at org.testng.Assert.fail(Assert.java:94)
> at org.testng.Assert.failNotEquals(Assert.java:494)
> at org.testng.Assert.assertEquals(Assert.java:123)
> at org.testng.Assert.assertEquals(Assert.java:165)
> at
> brooklyn.rest.resources.SensorResourceTest.doSensorTestUntyped(SensorResourceTest.java:161)
> at
> brooklyn.rest.resources.SensorResourceTest.doSensorTest(SensorResourceTest.java:143)
> at
> brooklyn.rest.resources.SensorResourceTest.testGet(SensorResourceTest.java:170)
> I marked this critical because the build failed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)