aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server/configuration/TestActivityConfiguration.java
blob: d043ed242753a034c92c36d25c69967685cee691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.juick.server.configuration;

import com.juick.server.KeystoreManager;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;

import java.io.IOException;

@Configuration
public class TestActivityConfiguration {
    @Value("classpath:test.p12")
    Resource keystoreFile;
    @Bean
    public KeystoreManager testKeystoreManager() throws IOException {
        return new KeystoreManager(keystoreFile, "secret");
    }
}