test_class.file: component/core/src/test/java/fr/norad/visuwall/providers/hudson/helper/HudsonXmlHelperTest.java
test_class.identifier: HudsonXmlHelperTest
test_case.body: @Test
      public void testGetCommiters() {
          List<Culprit> users = new ArrayList<Culprit>();
          Culprit user1 = new Culprit();
          Culprit user2 = new Culprit();
  
          user1.setFullName("dude");
          user2.setFullName("sweet");
  
          users.add(user1);
          users.add(user2);
  
          MavenModuleSetBuild setBuild = mock(MavenModuleSetBuild.class);
          when(setBuild.getCulprits()).thenReturn(users);
  
          String[] commiters = HudsonXmlHelper.getCommiterNames(setBuild);
          assertEquals("dude", commiters[0]);
          assertEquals("sweet", commiters[1]);
      }
test_case.class_method_signature: HudsonXmlHelperTest.testGetCommiters()
test_case.full_signature: @Test public void testGetCommiters()
test_case.identifier: testGetCommiters
test_case.invocations: setFullName setFullName add add mock thenReturn when getCulprits getCommiterNames assertEquals assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetCommiters()
focal_class.file: component/core/src/main/java/fr/norad/visuwall/providers/hudson/helper/HudsonXmlHelper.java
focal_class.identifier: HudsonXmlHelper
focal_class.class_method_signature: HudsonXmlHelper.HudsonXmlHelper()
focal_class.full_signature: private  HudsonXmlHelper()
focal_class.identifier: HudsonXmlHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  HudsonXmlHelper()
focal_class.class_method_signature: HudsonXmlHelper.isSuccessful(Build build)
focal_class.full_signature: public static boolean isSuccessful(Build build)
focal_class.identifier: isSuccessful
focal_class.modifiers: public static
focal_class.parameters: (Build build)
focal_class.return: boolean
focal_class.signature: boolean isSuccessful(Build build)
focal_class.class_method_signature: HudsonXmlHelper.getCommiterNames(Build build)
focal_class.full_signature: public static String[] getCommiterNames(Build build)
focal_class.identifier: getCommiterNames
focal_class.modifiers: public static
focal_class.parameters: (Build build)
focal_class.return: String[]
focal_class.signature: String[] getCommiterNames(Build build)
focal_class.class_method_signature: HudsonXmlHelper.checkBuild(Build build)
focal_class.full_signature: private static void checkBuild(Build build)
focal_class.identifier: checkBuild
focal_class.modifiers: private static
focal_class.parameters: (Build build)
focal_class.return: void
focal_class.signature: void checkBuild(Build build)
focal_method.body: public static String[] getCommiterNames(Build build) {
          checkBuild(build);
          List<Culprit> users = build.getCulprits();
          String[] commiters = new String[users.size()];
          for (int i = 0; i < users.size(); i++) {
              Culprit hudsonModelUser = users.get(i);
              String name = hudsonModelUser.getFullName();
              commiters[i] = name;
          }
          return commiters;
      }
focal_method.class_method_signature: HudsonXmlHelper.getCommiterNames(Build build)
focal_method.full_signature: public static String[] getCommiterNames(Build build)
focal_method.identifier: getCommiterNames
focal_method.invocations: checkBuild getCulprits size size get getFullName
focal_method.modifiers: public static
focal_method.parameters: (Build build)
focal_method.return: String[]
focal_method.signature: String[] getCommiterNames(Build build)