Skip to content

Commit 18b20c3

Browse files
committed
TestCase
1 parent 61c0460 commit 18b20c3

18 files changed

Lines changed: 150 additions & 427 deletions

File tree

okhttps-fastjson/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
<artifactId>fastjson</artifactId>
2323
<version>${fastjson.version}</version>
2424
</dependency>
25+
<dependency>
26+
<groupId>com.ejlchina</groupId>
27+
<artifactId>okhttps-test</artifactId>
28+
<version>${okhttps.version}</version>
29+
<scope>test</scope>
30+
</dependency>
2531
</dependencies>
2632

2733

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.ejlchina.okhttps;
2+
3+
import com.ejlchina.okhttps.test.MsgConvertorTest;
4+
import org.junit.Test;
5+
6+
7+
public class TestCase {
8+
9+
10+
@Test
11+
public void doTest() throws Exception {
12+
MsgConvertor msgConvertor = new FastjsonMsgConvertor();
13+
new MsgConvertorTest(msgConvertor).run();
14+
}
15+
16+
17+
}

okhttps-fastjson/src/test/java/com/ejlchina/okhttps/TestCases.java

Lines changed: 0 additions & 88 deletions
This file was deleted.

okhttps-fastjson/src/test/java/com/ejlchina/okhttps/User.java

Lines changed: 0 additions & 66 deletions
This file was deleted.

okhttps-gson/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
<artifactId>gson</artifactId>
2323
<version>${gson.version}</version>
2424
</dependency>
25+
<dependency>
26+
<groupId>com.ejlchina</groupId>
27+
<artifactId>okhttps-test</artifactId>
28+
<version>${okhttps.version}</version>
29+
<scope>test</scope>
30+
</dependency>
2531
</dependencies>
2632

2733
<build>

okhttps-gson/src/test/java/com/ejlchina/okhttps/DateBean.java

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.ejlchina.okhttps;
2+
3+
import com.ejlchina.okhttps.test.MsgConvertorTest;
4+
import org.junit.Test;
5+
6+
7+
public class TestCase {
8+
9+
@Test
10+
public void doTest() throws Exception {
11+
MsgConvertor msgConvertor = new GsonMsgConvertor();
12+
new MsgConvertorTest(msgConvertor).run();
13+
}
14+
15+
}

okhttps-jackson/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
<artifactId>jackson-databind</artifactId>
2323
<version>${jackson.version}</version>
2424
</dependency>
25+
<dependency>
26+
<groupId>com.ejlchina</groupId>
27+
<artifactId>okhttps-test</artifactId>
28+
<version>${okhttps.version}</version>
29+
<scope>test</scope>
30+
</dependency>
2531
</dependencies>
2632

2733
<build>

okhttps-jackson/src/test/java/com/ejlchina/okhttps/DateBean.java

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.ejlchina.okhttps;
2+
3+
import com.ejlchina.okhttps.test.MsgConvertorTest;
4+
import org.junit.Test;
5+
6+
7+
public class TestCase {
8+
9+
@Test
10+
public void doTest() throws Exception {
11+
MsgConvertor msgConvertor = new JacksonMsgConvertor();
12+
new MsgConvertorTest(msgConvertor).run();
13+
}
14+
15+
}

0 commit comments

Comments
 (0)