@Test public void testCreateComponentFromArtifact() { SW360Component component = new SW360Component(); if (expectedException != null) { thrownException.expect(expectedException); thrownException.expectMessage(expectedExceptionMsg); } ArtifactToComponentUtils.prepareComponent(component, artifact); assertThat(component.getName()).isEqualTo(expectedName); assertThat(component.getComponentType()).isEqualTo(expectedType); }
public static void prepareComponent(SW360Component component, Artifact artifact) { ArtifactToComponentUtils.setName(component, artifact); ArtifactToComponentUtils.setComponentType(component, artifact); }
ArtifactToComponentUtils { public static void prepareComponent(SW360Component component, Artifact artifact) { ArtifactToComponentUtils.setName(component, artifact); ArtifactToComponentUtils.setComponentType(component, artifact); } }
ArtifactToComponentUtils { public static void prepareComponent(SW360Component component, Artifact artifact) { ArtifactToComponentUtils.setName(component, artifact); ArtifactToComponentUtils.setComponentType(component, artifact); } private  ArtifactToComponentUtils(); }
ArtifactToComponentUtils { public static void prepareComponent(SW360Component component, Artifact artifact) { ArtifactToComponentUtils.setName(component, artifact); ArtifactToComponentUtils.setComponentType(component, artifact); } private  ArtifactToComponentUtils(); static String createComponentName(Artifact artifact); static String createComponentVersion(Artifact artifact); static void setName(SW360Component component, Artifact artifact); static void prepareComponent(SW360Component component, Artifact artifact); }
ArtifactToComponentUtils { public static void prepareComponent(SW360Component component, Artifact artifact) { ArtifactToComponentUtils.setName(component, artifact); ArtifactToComponentUtils.setComponentType(component, artifact); } private  ArtifactToComponentUtils(); static String createComponentName(Artifact artifact); static String createComponentVersion(Artifact artifact); static void setName(SW360Component component, Artifact artifact); static void prepareComponent(SW360Component component, Artifact artifact);  }