diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-10 20:51:38 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-10 20:51:38 +0100 |
commit | 09d297a383b60cfdba6b6388cc54c9c8fa603e75 (patch) | |
tree | 38f2d131bcbb352717c6b7e65cb5fd397071239c /src/test | |
parent | 7838a06e5521db39aee8b3b87785fcb5e32cd7ad (diff) | |
download | esper-testing-09d297a383b60cfdba6b6388cc54c9c8fa603e75.tar.gz esper-testing-09d297a383b60cfdba6b6388cc54c9c8fa603e75.tar.bz2 esper-testing-09d297a383b60cfdba6b6388cc54c9c8fa603e75.tar.xz esper-testing-09d297a383b60cfdba6b6388cc54c9c8fa603e75.zip |
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.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/io/trygvis/esper/testing/core/badge/UnbreakableBadgeProgressTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
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<UnbreakableBadgeProgress, Option<UnbreakableBadge>> 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<UnbreakableBadgeProgress, Option<UnbreakableBadge>> p2 = p.onBuild(failure); |