Skip to content

Commit b84dc4c

Browse files
Added unit tests and changed version in pom.xml
1 parent 968cf3c commit b84dc4c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>net.delirius</groupId>
55
<artifactId>jmeter.backendlistener.elasticsearch</artifactId>
6-
<version>2.0.2</version>
6+
<version>2.1.0-SNAPSHOT</version>
77
<packaging>jar</packaging>
88
<name>jmeter.backendlistener.elasticsearch</name>
99
<url>http://maven.apache.org</url>

src/test/java/net/delirius/jmeter/backendlistener/elasticsearch/TestElasticSearchBackend.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ public void setUp() throws Exception {
2929
@Test
3030
public void testGetElapsedTime() throws Exception {
3131
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
32-
Date testDate = this.instance.getElapsedDate();
32+
Date testDate = this.instance.getElapsedDate(false);
33+
assertNotNull("testDate = " + sdf.format(testDate), sdf.format(testDate));
34+
}
35+
36+
@Test
37+
public void testGetElapsedTimeJenkins() throws Exception {
38+
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
39+
Date testDate = this.instance.getElapsedDate(true);
3340
assertNotNull("testDate = " + sdf.format(testDate), sdf.format(testDate));
3441
}
3542
}

0 commit comments

Comments
 (0)