コード例 #1
0
 @Test
 public void testIsBuildPodWhenDoesNotHaveBuildAnnotation() {
   when(pod.isAnnotatedWith(OpenShiftAPIAnnotations.BUILD_NAME)).thenReturn(false);
   assertFalse(isBuildPod(pod));
 }
コード例 #2
0
 @Test
 public void testIsBuildPodWhenHasBuildAnnotation() {
   when(pod.isAnnotatedWith(OpenShiftAPIAnnotations.BUILD_NAME)).thenReturn(true);
   assertTrue(isBuildPod(pod));
 }