public final class TestPropertyValues extends ObjectSE
Environment
または system environment
SE に適用できます。修飾子と型 | クラスと説明 |
---|---|
static class | TestPropertyValues.Pair 単一の名前と値のペア。 |
static class | TestPropertyValues.Type プロパティソースの型。 |
修飾子と型 | メソッドと説明 |
---|---|
TestPropertyValues | and(StringSE... pairs) プロパティを追加するビルダーメソッド。 |
void | applyTo(ConfigurableApplicationContext context) 基になるマップから ApplicationContext が所有する環境にプロパティを追加します。 |
void | applyTo(ConfigurableEnvironment environment) 基になるマップから環境にプロパティを追加します。 |
void | applyTo(ConfigurableEnvironment environment, TestPropertyValues.Type type) 指定されたプロパティソース型を使用して、基礎となるマップから環境にプロパティを追加します。 |
void | applyTo(ConfigurableEnvironment environment, TestPropertyValues.Type type, StringSE name) 指定されたプロパティソース型と名前を使用して、基礎となるマップから環境にプロパティを追加します。 |
<T> T | applyToSystemProperties(CallableSE<T> call) call の期間中、system properties SE にプロパティを追加し、呼び出しが完了すると以前の値を復元します。 |
static TestPropertyValues | empty() 空の TestPropertyValues インスタンスを返します。 |
static TestPropertyValues | of(IterableSE<StringSE> pairs) 指定されたプロパティペアが入力された、基になるマップを含む新しい TestPropertyValues を返します。 |
static TestPropertyValues | of(StreamSE<StringSE> pairs) 指定されたプロパティペアが入力された、基になるマップを含む新しい TestPropertyValues を返します。 |
static TestPropertyValues | of(StringSE... pairs) 指定されたプロパティペアが入力された、基になるマップを含む新しい TestPropertyValues を返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public TestPropertyValues and(StringSE... pairs)
pairs
- 追加するプロパティのペア TestPropertyValues
インスタンス public void applyTo(ConfigurableApplicationContext context)
ApplicationContext
が所有する環境にプロパティを追加します。context
- 変更する環境を持つコンテキスト public void applyTo(ConfigurableEnvironment environment)
MapPropertySource
です。environment
- 変更が必要な環境 public void applyTo(ConfigurableEnvironment environment, TestPropertyValues.Type type)
environment
- 変更が必要な環境 type
- 追加する PropertySource
の型。TestPropertyValues.Type
を参照 public void applyTo(ConfigurableEnvironment environment, TestPropertyValues.Type type, StringSE name)
environment
- 変更が必要な環境 type
- 追加する PropertySource
の型。TestPropertyValues.Type
を参照 name
- プロパティソースの名前 public <T> T applyToSystemProperties(CallableSE<T> call)
call
の期間中、system properties
SE にプロパティを追加し、呼び出しが完了すると以前の値を復元します。T
- 結果の型 call
- するための呼び出し public static TestPropertyValues of(StringSE... pairs)
TestPropertyValues
を返します。名前と値のペアは、コロン(":")または等号("=")の区切り文字で指定できます。pairs
- 環境に追加する必要があるプロパティの名前と値のペア public static TestPropertyValues of(IterableSE<StringSE> pairs)
TestPropertyValues
を返します。名前と値のペアは、コロン(":")または等号("=")の区切り文字で指定できます。pairs
- 環境に追加する必要があるプロパティの名前と値のペア public static TestPropertyValues of(StreamSE<StringSE> pairs)
TestPropertyValues
を返します。名前と値のペアは、コロン(":")または等号("=")の区切り文字で指定できます。pairs
- 環境に追加する必要があるプロパティの名前と値のペア public static TestPropertyValues empty()
TestPropertyValues
インスタンスを返します。Copyright © 2019 Pivotal Software, Inc.. All rights reserved.