提交 e6f70f70 编写于 作者: A ainilife

fix bug Date format in StateAnalyzerTest

上级 2c641b1e
......@@ -25,8 +25,8 @@ public class StateAnalyzerTest extends ComponentTestCase {
@Before
public void setUp() throws Exception {
super.setUp();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm");
Date date = sdf.parse("20120101 00:00");
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss");
Date date = sdf.parse("20120101 00:00:00");
m_analyzer = (StateAnalyzer) lookup(MessageAnalyzer.class, StateAnalyzer.ID);
m_analyzer.initialize(date.getTime(), Constants.HOUR, Constants.MINUTE * 5);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册