Skip to content

Commit 327578b

Browse files
committed
Fix syntax inconsitency for L2 test case , and include GRADLE_OPTS env variables in travis config
1 parent 77427e3 commit 327578b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ language: java
33
jdk:
44
- oraclejdk8
55

6+
env:
7+
- GRADLE_OPTS="-Dfile.encoding=utf-8"
8+
69
before_cache:
710
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
811
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ plugins {
66

77
version '1.0-SNAPSHOT'
88

9-
sourceCompatibility = 1.8
10-
119
tasks.withType(JavaCompile) {
1210
options.encoding = "UTF-8"
1311
}

src/test/java/L2SignatureTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,20 @@
1212
import com.api.util.ApiSecurity.ApiAuthorization;
1313

1414
/**
15-
* @author govtech
15+
* @author GDS-PDD
1616
*
1717
*/
1818
public class L2SignatureTest {
1919

2020
// file name follow unix convention...
2121
private static final String privateCertName = getLocalPath("certificates/alpha.test.p12");
22-
private static final String publicCertName = getLocalPath("Certificates/alpha.test.cer");
22+
private static final String publicCertName = getLocalPath("certificates/alpha.test.cer");
2323

2424
private static final String baseString = "message";
2525
private static final String password = "passwordkey";
2626
private static final String alias = "alpha";
2727

2828
static final PrivateKey privateKey = getPrivateKeyLocal(privateCertName, password, alias);
29-
3029
static final PublicKey publicKey = getPublicKeyLocal(publicCertName);
3130

3231
private static final String message = "Lorem ipsum dolor sit amet, vel nihil senserit ei. Ne quo erat feugait disputationi.";

0 commit comments

Comments
 (0)