Skip to content

Commit

Permalink
Merge pull request #40449 from izeye
Browse files Browse the repository at this point in the history
* gh-40449:
  Polish

Closes gh-40449
  • Loading branch information
wilkinsona committed Apr 22, 2024
2 parents de560a9 + 3c76f81 commit c948bc6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public static class Registration {
*/
private final AssertingParty assertingparty = new AssertingParty();

/**
* Name ID format for a relying party registration.
*/
private String nameIdFormat;

public String getEntityId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public interface WebHttpHandlerBuilderCustomizer {

/**
* Callback to customize a {@link WebHttpHandlerBuilder} instance.
* @param webHttpHandlerBuilder the handlerBuilder to customize
* @param webHttpHandlerBuilder the {@link WebHttpHandlerBuilder} to customize
*/
void customize(WebHttpHandlerBuilder webHttpHandlerBuilder);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
import org.springframework.jdbc.datasource.init.DatabasePopulator;
import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.TransactionException;
import org.springframework.transaction.support.AbstractPlatformTransactionManager;
import org.springframework.transaction.support.DefaultTransactionStatus;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
Expand Down Expand Up @@ -517,61 +513,40 @@ private Job mockJob(String name) {
}

@Configuration(proxyBeanMethods = false)
protected static class BatchDataSourceConfiguration {
static class BatchDataSourceConfiguration {

@Bean
@Primary
public DataSource normalDataSource() {
DataSource normalDataSource() {
return DataSourceBuilder.create().url("jdbc:hsqldb:mem:normal").username("sa").build();
}

@BatchDataSource
@Bean
public DataSource batchDataSource() {
DataSource batchDataSource() {
return DataSourceBuilder.create().url("jdbc:hsqldb:mem:batchdatasource").username("sa").build();
}

}

@Configuration(proxyBeanMethods = false)
protected static class BatchTransactionManagerConfiguration {
static class BatchTransactionManagerConfiguration {

@Bean
public DataSource dataSource() {
DataSource dataSource() {
return DataSourceBuilder.create().url("jdbc:hsqldb:mem:database").username("sa").build();
}

@Bean
@Primary
public PlatformTransactionManager normalTransactionManager() {
return new TestTransactionManager();
PlatformTransactionManager normalTransactionManager() {
return mock(PlatformTransactionManager.class);
}

@BatchTransactionManager
@Bean
public PlatformTransactionManager batchTransactionManager() {
return new TestTransactionManager();
}

}

static class TestTransactionManager extends AbstractPlatformTransactionManager {

@Override
protected Object doGetTransaction() throws TransactionException {
return null;
}

@Override
protected void doBegin(Object transaction, TransactionDefinition definition) throws TransactionException {
}

@Override
protected void doCommit(DefaultTransactionStatus status) throws TransactionException {
}

@Override
protected void doRollback(DefaultTransactionStatus status) throws TransactionException {
PlatformTransactionManager batchTransactionManager() {
return mock(PlatformTransactionManager.class);
}

}
Expand Down
2 changes: 1 addition & 1 deletion spring-boot-project/spring-boot-dependencies/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ bom {
library("Pulsar", "3.2.2") {
group("org.apache.pulsar") {
imports = [
"pulsar-bom"
"pulsar-bom"
]
}
links {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ protected ActiveMQConnectionDetails getDockerComposeConnectionDetails(DockerComp
}

/**
* {@link ActiveMQConnectionDetails} backed by a {@code activemq}
* {@link ActiveMQConnectionDetails} backed by an {@code activemq}
* {@link RunningService}.
*/
static class ActiveMQDockerComposeConnectionDetails extends DockerComposeConnectionDetails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected ActiveMQConnectionDetails getDockerComposeConnectionDetails(DockerComp
}

/**
* {@link ActiveMQConnectionDetails} backed by a {@code activemq}
* {@link ActiveMQConnectionDetails} backed by an {@code activemq}
* {@link RunningService}.
*/
static class ActiveMQDockerComposeConnectionDetails extends DockerComposeConnectionDetails
Expand Down

0 comments on commit c948bc6

Please sign in to comment.