From 09d297a383b60cfdba6b6388cc54c9c8fa603e75 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 10 Jan 2013 20:51:38 +0100 Subject: o Fixing another bug in the unbreakable poller, stored one build too many in some progress objects too. o Got the logback.xml + system properties combination to finally work. --- .../testing/core/badge/UnbreakableBadgeProgressTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/test') diff --git a/src/test/java/io/trygvis/esper/testing/core/badge/UnbreakableBadgeProgressTest.java b/src/test/java/io/trygvis/esper/testing/core/badge/UnbreakableBadgeProgressTest.java index 3ee0c05..f7993b1 100644 --- a/src/test/java/io/trygvis/esper/testing/core/badge/UnbreakableBadgeProgressTest.java +++ b/src/test/java/io/trygvis/esper/testing/core/badge/UnbreakableBadgeProgressTest.java @@ -29,6 +29,14 @@ public class UnbreakableBadgeProgressTest extends TestCase { for (int i = 0; i < 55; i++) { P2> p2 = p.onBuild(success); + if (i < 50) { + assertEquals(i, p.builds.size()); + } + + if (i == 50) { + assertEquals(0, p.builds.size()); + } + if (p2._2().isSome()) { badges.add(p2._2().some()); } @@ -39,8 +47,11 @@ public class UnbreakableBadgeProgressTest extends TestCase { assertEquals(5, p.builds.size()); assertEquals(3, badges.size()); assertEquals(1, badges.get(0).level); + assertEquals(10, badges.get(0).builds.size()); assertEquals(2, badges.get(1).level); + assertEquals(20, badges.get(1).builds.size()); assertEquals(3, badges.get(2).level); + assertEquals(50, badges.get(2).builds.size()); P2> p2 = p.onBuild(failure); -- cgit v1.2.3