-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #34 from GregDThomas/update-spotbugs
Bump com.github.spotbugs from 6.1.0 to 6.1.2 and fix newly identified…
Showing
8 changed files
with
113 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
import java.sql.Connection; | ||
import java.sql.PreparedStatement; | ||
import java.util.Date; | ||
import lombok.SneakyThrows; | ||
import org.jivesoftware.openfire.XMPPServer; | ||
import org.jivesoftware.openfire.user.User; | ||
import org.junit.jupiter.api.BeforeAll; | ||
|
@@ -31,7 +32,7 @@ class PasswordResetTokenManagerTest { | |
|
||
@BeforeAll | ||
@SuppressWarnings("deprecation") | ||
static void beforeAll() throws Exception { | ||
static void beforeAll() { | ||
Fixtures.reconfigureOpenfireHome(); | ||
XMPPServer.setInstance(Fixtures.mockXmppServer()); | ||
} | ||
|
@@ -45,7 +46,8 @@ static void beforeAll() throws Exception { | |
"ODR_OPEN_DATABASE_RESOURCE", | ||
"RV_RETURN_VALUE_IGNORED"}, | ||
justification = "All false positives!") | ||
void setUp() throws Exception { | ||
@SneakyThrows | ||
void setUp() { | ||
Fixtures.reconfigureOpenfireHome(); | ||
|
||
user = new User("test-username", "Test User", "[email protected]", new Date(), new Date()); | ||
|
@@ -61,7 +63,8 @@ void setUp() throws Exception { | |
@SuppressFBWarnings( | ||
value = {"UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"}, | ||
justification = "False positive") | ||
void willGenerateRandomTokenForUser() throws Exception { | ||
@SneakyThrows | ||
void willGenerateRandomTokenForUser() { | ||
final String token1 = resetTokenManager.generateToken(user, "localhost"); | ||
final String token2 = resetTokenManager.generateToken(user, "localhost"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters