Skip to content

Commit

Permalink
chore(catalog-generator): Add tests for the Catalog generator
Browse files Browse the repository at this point in the history
At this time, we're adding tests for the `ConfigBean` class and the
`GenerateCommandTest` class.

fix: #1250
  • Loading branch information
lordrip committed Oct 2, 2024
1 parent b0291b5 commit bb0b444
Show file tree
Hide file tree
Showing 6 changed files with 587 additions and 372 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
package io.kaoto.camelcatalog.commands;

import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;

import org.apache.commons.io.FileUtils;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

import io.kaoto.camelcatalog.beans.ConfigBean;
import io.kaoto.camelcatalog.generator.CatalogGeneratorBuilder;
import io.kaoto.camelcatalog.model.CatalogDefinition;
import io.kaoto.camelcatalog.model.CatalogLibrary;
import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;
import java.util.logging.Logger;

public class GenerateCommand implements Runnable {
private static final Logger LOGGER = Logger.getLogger(GenerateCommand.class.getName());
private ConfigBean configBean;
private final ConfigBean configBean;

public GenerateCommand(ConfigBean configBean) {
this.configBean = configBean;
Expand Down
Loading

0 comments on commit bb0b444

Please sign in to comment.