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