Polishing
This commit is contained in:
@@ -102,7 +102,8 @@ public final class LoggerConfiguration {
|
||||
rtn = rtn && ObjectUtils.nullSafeEquals(this.name, other.name);
|
||||
rtn = rtn && ObjectUtils.nullSafeEquals(this.configuredLevel,
|
||||
other.configuredLevel);
|
||||
rtn = rtn && ObjectUtils.nullSafeEquals(this.effectiveLevel, other.effectiveLevel);
|
||||
rtn = rtn && ObjectUtils.nullSafeEquals(this.effectiveLevel,
|
||||
other.effectiveLevel);
|
||||
return rtn;
|
||||
}
|
||||
return super.equals(obj);
|
||||
|
||||
@@ -263,11 +263,11 @@ public class UndertowEmbeddedServletContainerFactoryTests
|
||||
}
|
||||
|
||||
private ServletContainer getServletContainerFromNewFactory() {
|
||||
UndertowEmbeddedServletContainer container = (UndertowEmbeddedServletContainer)
|
||||
getFactory().getEmbeddedServletContainer();
|
||||
UndertowEmbeddedServletContainer container = (UndertowEmbeddedServletContainer) getFactory()
|
||||
.getEmbeddedServletContainer();
|
||||
try {
|
||||
return ((DeploymentManager) ReflectionTestUtils.getField(container, "manager"))
|
||||
.getDeployment().getServletContainer();
|
||||
return ((DeploymentManager) ReflectionTestUtils.getField(container,
|
||||
"manager")).getDeployment().getServletContainer();
|
||||
}
|
||||
finally {
|
||||
container.stop();
|
||||
|
||||
@@ -75,8 +75,7 @@ public class AtomikosPropertiesTests {
|
||||
assertThat(properties).contains(defaultOf(defaultSettings,
|
||||
"com.atomikos.icatch.max_timeout",
|
||||
"com.atomikos.icatch.default_jta_timeout",
|
||||
"com.atomikos.icatch.max_actives",
|
||||
"com.atomikos.icatch.enable_logging",
|
||||
"com.atomikos.icatch.max_actives", "com.atomikos.icatch.enable_logging",
|
||||
"com.atomikos.icatch.serial_jta_transactions",
|
||||
"com.atomikos.icatch.force_shutdown_on_vm_exit",
|
||||
"com.atomikos.icatch.log_base_name",
|
||||
@@ -96,7 +95,8 @@ public class AtomikosPropertiesTests {
|
||||
|
||||
private Properties loadDefaultSettings() {
|
||||
try {
|
||||
Class<?> target = ClassUtils.forName("com.atomikos.icatch.standalone.UserTransactionServiceImp",
|
||||
Class<?> target = ClassUtils.forName(
|
||||
"com.atomikos.icatch.standalone.UserTransactionServiceImp",
|
||||
getClass().getClassLoader());
|
||||
Method m = target.getMethod("getDefaultProperties");
|
||||
m.setAccessible(true);
|
||||
|
||||
Reference in New Issue
Block a user