Skip to content

Commit a22a30e

Browse files
authored
test: fix exception list in test definition (#81)
1 parent 32aafb9 commit a22a30e

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/test/java/io/supertokens/storage/postgresql/test/InMemoryDBTest.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ public void beforeEach() {
6060
}
6161

6262
@Test
63-
public void checkThatInMemDVWorksEvenIfWrongConfig()
64-
throws InterruptedException, StorageQueryException, NoSuchAlgorithmException, InvalidKeyException,
65-
SignatureException, InvalidAlgorithmParameterException, NoSuchPaddingException, BadPaddingException,
66-
IOException, InvalidKeySpecException, IllegalBlockSizeException, StorageTransactionLogicException {
63+
public void checkThatInMemDVWorksEvenIfWrongConfig() throws Exception {
6764
{
6865
Utils.commentConfigValue("postgresql_user");
6966
Utils.commentConfigValue("postgresql_password");
@@ -104,10 +101,7 @@ public void checkThatInMemDVWorksEvenIfWrongConfig()
104101
}
105102

106103
@Test
107-
public void checkThatActualDBWorksIfCorrectConfigDev() throws InterruptedException, StorageQueryException,
108-
NoSuchAlgorithmException, InvalidKeyException, SignatureException, InvalidAlgorithmParameterException,
109-
NoSuchPaddingException, BadPaddingException, UnsupportedEncodingException, InvalidKeySpecException,
110-
IllegalBlockSizeException, StorageTransactionLogicException {
104+
public void checkThatActualDBWorksIfCorrectConfigDev() throws Exception {
111105
{
112106
String[] args = { "../" };
113107
TestingProcessManager.TestingProcess process = TestingProcessManager.start(args);
@@ -143,10 +137,7 @@ public void checkThatActualDBWorksIfCorrectConfigDev() throws InterruptedExcepti
143137
}
144138

145139
@Test
146-
public void checkThatActualDBWorksIfCorrectConfigProduction() throws InterruptedException, StorageQueryException,
147-
NoSuchAlgorithmException, InvalidKeyException, SignatureException, InvalidAlgorithmParameterException,
148-
NoSuchPaddingException, BadPaddingException, UnsupportedEncodingException, InvalidKeySpecException,
149-
IllegalBlockSizeException, StorageTransactionLogicException {
140+
public void checkThatActualDBWorksIfCorrectConfigProduction() throws Exception {
150141
{
151142
String[] args = { "../" };
152143
TestingProcessManager.TestingProcess process = TestingProcessManager.start(args);

0 commit comments

Comments
 (0)