[JAVA-961] Standardize packages in spring-security-modules: spring-security-acl

This commit is contained in:
dupirefr 2020-03-19 20:48:49 +01:00
parent 0ed7b7dbeb
commit 2fa275119c
10 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.acl; package com.baeldung.acl;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;

View File

@ -1,4 +1,4 @@
package org.baeldung.acl.config; package com.baeldung.acl.config;
import javax.sql.DataSource; import javax.sql.DataSource;

View File

@ -1,4 +1,4 @@
package org.baeldung.acl.config; package com.baeldung.acl.config;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;

View File

@ -1,4 +1,4 @@
package org.baeldung.acl.config; package com.baeldung.acl.config;
import org.springframework.boot.autoconfigure.domain.EntityScan; import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@ -8,9 +8,9 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration @Configuration
@EnableTransactionManagement @EnableTransactionManagement
@EnableJpaRepositories(basePackages = "org.baeldung.acl.persistence.dao") @EnableJpaRepositories(basePackages = "com.baeldung.acl.persistence.dao")
@PropertySource("classpath:org.baeldung.acl.datasource.properties") @PropertySource("classpath:com.baeldung.acl.datasource.properties")
@EntityScan(basePackages={ "org.baeldung.acl.persistence.entity" }) @EntityScan(basePackages={ "com.baeldung.acl.persistence.entity" })
public class JPAPersistenceConfig { public class JPAPersistenceConfig {
} }

View File

@ -1,8 +1,8 @@
package org.baeldung.acl.persistence.dao; package com.baeldung.acl.persistence.dao;
import java.util.List; import java.util.List;
import org.baeldung.acl.persistence.entity.NoticeMessage; import com.baeldung.acl.persistence.entity.NoticeMessage;
import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param; import org.springframework.data.repository.query.Param;
import org.springframework.security.access.prepost.PostAuthorize; import org.springframework.security.access.prepost.PostAuthorize;

View File

@ -1,4 +1,4 @@
package org.baeldung.acl.persistence.entity; package com.baeldung.acl.persistence.entity;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;

View File

@ -4,7 +4,7 @@ INSERT INTO acl_sid (id, principal, sid) VALUES
(3, 0, 'ROLE_EDITOR'); (3, 0, 'ROLE_EDITOR');
INSERT INTO acl_class (id, class) VALUES INSERT INTO acl_class (id, class) VALUES
(1, 'org.baeldung.acl.persistence.entity.NoticeMessage'); (1, 'com.baeldung.acl.persistence.entity.NoticeMessage');
INSERT INTO system_message(id,content) VALUES INSERT INTO system_message(id,content) VALUES
(1,'First Level Message'), (1,'First Level Message'),

View File

@ -1,12 +1,12 @@
package org.baeldung.acl; package com.baeldung.acl;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNotNull;
import java.util.List; import java.util.List;
import org.baeldung.acl.persistence.dao.NoticeMessageRepository; import com.baeldung.acl.persistence.dao.NoticeMessageRepository;
import org.baeldung.acl.persistence.entity.NoticeMessage; import com.baeldung.acl.persistence.entity.NoticeMessage;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -39,7 +39,7 @@ public class SpringACLIntegrationTest extends AbstractJUnit4SpringContextTests{
private static String EDITTED_CONTENT = "EDITED"; private static String EDITTED_CONTENT = "EDITED";
@Configuration @Configuration
@ComponentScan("org.baeldung.acl.*") @ComponentScan("com.baeldung.acl.*")
public static class SpringConfig { public static class SpringConfig {
} }

View File

@ -1,6 +1,6 @@
package org.baeldung; package org.baeldung;
import org.baeldung.acl.Application; import com.baeldung.acl.Application;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;