Merge branch '6.0.x'
This commit is contained in:
@@ -102,18 +102,3 @@ class BeforeAdviceBindingTests {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class AuthenticationLogger {
|
||||
|
||||
public void logAuthenticationAttempt(String username) {
|
||||
System.out.println("User [" + username + "] attempting to authenticate");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class SecurityManager {
|
||||
public boolean authenticate(String username, String password) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -187,7 +187,6 @@ class CommonsPool2TargetSourceTests {
|
||||
|
||||
// release all objects
|
||||
for (int i = 0; i < pooledInstances.length; i++) {
|
||||
System.out.println(i);
|
||||
targetSource.releaseTarget(pooledInstances[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,10 @@ public class Assembler implements TestIF {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private Service service;
|
||||
|
||||
private Logic l;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private String name;
|
||||
|
||||
public void setService(Service service) {
|
||||
@@ -42,7 +45,6 @@ public class Assembler implements TestIF {
|
||||
}
|
||||
|
||||
public void output() {
|
||||
System.out.println("Bean " + name);
|
||||
l.output();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,6 +20,7 @@ import org.springframework.beans.factory.BeanNameAware;
|
||||
|
||||
public class Logic implements BeanNameAware {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private String name;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
@@ -35,7 +36,7 @@ public class Logic implements BeanNameAware {
|
||||
}
|
||||
|
||||
public void output() {
|
||||
System.out.println("Bean " + name);
|
||||
// System.out.println("Bean " + name);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,6 +31,7 @@ import javax.management.remote.JMXConnectorServer;
|
||||
import javax.management.remote.JMXConnectorServerFactory;
|
||||
import javax.management.remote.JMXServiceURL;
|
||||
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.aop.framework.ProxyFactory;
|
||||
@@ -198,9 +199,8 @@ class MBeanClientInterceptorTests extends AbstractMBeanServerTests {
|
||||
connector.start();
|
||||
}
|
||||
catch (BindException ex) {
|
||||
System.out.println("Skipping remainder of JMX LazyConnectionToRemote test because binding to local port ["
|
||||
+ port + "] failed: " + ex.getMessage());
|
||||
return;
|
||||
Assumptions.abort("Skipping remainder of JMX LazyConnectionToRemote test because binding to local port [" +
|
||||
port + "] failed: " + ex.getMessage());
|
||||
}
|
||||
|
||||
// should now be able to access data via the lazy proxy
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,6 +27,7 @@ import javax.management.remote.JMXConnectorServerFactory;
|
||||
import javax.management.remote.JMXServiceURL;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assumptions;
|
||||
|
||||
import org.springframework.core.testfixture.net.TestSocketUtils;
|
||||
|
||||
@@ -56,9 +57,9 @@ class RemoteMBeanClientInterceptorTests extends MBeanClientInterceptorTests {
|
||||
this.connectorServer.start();
|
||||
}
|
||||
catch (BindException ex) {
|
||||
System.out.println("Skipping remote JMX tests because binding to local port ["
|
||||
+ this.servicePort + "] failed: " + ex.getMessage());
|
||||
runTests = false;
|
||||
Assumptions.abort("Skipping remote JMX tests because binding to local port [" +
|
||||
this.servicePort + "] failed: " + ex.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user