Skip to content

Commit

Permalink
Fix tests by taking into account new property from lsp4mp
Browse files Browse the repository at this point in the history
Closes #756

Signed-off-by: David Thompson <[email protected]>
  • Loading branch information
datho7561 authored and angelozerr committed Oct 27, 2022
1 parent ed5e29a commit c73fdd0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public void configItemIntBoolDefaultValueTest() throws Exception {
assertProperties(infoFromClasspath, 257 /* properties from JAR */ + //
9 /* properties from Java sources with ConfigProperty */ + //
2 /* properties from Java sources with ConfigRoot */ + //
7 /* static properties from microprofile-context-propagation-api */,
7 /* static properties from microprofile-context-propagation-api */ + //
1 /* static property from mp-config-metadata */,

// @ConfigItem(name = ConfigItem.PARENT)
// boolean enable;
Expand Down Expand Up @@ -181,4 +182,4 @@ public void configItemIntBoolDefaultValueTest() throws Exception {

assertPropertiesDuplicate(infoFromClasspath);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public void configQuickstartFromClasspath() throws Exception {
assertProperties(infoFromClasspath, 257 /* properties from JAR */ + //
9 /* properties from Java sources with ConfigProperty */ + //
2 /* properties from Java sources with ConfigRoot */ + //
7 /* static properties from microprofile-context-propagation-api */,
7 /* static properties from microprofile-context-propagation-api */ + //
1 /* static property from mp-config-metadata */,

// io.quarkus.deployment.ApplicationConfig
p("quarkus-core", "quarkus.application.name", "java.util.Optional<java.lang.String>",
Expand Down Expand Up @@ -172,4 +173,4 @@ public void configQuickstartFromJavaSources() throws Exception {

assertPropertiesDuplicate(infoFromJavaSources);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public void configQuickstartTest() throws Exception {
Assert.assertEquals(ClasspathKind.SRC, infoFromSrc.getClasspathKind());
assertProperties(infoFromSrc, 181 /* properties from JAR */ + //
3 /* properties from Java sources */ + //
7 /* static properties from microprofile-context-propagation-api */,
7 /* static properties from microprofile-context-propagation-api */ + //
1 /* static property from mp-config-metadata */,

// quarkus-resteasy JAR
p("quarkus-resteasy-common", "quarkus.resteasy.gzip.enabled", "boolean", "If gzip is enabled", true,
Expand Down Expand Up @@ -107,7 +108,8 @@ public void configQuickstartTest() throws Exception {
3 /* properties from JAR (test) */ + //
3 /* properties from (src) Java sources */ + //
3 /* properties from (test) Java sources */ + //
7 /* static properties from microprofile-context-propagation-api */,
7 /* static properties from microprofile-context-propagation-api */ + //
1 /* static property from mp-config-metadata */,

// quarkus-resteasy JAR
p("quarkus-resteasy-common", "quarkus.resteasy.gzip.enabled", "boolean", "If gzip is enabled", true,
Expand Down Expand Up @@ -162,4 +164,4 @@ public void configQuickstartTest() throws Exception {
assertPropertiesDuplicate(infoFromTest);
}

}
}

0 comments on commit c73fdd0

Please sign in to comment.