commit | 64ac89785f4b7696da8c60425b946026ab37ad8d | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Fri Mar 08 14:56:30 2019 +0100 |
committer | Edwin Kempin <ekempin@google.com> | Fri Mar 08 14:59:53 2019 +0100 |
tree | 5f5e536313bb2afd7c2b373d94c13dae74447816 | |
parent | a0c8d780bb1c781afb4b67e63138a4055f6fd955 [diff] |
Fix names of setup methods for check tests The setup methods were called 'setTimeForTesting' but except one these methods don't set any time. The one setup method that seits the time does also other things so also for this method the name wasn't accurate. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I56acff70dda4abdaeaa677af4dc6e8f3598a4757
diff --git a/javatests/com/google/gerrit/plugins/checks/acceptance/api/CreateCheckIT.java b/javatests/com/google/gerrit/plugins/checks/acceptance/api/CreateCheckIT.java index 54b3fe4..7389438 100644 --- a/javatests/com/google/gerrit/plugins/checks/acceptance/api/CreateCheckIT.java +++ b/javatests/com/google/gerrit/plugins/checks/acceptance/api/CreateCheckIT.java
@@ -39,7 +39,7 @@ private RevId revId; @Before - public void setTimeForTesting() throws Exception { + public void setUp() throws Exception { TestTimeUtil.resetWithClockStep(1, TimeUnit.SECONDS); TestTimeUtil.setClock(Timestamp.from(Instant.EPOCH));
diff --git a/javatests/com/google/gerrit/plugins/checks/acceptance/api/ListChecksIT.java b/javatests/com/google/gerrit/plugins/checks/acceptance/api/ListChecksIT.java index 159f9f2..b38865e 100644 --- a/javatests/com/google/gerrit/plugins/checks/acceptance/api/ListChecksIT.java +++ b/javatests/com/google/gerrit/plugins/checks/acceptance/api/ListChecksIT.java
@@ -32,7 +32,7 @@ private CheckKey checkKey2; @Before - public void setTimeForTesting() throws Exception { + public void setUp() throws Exception { patchSetId = createChange().getPatchSetId(); CheckerUuid checker1Uuid = checkerOperations.newChecker().repository(project).create();
diff --git a/javatests/com/google/gerrit/plugins/checks/acceptance/api/UpdateCheckIT.java b/javatests/com/google/gerrit/plugins/checks/acceptance/api/UpdateCheckIT.java index f02a9b2..df6624b 100644 --- a/javatests/com/google/gerrit/plugins/checks/acceptance/api/UpdateCheckIT.java +++ b/javatests/com/google/gerrit/plugins/checks/acceptance/api/UpdateCheckIT.java
@@ -33,7 +33,7 @@ private CheckKey checkKey; @Before - public void setTimeForTesting() throws Exception { + public void setUp() throws Exception { patchSetId = createChange().getPatchSetId(); CheckerUuid checkerUuid = checkerOperations.newChecker().repository(project).create();