Polish failed assertion messages in QuartzSupportTests
This commit is contained in:
parent
276712dcd1
commit
d5fb829ade
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2014 the original author or authors.
|
* Copyright 2002-2015 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -119,7 +119,7 @@ public class QuartzSupportTests {
|
||||||
bean.start();
|
bean.start();
|
||||||
|
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
assertTrue(DummyJob.count > 0);
|
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);
|
||||||
assertEquals(DummyJob.count, taskExecutor.count);
|
assertEquals(DummyJob.count, taskExecutor.count);
|
||||||
|
|
||||||
bean.destroy();
|
bean.destroy();
|
||||||
|
|
@ -197,7 +197,7 @@ public class QuartzSupportTests {
|
||||||
|
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
assertEquals(10, DummyJob.param);
|
assertEquals(10, DummyJob.param);
|
||||||
assertTrue(DummyJob.count > 0);
|
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);
|
||||||
|
|
||||||
bean.destroy();
|
bean.destroy();
|
||||||
}
|
}
|
||||||
|
|
@ -287,7 +287,7 @@ public class QuartzSupportTests {
|
||||||
|
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
assertEquals(10, DummyJob.param);
|
assertEquals(10, DummyJob.param);
|
||||||
assertTrue(DummyJob.count > 0);
|
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);
|
||||||
|
|
||||||
bean.destroy();
|
bean.destroy();
|
||||||
}
|
}
|
||||||
|
|
@ -394,7 +394,7 @@ public class QuartzSupportTests {
|
||||||
assertTrue("No triggers were persisted", jdbcTemplate.queryForList("SELECT * FROM qrtz_triggers").size()>0);
|
assertTrue("No triggers were persisted", jdbcTemplate.queryForList("SELECT * FROM qrtz_triggers").size()>0);
|
||||||
Thread.sleep(3000);
|
Thread.sleep(3000);
|
||||||
try {
|
try {
|
||||||
assertTrue(DummyJob.count > 0);
|
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
ctx.close();
|
ctx.close();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue