@Test public void testIsBuildPodWhenDoesNotHaveBuildAnnotation() { when(pod.isAnnotatedWith(OpenShiftAPIAnnotations.BUILD_NAME)).thenReturn(false); assertFalse(isBuildPod(pod)); }
@Test public void testIsBuildPodWhenHasBuildAnnotation() { when(pod.isAnnotatedWith(OpenShiftAPIAnnotations.BUILD_NAME)).thenReturn(true); assertTrue(isBuildPod(pod)); }