org.assertj.core.util.VisibleForTesting Java Examples

The following examples show how to use org.assertj.core.util.VisibleForTesting. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BuildOperations.java    From spring-data-dev-tools with Apache License 2.0 5 votes vote down vote up
/**
 * Prepares the version of the given {@link ModuleIteration} depending on the given {@link Phase}.
 *
 * @param iteration must not be {@literal null}.
 * @param phase must not be {@literal null}.
 * @return
 */
@VisibleForTesting
public ModuleIteration prepareVersion(ModuleIteration iteration, Phase phase) {

	Assert.notNull(iteration, "Module iteration must not be null!");
	Assert.notNull(phase, "Phase must not be null!");

	return doWithBuildSystem(iteration, (system, module) -> system.prepareVersion(module, phase));
}
 
Example #2
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 5 votes vote down vote up
@VisibleForTesting
protected HTTPArtifactBinding createDefaultArtifactBinding(ServiceProviderBuilder builder) {
    HttpClientParams params = new HttpClientParams();
    params.setIntParameter(HttpConnectionParams.CONNECTION_TIMEOUT, 60000);
    HttpClient httpClient = new HttpClient(params, new MultiThreadedHttpConnectionManager());
    ArtifactResolutionProfileImpl artifactResolutionProfile = new ArtifactResolutionProfileImpl(httpClient);
    builder.setSharedObject(ArtifactResolutionProfile.class, artifactResolutionProfile);
    HTTPSOAP11Binding soapBinding = new HTTPSOAP11Binding(parserPool);
    artifactResolutionProfile.setProcessor(new SAMLProcessorImpl(soapBinding));
    return new HTTPArtifactBinding(parserPool, getVelocityEngine(), artifactResolutionProfile);
}
 
Example #3
Source File: TLSConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected TLSProtocolConfigurer createDefaultTlsProtocolConfigurer() {
    return new TLSProtocolConfigurer();
}
 
Example #4
Source File: SSOConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SavedRequestAwareAuthenticationSuccessHandler createDefaultSuccessHandler() {
    return new SavedRequestAwareAuthenticationSuccessHandler();
}
 
Example #5
Source File: SSOConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SimpleUrlAuthenticationFailureHandler createDefaultFailureHandler() {
    return new SimpleUrlAuthenticationFailureHandler();
}
 
Example #6
Source File: SSOConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLProcessingFilter createDefaultSamlProcessingFilter() {
    SAMLProcessingFilter filter = new SAMLProcessingFilter();
    filter.setApplicationEventPublisher(eventPublisher);
    return filter;
}
 
Example #7
Source File: SSOConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLDiscovery createDefaultSamlDiscoveryFilter() {
    return new SAMLDiscovery();
}
 
Example #8
Source File: SSOConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLEntryPoint createDefaultSamlEntryPoint() {
    return new SAMLEntryPoint();
}
 
Example #9
Source File: SSOConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLWebSSOHoKProcessingFilter createDefaultSamlHoKProcessingFilter() {
    SAMLWebSSOHoKProcessingFilter filter = new SAMLWebSSOHoKProcessingFilter();
    filter.setApplicationEventPublisher(eventPublisher);
    return filter;
}
 
Example #10
Source File: SAMLContextProviderLBConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLContextProviderLB createDefaultSamlContextProviderLB() {
    return new SAMLContextProviderLB();
}
 
Example #11
Source File: SingleLogoutProfileConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SingleLogoutProfile createDefaultSingleLogoutProfile() {
    return new SingleLogoutProfileImpl();
}
 
Example #12
Source File: WebSSOProfileHoKConsumerConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected WebSSOProfileConsumerHoKImpl createDefaultWebSSOProfileConsumerHoK() {
    return new WebSSOProfileConsumerHoKImpl();
}
 
Example #13
Source File: LogoutConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SimpleUrlLogoutSuccessHandler createDefaultSuccessHandler() {
    return new SimpleUrlLogoutSuccessHandler();
}
 
Example #14
Source File: LogoutConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SecurityContextLogoutHandler createDefaultGlobalHandler() {
    return new SecurityContextLogoutHandler();
}
 
Example #15
Source File: LogoutConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SecurityContextLogoutHandler createDefaultLocalHandler() {
    return new SecurityContextLogoutHandler();
}
 
Example #16
Source File: SnapshotFile.java    From json-snapshot.github.io with MIT License 4 votes vote down vote up
@VisibleForTesting
static String[] split(final String lines) {
  return lines.split(SPLIT_REGEXP);
}
 
Example #17
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLProcessorImpl createDefaultSamlProcessor(List<SAMLBinding> bindings) {
    return new SAMLProcessorImpl(bindings);
}
 
Example #18
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected HTTPRedirectDeflateBinding createDefaultRedirectBinding() {
    return new HTTPRedirectDeflateBinding(parserPool);
}
 
Example #19
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected HTTPPostBinding createDefaultPostBinding() {
    return new HTTPPostBinding(parserPool, getVelocityEngine());
}
 
Example #20
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected HTTPSOAP11Binding createDefaultSoapBinding() {
    return new HTTPSOAP11Binding(parserPool);
}
 
Example #21
Source File: SAMLProcessorConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected HTTPPAOS11Binding createDefaultPaosBinding() {
    return new HTTPPAOS11Binding(parserPool);
}
 
Example #22
Source File: WebSSOProfileECPConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected WebSSOProfileECPImpl createDefaultWebSSOProfileECP() {
    return new WebSSOProfileECPImpl();
}
 
Example #23
Source File: WebSSOProfileConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected WebSSOProfile createDefaultWebSSOProfile() {
    return new WebSSOProfileImpl();
}
 
Example #24
Source File: MetadataManagerConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected ExtendedMetadataDelegate createDefaultExtendedMetadataDelegate(MetadataProvider provider, ExtendedMetadata extendedMetadata) {
    return new ExtendedMetadataDelegate(provider, extendedMetadata);
}
 
Example #25
Source File: MetadataManagerConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected CachingMetadataManager createDefaultMetadataManager() throws MetadataProviderException {
    return new CachingMetadataManager(null);
}
 
Example #26
Source File: MetadataManagerConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected MetadataProvider createDefaultMetadataProvider(String location) throws ResourceException, MetadataProviderException {
    return new ResourceBackedMetadataProvider(new Timer(),
            new SpringResourceWrapperOpenSAMLResource(resourceLoader.getResource(location.trim())));
}
 
Example #27
Source File: SAMLContextProviderConfigurer.java    From spring-boot-security-saml with MIT License 4 votes vote down vote up
@VisibleForTesting
protected SAMLContextProvider createDefaultSamlContextProvider() {
    return new SAMLContextProviderImpl();
}