From 1dda2b49ad293c51f09c4e8355104792b47cceb5 Mon Sep 17 00:00:00 2001 From: "Baker, Rory" Date: Tue, 5 Mar 2024 07:37:07 -0600 Subject: [PATCH] Remove unnecessary stubbing from BuildCDEvent.java test --- src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java b/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java index 2beeccb..085ea17 100644 --- a/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java +++ b/src/test/java/io/jenkins/plugins/cdevents/BuildCDEvent.java @@ -54,7 +54,6 @@ void buildPipelineRunStartedModel() throws IOException, InterruptedException { try (MockedStatic modelBuilder = getMockedModelBuilder()) { modelBuilder.when(() -> ModelBuilder.buildJobModel(job, run, taskListener)).thenReturn(new JobModel()); when(run.getParent().getFullDisplayName()).thenReturn("TestJob1"); - when(run.getParent().getUrl()).thenReturn("http://localhost/job/1"); when(run.getUrl()).thenReturn("http://localhost/job/1/stage/1"); when(run.getId()).thenReturn("1");