Fix unchecked operations build warning
This commit is contained in:
@@ -397,6 +397,7 @@ public class JdbcOperationsSessionRepositoryTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void getSessionNotFound() {
|
public void getSessionNotFound() {
|
||||||
String sessionId = "testSessionId";
|
String sessionId = "testSessionId";
|
||||||
given(this.jdbcOperations.query(isA(String.class),
|
given(this.jdbcOperations.query(isA(String.class),
|
||||||
@@ -413,6 +414,7 @@ public class JdbcOperationsSessionRepositoryTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void getSessionExpired() {
|
public void getSessionExpired() {
|
||||||
MapSession expired = new MapSession();
|
MapSession expired = new MapSession();
|
||||||
expired.setLastAccessedTime(Instant.now().minusSeconds(
|
expired.setLastAccessedTime(Instant.now().minusSeconds(
|
||||||
@@ -433,6 +435,7 @@ public class JdbcOperationsSessionRepositoryTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void getSessionFound() {
|
public void getSessionFound() {
|
||||||
MapSession saved = new MapSession();
|
MapSession saved = new MapSession();
|
||||||
saved.setAttribute("savedName", "savedValue");
|
saved.setAttribute("savedName", "savedValue");
|
||||||
@@ -473,6 +476,7 @@ public class JdbcOperationsSessionRepositoryTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void findByIndexNameAndIndexValuePrincipalIndexNameNotFound() {
|
public void findByIndexNameAndIndexValuePrincipalIndexNameNotFound() {
|
||||||
String principal = "username";
|
String principal = "username";
|
||||||
given(this.jdbcOperations.query(isA(String.class),
|
given(this.jdbcOperations.query(isA(String.class),
|
||||||
@@ -491,6 +495,7 @@ public class JdbcOperationsSessionRepositoryTests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void findByIndexNameAndIndexValuePrincipalIndexNameFound() {
|
public void findByIndexNameAndIndexValuePrincipalIndexNameFound() {
|
||||||
String principal = "username";
|
String principal = "username";
|
||||||
Authentication authentication = new UsernamePasswordAuthenticationToken(principal,
|
Authentication authentication = new UsernamePasswordAuthenticationToken(principal,
|
||||||
|
|||||||
Reference in New Issue
Block a user