Skip to content

Commit

Permalink
单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
hongjiao committed Jan 23, 2015
1 parent 852321c commit 2097911
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ public void test_doubleFormat() {
System.out.println("double: " + 9801523474.399621d);
System.out.println("bigdecimal: " + new BigDecimal(9801523474.399621d).toPlainString());
System.out.println("bigdecimal: " + new BigDecimal(String.valueOf(9801523474.399621d)).toPlainString());

System.out.println(new DoubleColumn(9801523474.399621d).asString());
Assert.assertTrue("9801523474.39962".equals(new DoubleColumn(
9801523474.399621d).asString()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,6 @@ public void test_get_list() {
expectedEx.expect(ClassCastException.class);
expectedEx.expectMessage("com.alibaba.fastjson.JSONObject cannot be cast to java.util.List");
List aStringCantConvertToList = configuration.getList("job.setting");

}

}
2 changes: 1 addition & 1 deletion core/src/test/java/com/alibaba/datax/core/EngineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public void test_entry() throws Throwable {
writer.write(jobConfig);
writer.flush();
writer.close();

String[] args = { "-job", jobFile, "-mode", "standalone" };

Engine.entry(args);
}

Expand Down

0 comments on commit 2097911

Please sign in to comment.