Skip to content

Commit

Permalink
Upgrade to Camel 4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Mar 29, 2024
1 parent d62b76a commit b3b5789
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,21 @@ public String getMainJsonSchema() {
return schema == null ? delegate.getMainJsonSchema() : schema;
}

@Override
public String getTransformerJSonSchema(String name) {
return delegate.getTransformerJSonSchema(name);
}

@Override
public String getDevConsoleJSonSchema(String name) {
return delegate.getDevConsoleJSonSchema(name);
}

@Override
public String getPojoBeanJSonSchema(String name) {
return delegate.getPojoBeanJSonSchema(name);
}

/**
* Extract the properties found in the Spring configuration metadata, remove the properties whose name doesn't
* start with {@code camel.component.${component-name}.} or contains {@code customizer} and inject the resulting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ public void retrieveContentMainSchema() {
assertNotEmpty(model.getGroups());
List<String> groupNames = model.getGroups().stream().map(MainModel.MainGroupModel::getName)
.collect(Collectors.toList());
assertDoesntContain(groupNames, "camel.main");
assertContainsElements(groupNames, "camel.springboot", "camel.cloud", "camel.cluster.file");
assertNotEmpty(model.getOptions());
List<String> optionNames = model.getOptions().stream().map(MainModel.MainOptionModel::getName)
.collect(Collectors.toList());
assertDoesntContain(optionNames, "camel.main.auto-startup", "camel.main.autoStartup");
assertContainsElements(optionNames, "camel.springboot.auto-startup", "camel.cluster.file.enabled");
}

Expand Down Expand Up @@ -112,7 +110,6 @@ public static class MockJSonSchemaResolver implements JSonSchemaResolver {

@Override
public void setClassLoader(ClassLoader classLoader) {

}

@Override
Expand Down Expand Up @@ -167,5 +164,20 @@ public String getModelJSonSchema(String name) {
public String getMainJsonSchema() {
return null;
}

@Override
public String getTransformerJSonSchema(String name) {
return null;
}

@Override
public String getDevConsoleJSonSchema(String name) {
return null;
}

@Override
public String getPojoBeanJSonSchema(String name) {
return null;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public void testGroupSuggestion() {
myFixture.completeBasic();
List<String> strings = myFixture.getLookupElementStrings();
assertNotNull(strings);
assertDoesntContain(strings, "camel.main.");
assertContainsElements(strings, "camel.springboot.", "camel.component.", "camel.language.", "camel.dataformat.");
// camel.main is included in camel 4.5 onwards for SB also
assertContainsElements(strings, "camel.main.", "camel.springboot.", "camel.component.", "camel.language.", "camel.dataformat.");
}

/**
Expand Down

0 comments on commit b3b5789

Please sign in to comment.