@Test public void testIsSuccessful() { MavenModuleSetBuild job = mock(MavenModuleSetBuild.class); when(job.getResult()).thenReturn("SUCCESS"); boolean isSuccessful = HudsonXmlHelper.isSuccessful(job); assertTrue(isSuccessful); }
public static boolean isSuccessful(Build build) { checkBuild(build); String state = build.getResult(); return "SUCCESS".equals(state); }
HudsonXmlHelper { public static boolean isSuccessful(Build build) { checkBuild(build); String state = build.getResult(); return "SUCCESS".equals(state); } }
HudsonXmlHelper { public static boolean isSuccessful(Build build) { checkBuild(build); String state = build.getResult(); return "SUCCESS".equals(state); } private  HudsonXmlHelper(); }
HudsonXmlHelper { public static boolean isSuccessful(Build build) { checkBuild(build); String state = build.getResult(); return "SUCCESS".equals(state); } private  HudsonXmlHelper(); static boolean isSuccessful(Build build); static String[] getCommiterNames(Build build); }
HudsonXmlHelper { public static boolean isSuccessful(Build build) { checkBuild(build); String state = build.getResult(); return "SUCCESS".equals(state); } private  HudsonXmlHelper(); static boolean isSuccessful(Build build); static String[] getCommiterNames(Build build);  }