This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public FilterChainProxy samlFilter() throws Exception { | |
List<SecurityFilterChain> chains = new ArrayList<SecurityFilterChain>(); | |
chains.add(new DefaultSecurityFilterChain( | |
new AntPathRequestMatcher("/saml/metadata/**"), metadataDisplayFilter())); | |
return new FilterChainProxy(chains); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public MetadataGeneratorFilter metadataGeneratorFilter() { | |
MetadataGenerator metadataGenerator = new MetadataGenerator(); | |
metadataGenerator.setEntityId("cz:swsamuraj:wicket:spring:sp"); | |
metadataGenerator.setKeyManager(keyManager()); | |
return new MetadataGeneratorFilter(metadataGenerator); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean | |
public MetadataProvider metadataProvider() | |
throws ResourceException, MetadataProviderException { | |
ClasspathResource resource = | |
new ClasspathResource("/metadata/FederationMetadata.xml"); | |
ResourceBackedMetadataProvider provider = new | |
ResourceBackedMetadataProvider(timer, resource); | |
provider.setParserPool(parserPool()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="INFO"> | |
<Loggers> | |
<Root level="off"/> | |
</Loggers> | |
</Configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[merge] | |
tool = vimdiff | |
conflictstyle = diff3 | |
[mergetool] | |
prompt = false | |
keepBackup = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ui] | |
merge = vimdiff | |
[merge-tools] | |
vimdiff.executable = vimdiff | |
vimdiff.args = -f -d $output -M $local $base $other -c "wincmd J" -c "set modifiable" -c "set write" | |
vimdiff.premerge = keep | |
[extensions] | |
hgext.extdiff = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'org.sonarqube' | |
ext { | |
sonarProjectName = 'blog-junit5-gradle' | |
sonarProjectKey = 'cz.swsamuraj.junit5.gradle' | |
jacocoDestinationFile = "${buildDir}/jacoco/test.exec" | |
jacocoExclusions = ['**/Main*'] | |
} | |
sonarqube { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'jacoco' | |
jacoco { | |
toolVersion = '0.7.9' | |
applyTo junitPlatformTest | |
} | |
jacocoTestReport { | |
afterEvaluate { | |
classDirectories = files(classDirectories.files.collect { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependencies> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-api</artifactId> | |
<version>5.0.1</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'org.junit.platform.gradle.plugin' | |
ext.junitVersion = '5.0.1' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { |