All Downloads are FREE. Search and download functionalities are using the official Maven repository.

te.recipe.rewrite-spring.5.7.0.source-code.TestPropertyValues Maven / Gradle / Ivy

Go to download

Eliminate legacy Spring patterns and migrate between major Spring Boot versions. Automatically.

There is a newer version: 5.19.0
Show newest version
/*
 * Copyright 2021 the original author or authors.
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* https://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.boot.test.util; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; import org.springframework.core.env.MutablePropertySources; import java.util.concurrent.Callable; import java.util.stream.Stream; public final class TestPropertyValues { public TestPropertyValues and(String... pairs) { return this; } private TestPropertyValues and(Stream pairs) { return this; } public void applyTo(ConfigurableApplicationContext context) {} public void applyTo(ConfigurableEnvironment environment) {} public void applyTo(ConfigurableEnvironment environment, TestPropertyValues.Type type) {} public void applyTo(ConfigurableEnvironment environment, TestPropertyValues.Type type, String name) {} public T applyToSystemProperties(Callable call) { return null; } private void rethrow(Throwable e) throws E {} private void addToSources(MutablePropertySources sources, TestPropertyValues.Type type, String name) {} public static TestPropertyValues of(String... pairs) { return null; } public static TestPropertyValues of(Iterable pairs) { return null; } public static TestPropertyValues of(Stream pairs) { return null; } public static TestPropertyValues empty() { return null; } public static class Pair {} public enum Type {SYSTEM_ENVIRONMENT, MAP} }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy