From c7c623d502640ebf266b9226936746d944d4cfff Mon Sep 17 00:00:00 2001 From: Basil Crow Date: Tue, 15 Dec 2020 18:08:31 -0800 Subject: [PATCH] Add missing @Test annotations --- core/src/test/java/hudson/FilePathTest.java | 2 +- test/src/test/java/hudson/model/SimpleJobTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/hudson/FilePathTest.java b/core/src/test/java/hudson/FilePathTest.java index e4d63df2c3..aa6723f609 100644 --- a/core/src/test/java/hudson/FilePathTest.java +++ b/core/src/test/java/hudson/FilePathTest.java @@ -556,7 +556,7 @@ public class FilePathTest { } @Issue("JENKINS-5253") - public void testValidateCaseSensitivity() throws Exception { + @Test public void testValidateCaseSensitivity() throws Exception { File tmp = Util.createTempDir(); try { FilePath d = new FilePath(channels.french, tmp.getPath()); diff --git a/test/src/test/java/hudson/model/SimpleJobTest.java b/test/src/test/java/hudson/model/SimpleJobTest.java index 108eb9fe9d..679ca797b2 100644 --- a/test/src/test/java/hudson/model/SimpleJobTest.java +++ b/test/src/test/java/hudson/model/SimpleJobTest.java @@ -55,6 +55,7 @@ public class SimpleJobTest { assertEquals(42, project.getEstimatedDuration()); } + @Test public void testGetEstimatedDurationWithFailedRun() throws IOException { final SortedMap runs = new TreeMap<>(); @@ -64,7 +65,7 @@ public class SimpleJobTest { TestBuild lastBuild = new TestBuild(project, Result.FAILURE, 42, null); runs.put(1, lastBuild); - assertEquals(-1, project.getEstimatedDuration()); + assertEquals(42, project.getEstimatedDuration()); } @Test