Java Code Examples for org.springframework.cloud.config.environment.Environment#getVersion()

The following examples show how to use org.springframework.cloud.config.environment.Environment#getVersion() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultipleJGitEnvironmentProfilePlaceholderRepositoryTests.java    From spring-cloud-config with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Environment environment) {
	String version = environment.getVersion();
	assertThat(version).as("version was null").isNotNull();
	assertThat(version.length() >= 40 && version.length() <= 64)
			.as("version length was wrong").isTrue();
}
 
Example 2
Source File: MultipleJGitEnvironmentLabelPlaceholderRepositoryTests.java    From spring-cloud-config with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Environment environment) {
	String version = environment.getVersion();
	assertThat(version).as("version was null").isNotNull();
	assertThat(version.length() >= 40 && version.length() <= 64)
			.as("version length was wrong").isTrue();
}
 
Example 3
Source File: MultipleJGitEnvironmentApplicationPlaceholderRepositoryTests.java    From spring-cloud-config with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Environment environment) {
	String version = environment.getVersion();
	assertThat(version).as("version was null").isNotNull();
	assertThat(version.length() >= 40 && version.length() <= 64)
			.as("version length was wrong").isTrue();
}
 
Example 4
Source File: JGitEnvironmentRepositoryTests.java    From spring-cloud-config with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Environment environment) {
	String version = environment.getVersion();
	assertThat(version).as("version was null").isNotNull();
	assertTrue("version length was wrong",
			version.length() >= 40 && version.length() <= 64);
}
 
Example 5
Source File: MultipleJGitEnvironmentRepositoryTests.java    From spring-cloud-config with Apache License 2.0 4 votes vote down vote up
private void assertVersion(Environment environment) {
	String version = environment.getVersion();
	assertThat(version).as("version was null").isNotNull();
	assertThat(version.length() >= 40 && version.length() <= 64)
			.as("version length was wrong").isTrue();
}