[BAEL-16733] - Update package name and tests in spring-security-core
This commit is contained in:
parent
a298c3925c
commit
7e1ee8740e
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung;
|
package com.baeldung;
|
||||||
|
|
||||||
import org.baeldung.app.App;
|
import org.baeldung.app.App;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung;
|
package com.baeldung;
|
||||||
|
|
||||||
import org.baeldung.app.App;
|
import org.baeldung.app.App;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung.methodsecurity;
|
package com.baeldung.methodsecurity;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@ContextConfiguration
|
@ContextConfiguration
|
||||||
public class TestClassLevelSecurity {
|
public class TestClassLevelSecurityUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
SystemService systemService;
|
SystemService systemService;
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung.methodsecurity;
|
package com.baeldung.methodsecurity;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertTrue;
|
import static org.junit.Assert.assertTrue;
|
||||||
@ -21,7 +21,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@ContextConfiguration
|
@ContextConfiguration
|
||||||
public class TestMethodSecurity {
|
public class TestMethodSecurityUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
UserRoleService userRoleService;
|
UserRoleService userRoleService;
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung.methodsecurity;
|
package com.baeldung.methodsecurity;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@ContextConfiguration
|
@ContextConfiguration
|
||||||
@WithMockUser(username = "john", roles = { "VIEWER" })
|
@WithMockUser(username = "john", roles = { "VIEWER" })
|
||||||
public class TestWithMockUserAtClassLevel {
|
public class TestWithMockUserAtClassLevelUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenRoleViewer_whenCallGetUsername_thenReturnUsername() {
|
public void givenRoleViewer_whenCallGetUsername_thenReturnUsername() {
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung.methodsecurity;
|
package com.baeldung.methodsecurity;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|||||||
|
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
@ContextConfiguration
|
@ContextConfiguration
|
||||||
public class TestWithUserDetails {
|
public class TestWithUserDetailsUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
UserRoleService userService;
|
UserRoleService userService;
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung.methodsecurity;
|
package com.baeldung.methodsecurity;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
@ -1,4 +1,4 @@
|
|||||||
package org.baeldung.test;
|
package com.baeldung.test;
|
||||||
|
|
||||||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
||||||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
|
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
|
Loading…
x
Reference in New Issue
Block a user