diff --git a/jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleRawConfigurationTest.java b/jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleRawConfigurationTest.java index a3feb88ecb..49c9ea3e5f 100644 --- a/jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleRawConfigurationTest.java +++ b/jib-gradle-plugin/src/test/java/com/google/cloud/tools/jib/gradle/GradleRawConfigurationTest.java @@ -88,6 +88,7 @@ public void testGetters() { Mockito.when(containerParameters.getArgs()).thenReturn(Arrays.asList("--log", "info")); Mockito.when(containerParameters.getEntrypoint()).thenReturn(Arrays.asList("java", "Main")); Mockito.when(environment.get()).thenReturn(Collections.singletonMap("currency", "dollar")); + Mockito.when(containerParameters.getEnvironment()).thenReturn(environment); Mockito.when(containerParameters.getJvmFlags()).thenReturn(Arrays.asList("-cp", ".")); Mockito.when(labels.get()).thenReturn(Collections.singletonMap("unit", "cm")); Mockito.when(containerParameters.getLabels()).thenReturn(labels);