test_class.file: component/core/src/test/java/fr/norad/visuwall/providers/hudson/HudsonBuildBuilderTest.java
test_class.identifier: HudsonBuildBuilderTest
test_case.body: @Test
      public void should_create_valid_hudson_build() {
          long duration = 123L;
          int buildNumber = 34;
          Set<HudsonCommiter> commiters = new TreeSet<HudsonCommiter>();
          commiters.add(new HudsonCommiter("dude"));
          commiters.add(new HudsonCommiter("sweet"));
  
          Date startTime = new Date();
          String state = null;
  
          List<Culprit> users = new ArrayList<Culprit>();
          users.add(new Culprit());
          users.add(new Culprit());
          users.get(0).setFullName("dude");
          users.get(1).setFullName("sweet");
  
          MavenModuleSetBuild setBuild = mock(MavenModuleSetBuild.class);
          when(setBuild.getDuration()).thenReturn(duration);
          when(setBuild.getCulprits()).thenReturn(users);
          when(setBuild.getNumber()).thenReturn(buildNumber);
          when(setBuild.getTimestamp()).thenReturn(startTime.getTime());
  
          HudsonBuildBuilder hudsonBuildBuilder = new HudsonBuildBuilder();
          HudsonBuild hudsonBuild = hudsonBuildBuilder.createHudsonBuild(setBuild, commiters);
  
          assertEquals(duration, hudsonBuild.getDuration());
          assertEquals(buildNumber, hudsonBuild.getBuildNumber());
          assertEquals(commiters, hudsonBuild.getCommiters());
          assertEquals(startTime, hudsonBuild.getStartTime());
          assertEquals(state, hudsonBuild.getState());
      }
test_case.class_method_signature: HudsonBuildBuilderTest.should_create_valid_hudson_build()
test_case.full_signature: @Test public void should_create_valid_hudson_build()
test_case.identifier: should_create_valid_hudson_build
test_case.invocations: add add add add setFullName get setFullName get mock thenReturn when getDuration thenReturn when getCulprits thenReturn when getNumber thenReturn when getTimestamp getTime createHudsonBuild assertEquals getDuration assertEquals getBuildNumber assertEquals getCommiters assertEquals getStartTime assertEquals getState
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_create_valid_hudson_build()
focal_class.file: component/core/src/main/java/fr/norad/visuwall/providers/hudson/HudsonBuildBuilder.java
focal_class.identifier: HudsonBuildBuilder
focal_class.class_method_signature: HudsonBuildBuilder.createHudsonBuild(Build build, Set<HudsonCommiter> commiters)
focal_class.full_signature:  HudsonBuild createHudsonBuild(Build build, Set<HudsonCommiter> commiters)
focal_class.identifier: createHudsonBuild
focal_class.parameters: (Build build, Set<HudsonCommiter> commiters)
focal_class.return: HudsonBuild
focal_class.signature: HudsonBuild createHudsonBuild(Build build, Set<HudsonCommiter> commiters)
focal_method.body: HudsonBuild createHudsonBuild(Build build, Set<HudsonCommiter> commiters) {
          HudsonBuild hudsonBuild = new HudsonBuild();
          hudsonBuild.setState(build.getResult());
          hudsonBuild.setDuration(build.getDuration());
          hudsonBuild.setStartTime(new Date(build.getTimestamp()));
          hudsonBuild.setSuccessful(HudsonXmlHelper.isSuccessful(build));
          hudsonBuild.setCommiters(commiters);
          hudsonBuild.setBuildNumber(build.getNumber());
          return hudsonBuild;
      }
focal_method.class_method_signature: HudsonBuildBuilder.createHudsonBuild(Build build, Set<HudsonCommiter> commiters)
focal_method.full_signature:  HudsonBuild createHudsonBuild(Build build, Set<HudsonCommiter> commiters)
focal_method.identifier: createHudsonBuild
focal_method.invocations: setState getResult setDuration getDuration setStartTime getTimestamp setSuccessful isSuccessful setCommiters setBuildNumber getNumber
focal_method.parameters: (Build build, Set<HudsonCommiter> commiters)
focal_method.return: HudsonBuild
focal_method.signature: HudsonBuild createHudsonBuild(Build build, Set<HudsonCommiter> commiters)