brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Heneveld (JIRA)" <>
Subject [jira] [Commented] (BROOKLYN-83) SensorResourceTest.testGet: expected ["12345 frogs"] but found [12345 frogs]
Date Wed, 12 Nov 2014 09:16:33 GMT


Alex Heneveld commented on BROOKLYN-83:

David, do the tests work for you from command-line maven?

I suspect this may be a NetBeans issue.  The error here, combined with the error at BROOKLYN-84,
suggests in both cases the test running in NetBeans is unwrapping the result -- converting
JSON string to java string here, and converting raw string containing an int to a java int
in 84.  But our test is requesting the raw result data (ie the json or raw string), and so
it fails.

David if you can shed any light on the NetBeans configuration or any tweaks to the test to
make them portable that would be very helpful.

If you just need a build of course, you should be able to use the CLI to build or run with
-DskipTests .

Changing the issue summary to reflect this and marking 84 as duplicate BTW.

> SensorResourceTest.testGet: expected ["12345 frogs"] but found [12345 frogs]
> ----------------------------------------------------------------------------
>                 Key: BROOKLYN-83
>                 URL:
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: David Medinets
>            Priority: Critical
> 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