Skip to content

Commit 4eaaf88

Browse files
dreis2211mbhave
authored andcommitted
Remove redundant code
See gh-20339
1 parent f483459 commit 4eaaf88

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/SessionsEndpointDocumentationTests.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,10 +93,6 @@ void sessionsForUsername() throws Exception {
9393

9494
@Test
9595
void sessionWithId() throws Exception {
96-
Map<String, Session> sessions = new HashMap<>();
97-
sessions.put(sessionOne.getId(), sessionOne);
98-
sessions.put(sessionTwo.getId(), sessionTwo);
99-
sessions.put(sessionThree.getId(), sessionThree);
10096
given(this.sessionRepository.findById(sessionTwo.getId())).willReturn(sessionTwo);
10197
this.mockMvc.perform(get("/actuator/sessions/{id}", sessionTwo.getId())).andExpect(status().isOk())
10298
.andDo(document("sessions/id", responseFields(sessionFields)));

0 commit comments

Comments
 (0)