From d5fb829adebddbf791faeb5afb00e543982e6d7a Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 10 Jan 2015 22:28:00 +0100 Subject: [PATCH] Polish failed assertion messages in QuartzSupportTests --- .../scheduling/quartz/QuartzSupportTests.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java b/spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java index c66d33cff09a..b7dde01354d1 100644 --- a/spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java +++ b/spring-context-support/src/test/java/org/springframework/scheduling/quartz/QuartzSupportTests.java @@ -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. @@ -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(); @@ -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(); } @@ -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(); } @@ -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();