import { Logger, Options } from 'angular2-logger/core';
...
{
provide: Options,
useValue: {
store: false
}
This file contains 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
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() |
This file contains 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
@Test | |
void testMethod() throws Exception { | |
SecurityContextHolder.setContext( | |
SecurityContextHolder.createEmptyContext() | |
); | |
SecurityContextHolder.getContext().setAuthentication( | |
new TestingAuthenticationToken("TEST_USER", null) | |
); | |
} |
This file contains 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
package com.bjoernkw.gateway; | |
@Configuration | |
public class HttpToHttpsRedirectConfig { | |
@Value("${server.port}") | |
private Integer gatewayPort; | |
@PostConstruct | |
public WebServerFactoryCustomizer serverFactoryCustomizer() { |
This file contains 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
ng build --base-href /ROOT_DIRECTORY/ --deploy-url /ROOT_DIRECTORY/ --prod |
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 {
This file contains 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
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-activemq</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.activemq</groupId> | |
<artifactId>activemq-broker</artifactId> | |
</dependency> |
This file contains 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
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; |
This file contains 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
Verifying that +bjoernkw is my blockchain ID. https://onename.com/bjoernkw |
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: