Skip to content

Commit e9e7748

Browse files
author
soh boon keong
committed
clean up
1 parent 7327274 commit e9e7748

File tree

7 files changed

+16
-30
lines changed

7 files changed

+16
-30
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
### V1.3.5-SNAPSHOT
44

55
- Fixed vulnerability CVE-2020-25649, CVE-2020-15522, CVE-2020-9488 and CVE-2019-17571
6-
- Updated bouncycastle to v1.69
7-
- Updated jackson-databind to v2.10.5.1
8-
- Removed slf4j, updated to log4j v2.14.1 for logging
6+
- Update dependency library for bouncycastle to version 1.69
7+
- Update dependency library for jackson-databind to version 2.10.5.1
8+
- Remove dependency library for slf4j, updated to log4j version 2.14.1 for logging
99

1010
### V1.3.4-SNAPSHOT
1111

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,25 @@ mvn install
6363
<dependency>
6464
<groupId>com.api.util</groupId>
6565
<artifactId>ApiSecurity</artifactId>
66-
<version>1.3.2-SNAPSHOT</version>
66+
<version>1.3.5-SNAPSHOT</version>
6767
</dependency>
6868
```
6969

7070
**Note:**
71-
* This project is leveraging on _slf4j-log4j12_ framework for the logging. If you are using logging implementation other than log4j, you can change to other type of implementation such as nop,simple,jdk14,logback. You could replace the following xml in pom.xml.
72-
* If your are using Log4j _Version2_, please refer to [Log4j2-SLF4J Binding](https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/index.html)
71+
* This project is leveraging on Log4j _Version2_ framework for the logging. If you are using logging implementation other than Log4j _Version2_ , you can change to other type of implementation such as nop,simple,jdk14,logback. You could replace the following xml in pom.xml.
7372

7473

7574
```xml
7675
<dependency>
77-
<groupId>org.slf4j</groupId>
78-
<artifactId>slf4j-log4j12</artifactId>
79-
<version>1.7.25</version>
76+
<groupId>org.apache.logging.log4j</groupId>
77+
<artifactId>log4j-api</artifactId>
78+
<version>2.14.1</version>
79+
</dependency>
80+
<dependency>
81+
<groupId>org.apache.logging.log4j</groupId>
82+
<artifactId>log4j-core</artifactId>
83+
<version>2.14.1</version>
8084
</dependency>
81-
8285
```
8386

8487
#### Maven Test
@@ -566,6 +569,6 @@ See [CHANGELOG.md](CHANGELOG.md).
566569

567570
## References
568571
+ [UTF-8 in Gradle](https://stackoverflow.com/questions/21267234/show-utf-8-text-properly-in-gradle)
569-
+ [SLF4J FAQ](https://www.slf4j.org/faq.html)
572+
+ [LOG4J2 FAQ](https://logging.apache.org/log4j/2.x/faq.html)
570573
+ [Akana API Consumer Security](http://docs.akana.com/ag/cm_policies/using_api_consumer_app_sec_policy.htm)
571574
+ [RSA and HMAC Request Signing Standard](http://tools.ietf.org/html/draft-cavage-http-signatures-05)

build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,19 @@ dependencies {
1919

2020
//gradle 4.0
2121
compile group: 'commons-lang', name: 'commons-lang', version: '2.4'
22-
//compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
2322
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.14.1'
2423
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.14.1'
2524
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.5.1'
2625
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
2726
compile group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'
2827

29-
//testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.32'
30-
testCompile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.14.1'
31-
testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.14.1'
3228
testCompile group: 'junit', name: 'junit', version: '4.13.1'
3329

3430
//gradle 6.9
3531
//implementation group: 'commons-lang', name: 'commons-lang', version: '2.4'
36-
//implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
3732
//implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.10.5.1'
3833
//implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
3934
//implementation group: 'org.bouncycastle', name: 'bcpkix-jdk15on', version: '1.69'
40-
//testImplementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.32'
4135
//testImplementation group: 'junit', name: 'junit', version: '4.13.1'
4236
}
4337

pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,7 @@
7777
<version>1.3</version>
7878
<scope>test</scope>
7979
</dependency>
80-
<!-- <dependency>
81-
<groupId>org.slf4j</groupId>
82-
<artifactId>slf4j-log4j12</artifactId>
83-
<version>1.7.32</version>
84-
</dependency> -->
85-
<dependency>
80+
<dependency>
8681
<groupId>org.apache.logging.log4j</groupId>
8782
<artifactId>log4j-api</artifactId>
8883
<version>2.14.1</version>

src/test/java/com/api/util/ApiSecurity/ApiSecurityTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
import java.util.Set;
1717

1818
import org.junit.runner.RunWith;
19-
//import org.slf4j.Logger;
20-
//import org.slf4j.LoggerFactory;
2119
import org.apache.logging.log4j.Logger;
2220
import org.apache.logging.log4j.LogManager;
2321

@@ -37,7 +35,6 @@
3735
@RunWith(JUnitFactoryRunner.class)
3836
public class ApiSecurityTest {
3937

40-
//private static final Logger log = LoggerFactory.getLogger(ApiSecurityTest.class);
4138
private static final Logger log = LogManager.getLogger(ApiSecurityTest.class);
4239

4340
private static final String testDataPath = getLocalPath("src/main/resources/test-suites/testData/");

src/test/java/com/api/util/testframework/RuntimeTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.api.util.testframework;
22

3-
//import org.slf4j.Logger;
4-
//import org.slf4j.LoggerFactory;
53
import org.apache.logging.log4j.Logger;
64
import org.apache.logging.log4j.LogManager;
75

@@ -52,6 +50,7 @@ public void setTestName(String testName) {
5250
*/
5351
@JUnitFactoryTest
5452
public void getSignatureBaseString() throws IOException, InterruptedException, ParseException {
53+
log.trace("Entering teset test application.");
5554
log.info("====================> Start :: RuntimeTestCase :: getSignatureBaseString :: testName : {} ", testName);
5655

5756
ExpectedResult expectedResult = testDatum.getExpectedResult();

src/test/java/com/api/util/testframework/RuntimeTestUtility.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.api.util.testframework;
22

3-
//import org.slf4j.Logger;
4-
//import org.slf4j.LoggerFactory;
53
import org.apache.logging.log4j.Logger;
64
import org.apache.logging.log4j.LogManager;
75

0 commit comments

Comments
 (0)