[BAEL-15990] - Moved org.baeldung to com.baeldung
This commit is contained in:
parent
574f0c2bd6
commit
527e4aa41c
|
@ -1 +1 @@
|
|||
application.theme.color=blue
|
||||
application.theme.color=red
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.core;
|
||||
package com.baeldung.properties.core;
|
||||
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.core;
|
||||
package com.baeldung.properties.core;
|
||||
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.ImportResource;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.spring;
|
||||
package com.baeldung.properties.spring;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.spring;
|
||||
package com.baeldung.properties.spring;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.spring;
|
||||
package com.baeldung.properties.spring;
|
||||
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.spring;
|
||||
package com.baeldung.properties.spring;
|
||||
|
||||
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
||||
import org.springframework.context.annotation.Bean;
|
|
@ -1,3 +1,4 @@
|
|||
management.endpoints.web.exposure.include=refresh
|
||||
spring.properties.refreshDelay=1000
|
||||
spring.config.location=file:extra.properties
|
||||
spring.main.allow-bean-definition-overriding=true
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<context:property-placeholder location="classpath:foo.properties,classpath:bar.properties"/>
|
||||
|
||||
<bean id="componentInXmlUsingProperties" class="org.baeldung.properties.core.ComponentInXmlUsingProperties">
|
||||
<bean id="componentInXmlUsingProperties" class="com.baeldung.properties.core.ComponentInXmlUsingProperties">
|
||||
<constructor-arg value="${key.something}"/>
|
||||
</bean>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<context:property-placeholder location="classpath:foo.properties" ignore-unresolvable="true" order="1"/>
|
||||
|
||||
<bean id="componentInXmlUsingProperties" class="org.baeldung.properties.core.ComponentInXmlUsingProperties">
|
||||
<bean id="componentInXmlUsingProperties" class="com.baeldung.properties.core.ComponentInXmlUsingProperties">
|
||||
<constructor-arg value="${key.something2}"/>
|
||||
</bean>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package org.baeldung.properties.basic;
|
||||
package com.baeldung.properties.basic;
|
||||
|
||||
import org.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -10,6 +9,8 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { BasicPropertiesWithJavaConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class BasicPropertiesWithJavaIntegrationTest {
|
|
@ -1,7 +1,5 @@
|
|||
package org.baeldung.properties.basic;
|
||||
package com.baeldung.properties.basic;
|
||||
|
||||
import org.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
||||
import org.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -11,6 +9,9 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.properties.spring.BasicPropertiesWithJavaConfig;
|
||||
import com.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { BasicPropertiesWithJavaConfig.class, PropertiesWithJavaConfigOther.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class ExtendedPropertiesWithJavaIntegrationTest {
|
|
@ -1,6 +1,5 @@
|
|||
package org.baeldung.properties.basic;
|
||||
package com.baeldung.properties.basic;
|
||||
|
||||
import org.baeldung.properties.spring.PropertiesWithJavaConfig;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -10,6 +9,8 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.properties.spring.PropertiesWithJavaConfig;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { PropertiesWithJavaConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
public class PropertiesWithJavaIntegrationTest {
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.basic;
|
||||
package com.baeldung.properties.basic;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.basic;
|
||||
package com.baeldung.properties.basic;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
|
@ -1,6 +1,5 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -11,6 +10,9 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithJavaConfig;
|
||||
import com.baeldung.properties.spring.PropertiesWithJavaConfigOther;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { ExternalPropertiesWithJavaConfig.class, PropertiesWithJavaConfigOther.class }, loader = AnnotationConfigContextLoader.class)
|
||||
@Ignore("manual only")
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
@ -10,6 +10,9 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithXmlConfigOne;
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithXmlConfigTwo;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfigOne.class, ExternalPropertiesWithXmlConfigTwo.class }, loader = AnnotationConfigContextLoader.class)
|
||||
@Ignore("manual only")
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.external;
|
||||
package com.baeldung.properties.external;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
@ -10,6 +10,8 @@ import org.springframework.test.context.ContextConfiguration;
|
|||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.test.context.support.AnnotationConfigContextLoader;
|
||||
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithXmlConfig;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { ExternalPropertiesWithXmlConfig.class }, loader = AnnotationConfigContextLoader.class)
|
||||
@Ignore("manual only")
|
|
@ -1,10 +1,11 @@
|
|||
package org.baeldung.properties.multiple;
|
||||
package com.baeldung.properties.multiple;
|
||||
|
||||
import org.baeldung.properties.spring.PropertiesWithJavaConfig;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
|
||||
|
||||
import com.baeldung.properties.spring.PropertiesWithJavaConfig;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@SpringJUnitConfig(PropertiesWithJavaConfig.class)
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.multiple;
|
||||
package com.baeldung.properties.multiple;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.parentchild;
|
||||
package com.baeldung.properties.parentchild;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
|
@ -1,10 +1,8 @@
|
|||
package org.baeldung.properties.parentchild;
|
||||
package com.baeldung.properties.parentchild;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
import org.baeldung.properties.parentchild.config.ChildConfig2;
|
||||
import org.baeldung.properties.parentchild.config.ParentConfig2;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -15,6 +13,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|||
import org.springframework.test.context.web.WebAppConfiguration;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
import com.baeldung.properties.parentchild.config.ChildConfig2;
|
||||
import com.baeldung.properties.parentchild.config.ParentConfig2;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@WebAppConfiguration
|
||||
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig2.class), @ContextConfiguration(classes = ChildConfig2.class) })
|
|
@ -1,10 +1,8 @@
|
|||
package org.baeldung.properties.parentchild;
|
||||
package com.baeldung.properties.parentchild;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
import org.baeldung.properties.parentchild.config.ChildConfig;
|
||||
import org.baeldung.properties.parentchild.config.ParentConfig;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -15,6 +13,9 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|||
import org.springframework.test.context.web.WebAppConfiguration;
|
||||
import org.springframework.web.context.WebApplicationContext;
|
||||
|
||||
import com.baeldung.properties.parentchild.config.ChildConfig;
|
||||
import com.baeldung.properties.parentchild.config.ParentConfig;
|
||||
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@WebAppConfiguration
|
||||
@ContextHierarchy({ @ContextConfiguration(classes = ParentConfig.class), @ContextConfiguration(classes = ChildConfig.class) })
|
|
@ -1,4 +1,4 @@
|
|||
package org.baeldung.properties.parentchild;
|
||||
package com.baeldung.properties.parentchild;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
|
@ -1,11 +1,12 @@
|
|||
package org.baeldung.properties.parentchild.config;
|
||||
package com.baeldung.properties.parentchild.config;
|
||||
|
||||
import org.baeldung.properties.parentchild.ChildValueHolder;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
|
||||
import com.baeldung.properties.parentchild.ChildValueHolder;
|
||||
|
||||
@Configuration
|
||||
@PropertySource("classpath:child.properties")
|
||||
public class ChildConfig {
|
|
@ -1,11 +1,12 @@
|
|||
package org.baeldung.properties.parentchild.config;
|
||||
package com.baeldung.properties.parentchild.config;
|
||||
|
||||
import org.baeldung.properties.parentchild.ChildValueHolder;
|
||||
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import com.baeldung.properties.parentchild.ChildValueHolder;
|
||||
|
||||
@Configuration
|
||||
public class ChildConfig2 {
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
package org.baeldung.properties.parentchild.config;
|
||||
package com.baeldung.properties.parentchild.config;
|
||||
|
||||
import org.baeldung.properties.parentchild.ParentValueHolder;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.PropertySource;
|
||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||
|
||||
import com.baeldung.properties.parentchild.ParentValueHolder;
|
||||
|
||||
@Configuration
|
||||
@PropertySource("classpath:parent.properties")
|
||||
public class ParentConfig {
|
|
@ -1,11 +1,12 @@
|
|||
package org.baeldung.properties.parentchild.config;
|
||||
package com.baeldung.properties.parentchild.config;
|
||||
|
||||
import org.baeldung.properties.parentchild.ParentValueHolder;
|
||||
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import com.baeldung.properties.parentchild.ParentValueHolder;
|
||||
|
||||
@Configuration
|
||||
public class ParentConfig2 {
|
||||
|
|
@ -1,15 +1,16 @@
|
|||
package org.baeldung.test;
|
||||
package com.baeldung.test;
|
||||
|
||||
import org.baeldung.properties.basic.ExtendedPropertiesWithJavaIntegrationTest;
|
||||
import org.baeldung.properties.basic.PropertiesWithMultipleXmlsIntegrationTest;
|
||||
import org.baeldung.properties.basic.PropertiesWithXmlIntegrationTest;
|
||||
import org.baeldung.properties.external.ExternalPropertiesWithJavaIntegrationTest;
|
||||
import org.baeldung.properties.external.ExternalPropertiesWithMultipleXmlsIntegrationTest;
|
||||
import org.baeldung.properties.external.ExternalPropertiesWithXmlManualTest;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
|
||||
import com.baeldung.properties.basic.ExtendedPropertiesWithJavaIntegrationTest;
|
||||
import com.baeldung.properties.basic.PropertiesWithMultipleXmlsIntegrationTest;
|
||||
import com.baeldung.properties.basic.PropertiesWithXmlIntegrationTest;
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithJavaIntegrationTest;
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithMultipleXmlsIntegrationTest;
|
||||
import com.baeldung.properties.external.ExternalPropertiesWithXmlManualTest;
|
||||
|
||||
@RunWith(Suite.class)
|
||||
@SuiteClasses({ //@formatter:off
|
||||
PropertiesWithXmlIntegrationTest.class,
|
|
@ -1,3 +1,4 @@
|
|||
management.endpoints.web.exposure.include=refresh
|
||||
spring.properties.refreshDelay=1000
|
||||
spring.config.location=file:extra.properties
|
||||
spring.config.location=file:extra.properties
|
||||
spring.main.allow-bean-definition-overriding=true
|
Loading…
Reference in New Issue