Skip to content

Commit 278a322

Browse files
committed
Try catch doesnt make any sense here (why continue?)
1 parent 522674d commit 278a322

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/test/java/com/rusticisoftware/tincan/RemoteLRSTest.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.util.ArrayList;
2424
import java.util.List;
2525
import java.util.Properties;
26+
import java.util.logging.Level;
2627

2728
import lombok.extern.java.Log;
2829

@@ -349,17 +350,13 @@ public void testRetrieveState() throws Exception {
349350
Assert.assertEquals(value, new String(retrievedState.getContents()));
350351
}
351352

352-
private RemoteLRS getLRS() {
353+
private RemoteLRS getLRS() throws Exception {
353354
return getLRS(TCAPIVersion.V100);
354355
}
355356

356-
private RemoteLRS getLRS(TCAPIVersion version) {
357+
private RemoteLRS getLRS(TCAPIVersion version) throws Exception {
357358
RemoteLRS obj = new RemoteLRS();
358-
try {
359-
obj.setEndpoint(config.getProperty("endpoint"));
360-
} catch (MalformedURLException e) {
361-
e.printStackTrace();
362-
}
359+
obj.setEndpoint(config.getProperty("endpoint"));
363360
obj.setVersion(version);
364361
obj.setUsername(config.getProperty("username"));
365362
obj.setPassword(config.getProperty("password"));

0 commit comments

Comments
 (0)