summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-08-22 09:57:54 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-08-22 09:57:54 +0200
commit172403a9eadc6bd4e34fbb7e3e5108db26a984b5 (patch)
tree22a91bf5fc92d28c8640615627db45e513dcbd0b /sonar-batch
parent70f24fe988c122c91c96887239c602b43c51ada0 (diff)
downloadsonarqube-172403a9eadc6bd4e34fbb7e3e5108db26a984b5.tar.gz
sonarqube-172403a9eadc6bd4e34fbb7e3e5108db26a984b5.zip
Add some unit tests
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotTest.java b/sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotTest.java
index 2440064362c..8591a47ab8d 100644
--- a/sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotTest.java
+++ b/sonar-batch/src/test/java/org/sonar/batch/components/PastSnapshotTest.java
@@ -47,8 +47,8 @@ public class PastSnapshotTest {
}
@Test
- public void test_some_setters_and_getters2() {
- PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION, new Date(), new Snapshot());
+ public void test_some_setters_and_getters_with_empty_snapshot() {
+ PastSnapshot pastSnapshot = new PastSnapshot(CoreProperties.TIMEMACHINE_MODE_VERSION);
assertThat(pastSnapshot.getQualifier()).isNull();
assertThat(pastSnapshot.getDate()).isNull();