SW360ComponentAdapterUtils { public static void setComponentType(SW360Component component, boolean isProprietary) { if (isProprietary) { component.setComponentType(SW360ComponentType.INTERNAL); } else { component.setComponentType(SW360ComponentType.OSS); } } private  SW360ComponentAdapterUtils(); static void setComponentType(SW360Component component, boolean isProprietary);  }
@Test public void testSetComponentTypeProprietary() { SW360Component component = new SW360Component(); component.setName("test"); SW360ComponentAdapterUtils.setComponentType(component, true); assertThat(component.getComponentType()).isEqualTo(SW360ComponentType.INTERNAL); }
@Test public void testSetComponentTypeNonProprietary() { SW360Component component = new SW360Component(); component.setName("test"); SW360ComponentAdapterUtils.setComponentType(component, false); assertThat(component.getComponentType()).isEqualTo(SW360ComponentType.OSS); }