[BAEL-16733] - Update package name and tests in spring-security-core

This commit is contained in:
amit2103 2019-08-24 20:29:21 +05:30
parent a298c3925c
commit 7e1ee8740e
8 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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() {

View File

@ -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;

View File

@ -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;

View File

@ -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;