Skip to content

Commit

Permalink
Merge pull request #8 from cefriel/chore-bump-camel
Browse files Browse the repository at this point in the history
deps: bump Camel version to 4.4.1
  • Loading branch information
AuPath committed Mar 25, 2024
2 parents b46bea3 + cbc288d commit d88394c
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 115 deletions.
2 changes: 1 addition & 1 deletion camel-chimera-graph/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring-junit5</artifactId>
<artifactId>camel-test-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
/**
* Graph component
*/
@UriEndpoint(firstVersion = "1.0.0", scheme = "graph", title = "graph", syntax="graph:name",
category = {Category.JAVA})
@UriEndpoint(firstVersion = "1.0.0", scheme = "graph", title = "graph", syntax="graph:name")
public class GraphEndpoint extends DefaultEndpoint {
@UriPath @Metadata(required = true)
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,10 @@
public class GraphGetNativeTest extends CamelTestSupport {

private static final Logger log = LoggerFactory.getLogger(GraphGetNativeTest.class);

@EndpointInject("mock:native")
static MockEndpoint mock;

@AfterAll
static void clean() throws IOException {
mock.getExchanges().get(0).getMessage().getBody(RDFGraph.class).getRepository().shutDown();
FileUtils.deleteDirectory(new File("tempDir"));
}

@Test
public void testNativeGraph() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:native");

mock.expectedMessageCount(1);
mock.assertIsSatisfied();

Expand All @@ -54,13 +46,17 @@ public void testNativeGraph() throws Exception {
assert(graph.getRepository().isInitialized());
// assert(graph.getRepository().getClass().equals(SailRepository.class));
assert(graph.getRepository().getDataDir().getPath().equals("tempDir"));

mock.getExchanges().get(0).getMessage().getBody(RDFGraph.class).getRepository().shutDown();
FileUtils.deleteDirectory(new File("tempDir"));
}

@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
public void configure() {
from("graph://get?pathDataDir=tempDir").to("mock:native");
from("graph://get?pathDataDir=tempDir")
.to("mock:native");
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion camel-chimera-mapping-template/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-spring-junit5</artifactId>
<artifactId>camel-test-junit5</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
*
* TODO: Update one line description above what the component does.
*/
@UriEndpoint(firstVersion = "1.0-SNAPSHOT", scheme = "mapt", title = "mapt", syntax="mapt:name",
category = {Category.JAVA})
@UriEndpoint(firstVersion = "1.0-SNAPSHOT", scheme = "mapt", title = "mapt", syntax="mapt:name")

public class MaptTemplateEndpoint extends DefaultEndpoint {
@UriPath @Metadata(required = true)
private String name;
Expand Down Expand Up @@ -66,7 +66,7 @@ public class MaptTemplateEndpoint extends DefaultEndpoint {
private ChimeraResourceBean resourceCustomFunctions;
@UriParam(defaultValue = "null", description = "User defined class that extends the TemplateFunctions class. Use this parameter when the user defined class is included in the Java project. Used to define java functions that can be called in a template file. ")
private TemplateFunctions customFunctions;

@UriParam(defaultValue = "null")
private MaptTemplateBean rdfBaseConfig;

Expand All @@ -76,154 +76,154 @@ public MaptTemplateEndpoint() {
}

public MaptTemplateEndpoint(String uri, String remaining, MaptTemplateComponent component) {
super(uri, component);
setName(remaining);
super(uri, component);
setName(remaining);
}

public Producer createProducer() throws Exception {
return new MaptTemplateProducer(this);
return new MaptTemplateProducer(this);
}

public Consumer createConsumer(Processor processor) throws Exception {
Consumer consumer = new MaptTemplateConsumer(this, processor);
configureConsumer(consumer);
return consumer;
Consumer consumer = new MaptTemplateConsumer(this, processor);
configureConsumer(consumer);
return consumer;
}

/**
* Some description of this option, and what it does
*/
public void setName(String name) {
this.name = name;
this.name = name;
}

public String getName() {
return name;
return name;
}

/**
* Some description of this option, and what it does
*/
public String getBasePath() {
return basePath;
return basePath;
}

public void setBasePath(String basePath) {
this.basePath = basePath;
this.basePath = basePath;
}

public ChimeraResourceBean getTemplate() {
return template;
return template;
}

public void setTemplate(ChimeraResourceBean template) {
this.template = template;
this.template = template;
}

/**
* Some description of this option, and what it does
*/
public String getFilename() {
return filename;
return filename;
}

public void setFilename(String filename) {
this.filename = filename;
this.filename = filename;
}

public ChimeraResourceBean getKeyValuePairs() {
return keyValuePairs;
return keyValuePairs;
}

public void setKeyValuePairs(ChimeraResourceBean keyValuePairs) {
this.keyValuePairs = keyValuePairs;
this.keyValuePairs = keyValuePairs;
}

public ChimeraResourceBean getKeyValuePairsCSV() {
return keyValuePairsCSV;
return keyValuePairsCSV;
}

public void setKeyValuePairsCSV(ChimeraResourceBean keyValuePairsCSV) {
this.keyValuePairsCSV = keyValuePairsCSV;
this.keyValuePairsCSV = keyValuePairsCSV;
}

/**
* Some description of this option, and what it does
*/
public String getFormat() {
return format;
return format;
}

public void setFormat(String format) {
this.format = format;
this.format = format;
}

public ChimeraResourceBean getQuery() {
return query;
return query;
}

public void setQuery(ChimeraResourceBean query) {
this.query = query;
this.query = query;
}

/**
* Some description of this option, and what it does
*/
public boolean isTrimTemplate() {
return trimTemplate;
return trimTemplate;
}

public void setTrimTemplate(boolean trimTemplate) {
this.trimTemplate = trimTemplate;
this.trimTemplate = trimTemplate;
}

/**
* Some description of this option, and what it does
*/
public boolean isVerboseQueries() {
return verboseQueries;
return verboseQueries;
}

public void setVerboseQueries(boolean verboseQueries) {
this.verboseQueries = verboseQueries;
this.verboseQueries = verboseQueries;
}

/**
* Some description of this option, and what it does
*/
public boolean isStream() {
return stream;
return stream;
}

public void setStream(boolean stream) {
this.stream = stream;
this.stream = stream;
}

public ChimeraResourceBean getResourceCustomFunctions() {
return resourceCustomFunctions;
return resourceCustomFunctions;
}

public void setResourceCustomFunctions(ChimeraResourceBean resourceCustomFunctions) {
this.resourceCustomFunctions = resourceCustomFunctions;
this.resourceCustomFunctions = resourceCustomFunctions;
}

public TemplateFunctions getCustomFunctions() {
return customFunctions;
return customFunctions;
}

public void setCustomFunctions(TemplateFunctions customFunctions) {
this.customFunctions = customFunctions;
this.customFunctions = customFunctions;
}

/**
* Some description of this option, and what it does
*/
public MaptTemplateBean getRdfBaseConfig() {
return rdfBaseConfig;
return rdfBaseConfig;
}

public void setRdfBaseConfig(MaptTemplateBean rdfBaseConfig) {
this.rdfBaseConfig = rdfBaseConfig;
this.rdfBaseConfig = rdfBaseConfig;
}

}
1 change: 0 additions & 1 deletion camel-chimera-rmlmapper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-test-junit5</artifactId>
<scope>test</scope>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down

0 comments on commit d88394c

Please sign in to comment.