Permalink
Browse files

OWF-7009: Updated the owf.build.rev as part of the Alpha Release proc…

…ess. Also fixed a test that would fail if executed on the first day of the month.
  • Loading branch information...
1 parent 8d9df71 commit 506e90e9e5204a7ae04c42255fa3fff47ec67b9b @lmizenextcen lmizenextcen committed Nov 1, 2012
@@ -20,7 +20,7 @@ cas.server.org=ozone-widgeting-framework
cas.server.rev=3.3.2.1
owf.build.module=build-base
owf.build.org=owf
-owf.build.rev=2.3
+owf.build.rev=2.5
owf.security.module=owf-security
owf.security.org=ozone-widgeting-framework
owf.security.rev=3.14
@@ -108,7 +108,10 @@ class MetricControllerTests extends OWFGroovyTestCase {
controller.graphData()
assertNotNull JSON.parse(controller.response.contentAsString)
- assertEquals 2, JSON.parse(controller.response.contentAsString)[0][2]
+ if (day == 1)
+ assertEquals 2, JSON.parse(controller.response.contentAsString)[1][2]
+ else
+ assertEquals 2, JSON.parse(controller.response.contentAsString)[0][2]
}
void testGetTagCloud() {
@@ -128,7 +131,6 @@ class MetricControllerTests extends OWFGroovyTestCase {
toDate: dateObj.getTime().toString()
])
controller.getTagCloud()
-
assertNotNull JSON.parse(controller.response.contentAsString).results
assertEquals "b3b1d04f-97c2-4726-9575-82bb1cf1af6a", JSON.parse(controller.response.contentAsString).results[0].componentId
assertEquals 2, JSON.parse(controller.response.contentAsString).results[0].total

0 comments on commit 506e90e

Please sign in to comment.