Corrected bean setup for checkForHttps case tests.
parent
e74014906d
commit
be485da8ff
|
@ -60,6 +60,7 @@ public class ConfigurationPropertiesBeanTest {
|
|||
// issuer is http
|
||||
// leave as default, which is unset/false
|
||||
try {
|
||||
bean.setIssuer("http://localhost:8080/openid-connect-server/");
|
||||
bean.checkForHttps();
|
||||
}
|
||||
catch (HttpsUrlRequiredException e) {
|
||||
|
@ -73,6 +74,7 @@ public class ConfigurationPropertiesBeanTest {
|
|||
// issuer is http
|
||||
// set to false
|
||||
try {
|
||||
bean.setIssuer("http://localhost:8080/openid-connect-server/");
|
||||
bean.setForceHttps(false);
|
||||
bean.checkForHttps();
|
||||
}
|
||||
|
@ -86,6 +88,7 @@ public class ConfigurationPropertiesBeanTest {
|
|||
ConfigurationPropertiesBean bean = new ConfigurationPropertiesBean();
|
||||
// issuer is http
|
||||
// set to true
|
||||
bean.setIssuer("http://localhost:8080/openid-connect-server/");
|
||||
bean.setForceHttps(true);
|
||||
bean.checkForHttps();
|
||||
}
|
||||
|
@ -96,6 +99,7 @@ public class ConfigurationPropertiesBeanTest {
|
|||
// issuer is https
|
||||
// leave as default, which is unset/false
|
||||
try {
|
||||
bean.setIssuer("https://localhost:8080/openid-connect-server/");
|
||||
bean.checkForHttps();
|
||||
}
|
||||
catch (HttpsUrlRequiredException e) {
|
||||
|
@ -109,6 +113,7 @@ public class ConfigurationPropertiesBeanTest {
|
|||
// issuer is https
|
||||
// set to false
|
||||
try {
|
||||
bean.setIssuer("https://localhost:8080/openid-connect-server/");
|
||||
bean.setForceHttps(false);
|
||||
bean.checkForHttps();
|
||||
}
|
||||
|
@ -123,6 +128,7 @@ public class ConfigurationPropertiesBeanTest {
|
|||
// issuer is https
|
||||
// set to true
|
||||
try {
|
||||
bean.setIssuer("https://localhost:8080/openid-connect-server/");
|
||||
bean.setForceHttps(true);
|
||||
bean.checkForHttps();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue