BAEL-17439 Slice 18 | The top 100 articles should have their own package in the module (#7754)

This commit is contained in:
Dhawal Kapil 2019-09-10 17:12:41 +05:30 committed by Josh Cummings
parent c52a637aea
commit 4cfb4b8d25
4 changed files with 10 additions and 8 deletions

View File

@ -1,11 +1,12 @@
package com.baeldung.definition; package com.baeldung.springbean;
import com.baeldung.definition.domain.Address;
import com.baeldung.definition.domain.Company;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import com.baeldung.springbean.domain.Address;
import com.baeldung.springbean.domain.Company;
@Configuration @Configuration
@ComponentScan(basePackageClasses = Company.class) @ComponentScan(basePackageClasses = Company.class)
public class Config { public class Config {

View File

@ -1,4 +1,4 @@
package com.baeldung.definition.domain; package com.baeldung.springbean.domain;
import lombok.Data; import lombok.Data;

View File

@ -1,4 +1,4 @@
package com.baeldung.definition.domain; package com.baeldung.springbean.domain;
import lombok.Data; import lombok.Data;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

View File

@ -1,11 +1,12 @@
package com.baeldung.definition; package com.baeldung.springbean;
import static org.junit.Assert.assertEquals;
import com.baeldung.definition.domain.Company;
import org.junit.Test; import org.junit.Test;
import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import static org.junit.Assert.assertEquals; import com.baeldung.springbean.domain.Company;
public class SpringBeanIntegrationTest { public class SpringBeanIntegrationTest {
@Test @Test