I hereby claim:
- I am BjoernKW on github.
- I am bjoernkw (https://keybase.io/bjoernkw) on keybase.
- I have a public key whose fingerprint is 6222 87E1 DE98 9114 AED0 2999 B658 5F6F 4206 A142
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Verifying that +bjoernkw is my blockchain ID. https://onename.com/bjoernkw |
import static org.springframework.data.mongodb.core.FindAndModifyOptions.options; | |
import static org.springframework.data.mongodb.core.query.Criteria.where; | |
import static org.springframework.data.mongodb.core.query.Query.query; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.data.mongodb.core.MongoOperations; | |
import org.springframework.data.mongodb.core.query.Update; | |
import org.springframework.stereotype.Service; | |
import com.model.CustomSequences; |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-activemq</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.activemq</groupId> | |
<artifactId>activemq-broker</artifactId> | |
</dependency> |
some.component.spec.ts:
import { TestModuleMetadata } from '@angular/core/testing';
import { createOtherTestModuleMetadata } from 'other.component.spec';
import { compileTestModuleMetadata } from 'app.module';
...
export function createSomeComponentTestModuleMetadata(): TestModuleMetadata {
import { Logger, Options } from 'angular2-logger/core';
...
{
provide: Options,
useValue: {
store: false
}
ng build --base-href /ROOT_DIRECTORY/ --deploy-url /ROOT_DIRECTORY/ --prod |
package com.bjoernkw.gateway; | |
@Configuration | |
public class HttpToHttpsRedirectConfig { | |
@Value("${server.port}") | |
private Integer gatewayPort; | |
@PostConstruct | |
public WebServerFactoryCustomizer serverFactoryCustomizer() { |
@Test | |
void testMethod() throws Exception { | |
SecurityContextHolder.setContext( | |
SecurityContextHolder.createEmptyContext() | |
); | |
SecurityContextHolder.getContext().setAuthentication( | |
new TestingAuthenticationToken("TEST_USER", null) | |
); | |
} |
package com.bjoernkw.testing; | |
import org.springframework.security.authentication.TestingAuthenticationToken; | |
import org.springframework.security.core.context.SecurityContextHolder; | |
public class SecurityContextFactory { | |
public static void createSecurityContext(String username) { | |
SecurityContextHolder.setContext( | |
SecurityContextHolder.createEmptyContext() |