File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
main/java/com/securenative
test/java/com/securenative/http Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 66 <groupId >com.securenative.java</groupId >
77 <artifactId >securenative-java</artifactId >
88 <packaging >jar</packaging >
9- <version >0.5.1 </version >
9+ <version >0.5.2 </version >
1010 <url >https://github.com/securenative/securenative-java</url >
1111
1212 <name >${project.groupId} :${project.artifactId} :${project.version} </name >
Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ private Logger(Class<?> clazz) {
4545 static void initLogger (String logLevel ) {
4646 try {
4747 _logLevel = LogLevel .valueOf (logLevel );
48- } catch (IllegalArgumentException ex ) {
49- _logLevel = LogLevel .ERROR ;
50- }
48+ } catch (IllegalArgumentException ignored ) {}
5149 }
5250
5351 public static Logger getLogger (Class <?> clazz ) {
Original file line number Diff line number Diff line change 11package com .securenative .http ;
22
33import com .securenative .config .ConfigurationManager ;
4- import com .securenative .exceptions .SecureNativeInvalidUriException ;
54import org .junit .jupiter .api .DisplayName ;
65import org .junit .jupiter .api .Test ;
76import org .junit .jupiter .api .Timeout ;
@@ -15,12 +14,9 @@ public class SecureNativeHTTPClientTest extends HTTPServerMock {
1514 @ Test
1615 @ Timeout (value = 1000 , unit = TimeUnit .MILLISECONDS )
1716 @ DisplayName ("Should make simple http post call" )
18- public void shouldMakeSimplePostCallTest () throws IOException , SecureNativeInvalidUriException {
19- configBuilder = ConfigurationManager .configBuilder ()
20- .withApiKey ("YOUR_API_KEY" );
21-
17+ public void shouldMakeSimplePostCallTest () throws IOException {
18+ configBuilder = ConfigurationManager .configBuilder ().withApiKey ("YOUR_API_KEY" );
2219 client = sandbox ().mock (200 , "SOME_BODY" );
23-
2420 String payload = "{\" event\" :\" SOME_EVENT_NAME\" }" ;
2521
2622 HttpResponse response = client .post ("track" , payload );
You can’t perform that action at this time.
0 commit comments