@Test void buildNoServices() { ServiceEntityBuilder builder = new ServiceEntityBuilder(DocumentTools.INSTANCE, new IdGenerator()); Bundle bundle = new Bundle(projectInfo); List<Entity> serviceEntities = builder.build(bundle, EntityBuilder.BundleType.DEPLOYMENT, DocumentTools.INSTANCE.getDocumentBuilder().newDocument()); assertEquals(0, serviceEntities.size()); }
public List<Entity> build(Bundle bundle, BundleType bundleType, Document document) { return buildEntities(bundle.getServices(), bundle, bundleType, document); }
ServiceEntityBuilder implements EntityBuilder { public List<Entity> build(Bundle bundle, BundleType bundleType, Document document) { return buildEntities(bundle.getServices(), bundle, bundleType, document); } }
ServiceEntityBuilder implements EntityBuilder { public List<Entity> build(Bundle bundle, BundleType bundleType, Document document) { return buildEntities(bundle.getServices(), bundle, bundleType, document); } @Inject  ServiceEntityBuilder(DocumentTools documentTools, IdGenerator idGenerator); }
ServiceEntityBuilder implements EntityBuilder { public List<Entity> build(Bundle bundle, BundleType bundleType, Document document) { return buildEntities(bundle.getServices(), bundle, bundleType, document); } @Inject  ServiceEntityBuilder(DocumentTools documentTools, IdGenerator idGenerator); List<Entity> build(Bundle bundle, BundleType bundleType, Document document); @NotNull @Override Integer getOrder(); }
ServiceEntityBuilder implements EntityBuilder { public List<Entity> build(Bundle bundle, BundleType bundleType, Document document) { return buildEntities(bundle.getServices(), bundle, bundleType, document); } @Inject  ServiceEntityBuilder(DocumentTools documentTools, IdGenerator idGenerator); List<Entity> build(Bundle bundle, BundleType bundleType, Document document); @NotNull @Override Integer getOrder();  }