Skip to content

Commit 77eaba1

Browse files
committed
remove unused testcode & refactor pom.xml
1 parent 1966971 commit 77eaba1

File tree

71 files changed

+3303
-5302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3303
-5302
lines changed

pom.xml

Lines changed: 2 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -168,127 +168,42 @@
168168
</build>
169169

170170
<dependencies>
171-
<dependency>
172-
<groupId>javax.servlet</groupId>
173-
<artifactId>servlet-api</artifactId>
174-
<version>2.5</version>
175-
<scope>provided</scope>
176-
<optional>true</optional>
177-
</dependency>
178-
<dependency>
179-
<groupId>javax.ws.rs</groupId>
180-
<artifactId>jsr311-api</artifactId>
181-
<version>1.1.1</version>
182-
<scope>provided</scope>
183-
<optional>true</optional>
184-
</dependency>
185-
<dependency>
186-
<groupId>org.springframework</groupId>
187-
<artifactId>spring-webmvc</artifactId>
188-
<version>3.2.2.RELEASE</version>
189-
<scope>provided</scope>
190-
<optional>true</optional>
191-
</dependency>
192-
193171
<dependency>
194172
<groupId>junit</groupId>
195173
<artifactId>junit</artifactId>
196174
<version>${junit.version}</version>
197175
<scope>test</scope>
198176
</dependency>
199-
200-
<dependency>
201-
<groupId>com.fasterxml.jackson.core</groupId>
202-
<artifactId>jackson-databind</artifactId>
203-
<version>2.4.2</version>
204-
<scope>test</scope>
205-
</dependency>
206-
177+
207178
<dependency>
208179
<groupId>cglib</groupId>
209180
<artifactId>cglib-nodep</artifactId>
210181
<version>2.2.2</version>
211182
<scope>test</scope>
212183
</dependency>
213184

214-
<dependency>
215-
<groupId>org.codehaus.jackson</groupId>
216-
<artifactId>jackson-jaxrs</artifactId>
217-
<version>1.9.13</version>
218-
<scope>test</scope>
219-
</dependency>
220-
<dependency>
221-
<groupId>org.codehaus.jackson</groupId>
222-
<artifactId>jackson-smile</artifactId>
223-
<version>1.9.13</version>
224-
<scope>test</scope>
225-
</dependency>
226-
<dependency>
227-
<groupId>com.googlecode.json-simple</groupId>
228-
<artifactId>json-simple</artifactId>
229-
<version>1.1</version>
230-
<scope>test</scope>
231-
</dependency>
232-
233185
<dependency>
234186
<groupId>commons-io</groupId>
235187
<artifactId>commons-io</artifactId>
236188
<version>1.4</version>
237189
<scope>test</scope>
238190
</dependency>
239-
191+
240192
<dependency>
241193
<groupId>net.sf.json-lib</groupId>
242194
<artifactId>json-lib</artifactId>
243195
<version>2.4</version>
244196
<classifier>jdk15</classifier>
245197
<scope>test</scope>
246198
</dependency>
247-
<dependency>
248-
<groupId>xom</groupId>
249-
<artifactId>xom</artifactId>
250-
<version>1.2.5</version>
251-
<scope>test</scope>
252-
</dependency>
253199

254-
<dependency>
255-
<groupId>com.google.code.gson</groupId>
256-
<artifactId>gson</artifactId>
257-
<version>2.3</version>
258-
<scope>test</scope>
259-
</dependency>
260-
<dependency>
261-
<groupId>net.minidev</groupId>
262-
<artifactId>json-smart</artifactId>
263-
<version>1.1.1</version>
264-
<scope>test</scope>
265-
</dependency>
266-
<dependency>
267-
<groupId>com.owlike</groupId>
268-
<artifactId>genson</artifactId>
269-
<version>0.97</version>
270-
<scope>test</scope>
271-
</dependency>
272-
273-
<dependency>
274-
<groupId>org.clojure</groupId>
275-
<artifactId>clojure</artifactId>
276-
<version>1.5.1</version>
277-
<scope>test</scope>
278-
</dependency>
279200
<dependency>
280201
<groupId>org.codehaus.groovy</groupId>
281202
<artifactId>groovy</artifactId>
282203
<version>2.1.5</version>
283204
<scope>test</scope>
284205
</dependency>
285206

286-
<dependency>
287-
<groupId>org.springframework</groupId>
288-
<artifactId>spring-test</artifactId>
289-
<version>3.2.3.RELEASE</version>
290-
<scope>test</scope>
291-
</dependency>
292207
<dependency>
293208
<groupId>org.javassist</groupId>
294209
<artifactId>javassist</artifactId>

src/test/java/com/alibaba/json/bvt/SymbolTableTest.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
package com.alibaba.json.bvt;
22

3-
import org.junit.Assert;
43
import junit.framework.TestCase;
54

6-
import org.codehaus.jackson.sym.CharsToNameCanonicalizer;
5+
import org.junit.Assert;
76

87
import com.alibaba.fastjson.parser.SymbolTable;
98

@@ -28,14 +27,6 @@ public void test_symbol() throws Exception {
2827
symbols_char[i] = symbols[i].toCharArray();
2928
}
3029

31-
{
32-
CharsToNameCanonicalizer table = CharsToNameCanonicalizer.createRoot();
33-
for (int i = 0; i < symbols.length; ++i) {
34-
String symbol = symbols[i];
35-
table.findSymbol(symbol.toCharArray(), 0, symbol.length(), symbol.hashCode());
36-
}
37-
}
38-
3930
SymbolTable table = new SymbolTable();
4031
for (int i = 0; i < symbols.length; ++i) {
4132
String symbol = symbols[i];

src/test/java/com/alibaba/json/test/Bug_0_Test.java

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

src/test/java/com/alibaba/json/test/DateTest.java

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

src/test/java/com/alibaba/json/test/JSONParser2Test.java

Lines changed: 0 additions & 85 deletions
This file was deleted.
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
package com.alibaba.json.test.benchmark;
2-
3-
import com.alibaba.json.test.codec.Codec;
4-
5-
public abstract class BenchmarkCase {
6-
7-
private final String name;
8-
9-
public BenchmarkCase(String name){
10-
super();
11-
this.name = name;
12-
}
13-
14-
public String getName() {
15-
return name;
16-
}
17-
18-
public void init(Codec codec) throws Exception {
19-
20-
}
21-
22-
public abstract void execute(Codec codec) throws Exception;
23-
}
1+
package com.alibaba.json.test.benchmark;
2+
3+
import com.alibaba.json.test.codec.Codec;
4+
5+
public abstract class BenchmarkCase {
6+
7+
private final String name;
8+
9+
public BenchmarkCase(String name){
10+
super();
11+
this.name = name;
12+
}
13+
14+
public String getName() {
15+
return name;
16+
}
17+
18+
public void init(Codec codec) throws Exception {
19+
20+
}
21+
22+
public abstract void execute(Codec codec) throws Exception;
23+
}

0 commit comments

Comments
 (0)