Skip to content

Instantly share code, notes, and snippets.

@wreulicke
Last active August 29, 2019 06:41
Show Gist options
  • Save wreulicke/ce0a91a4ad3ac805063913805a6c540e to your computer and use it in GitHub Desktop.
Save wreulicke/ce0a91a4ad3ac805063913805a6c540e to your computer and use it in GitHub Desktop.
こんな感じで動いてほしい
@SpringBootTest
public class いい感じのテスト_案1 {
@TestConfiguration
public static Config {
@Bean
@ConfigurationProperties
ConfigProps configProps() {...}
}
}
@Configuration
public class いい感じのConfigraution {
@Bean
@ConfigurationProperties
ConfigProps configProps() {...}
}
public class ConfigProps {}
@SpringBootTest
@Import(いい感じのConfigraution.class)
public class いい感じのテスト_案2 {
}
@Configuration
public class いい感じのConfigraution {
@Bean
@ConfigurationProperties
ConfigProps configProps() {...}
}
public class ConfigProps {}
@SpringBootTest
@EnableConfigurationProperties(ConfigProps.class)
public class いい感じのテスト_案3 {
}
@Configuration
public class いい感じのConfigraution {
@Bean
ConfigProps configProps() {...}
}
@ConfigurationProperties
public class ConfigProps {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment