Skip to content

Commit

Permalink
Polish failed assertion messages in QuartzSupportTests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Jan 10, 2015
1 parent 276712d commit d5fb829
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -119,7 +119,7 @@ public void schedulerWithTaskExecutor() throws Exception {
bean.start();

Thread.sleep(500);
assertTrue(DummyJob.count > 0);
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);
assertEquals(DummyJob.count, taskExecutor.count);

bean.destroy();
Expand Down Expand Up @@ -197,7 +197,7 @@ public void schedulerWithSpringBeanJobFactory() throws Exception {

Thread.sleep(500);
assertEquals(10, DummyJob.param);
assertTrue(DummyJob.count > 0);
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);

bean.destroy();
}
Expand Down Expand Up @@ -287,7 +287,7 @@ public void schedulerWithSpringBeanJobFactoryAndJobSchedulingData() throws Excep

Thread.sleep(500);
assertEquals(10, DummyJob.param);
assertTrue(DummyJob.count > 0);
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);

bean.destroy();
}
Expand Down Expand Up @@ -394,7 +394,7 @@ public void schedulerWithHsqlDataSource() throws Exception {
assertTrue("No triggers were persisted", jdbcTemplate.queryForList("SELECT * FROM qrtz_triggers").size()>0);
Thread.sleep(3000);
try {
assertTrue(DummyJob.count > 0);
assertTrue("DummyJob should have been executed at least once.", DummyJob.count > 0);
}
finally {
ctx.close();
Expand Down

0 comments on commit d5fb829

Please sign in to comment.