// Path: src/test/java/de/chandre/quartz/context/StaticLog.java
// public class StaticLog {
// 	private static StaticLog LOG = new StaticLog();
// 	private List<String> messasges = new ArrayList<>();
// 
// 	private StaticLog() {
// 		super();
// 		clear();
// 	}
// 
// 	public static StaticLog getInstance() {
// 		return LOG;
// 	}
// 
// 	public List<String> getMessasges() {
// 		return messasges;
// 	}
// 
// 	public void addMessasge(String messasge) {
// 		this.messasges.add(messasge);
// 	}
// 
// 	public void clear() {
// 		this.messasges.clear();;
// 	}
// }
// 
// Path: src/test/java/de/chandre/quartz/context/TestContextConfiguration5.java
// @Configuration
// @AutoConfigureBefore(QuartzSchedulerAutoConfiguration.class)
// public class TestContextConfiguration5 {
// 	
// 	public static final String CAPTURE1 = "captured: overriding quartz props";
// 	public static final String CAPTURE2 = "captured: overriding quartz factory"; 
// 	
// 	@Bean
// 	public QuartzPropertiesOverrideHook quartzPropertiesOverrideHook() {
// 		return new QuartzPropertiesOverrideHook() {
// 
// 			@Override
// 			public Properties override(Properties quartzProperties) {
// 				StaticLog.getInstance().addMessasge(CAPTURE1);
// 				return quartzProperties;
// 			}
// 		};
// 	}
// 	
// 	@Bean
// 	public QuartzSchedulerFactoryOverrideHook quartzSchedulerFactoryOverrideHook() {
// 		return new QuartzSchedulerFactoryOverrideHook() {
// 			
// 			@Override
// 			public SchedulerFactoryBean override(SchedulerFactoryBean factory, QuartzSchedulerProperties properties,
// 					Properties quartzProperties) {
// 				StaticLog.getInstance().addMessasge(CAPTURE2);
// 				return factory;
// 			}
// 		};
// 	}
// }
// 
// Path: src/test/java/de/chandre/quartz/spring/app/TestApplication.java
// @SpringBootApplication
// @EnableAutoConfiguration
// @ComponentScan(basePackages={"de.chandre.quartz.spring"})
// public class TestApplication {
// 	
// }


import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertNotNull;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import de.chandre.quartz.context.StaticLog;
import de.chandre.quartz.context.TestContextConfiguration5;
import de.chandre.quartz.spring.app.TestApplication;
		"spring.datasource.username=sa",
		"spring.datasource.password=",
		"spring.datasource.driver-class-name=org.h2.Driver",
		"spring.jpa.hibernate.ddl-auto=validate",
		"spring.jpa.database-platform=org.hibernate.dialect.H2Dialect",
		"spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect",
		"logging.level.=error",
		"spring.main.banner-mode=off"})
@DirtiesContext
public class QuartzSchedulerAutoConfig5Test {
	
	@Autowired
	private Scheduler scheduler;
	
	@Autowired
	private SchedulerFactoryBean schedulerFactory;
	
	@BeforeClass
	public static void clear() {
		StaticLog.getInstance().clear();
	}
	
	@Test
	public void startEnvironment_test5() throws SchedulerException {
		assertNotNull(scheduler);
		assertNotNull(schedulerFactory);
		
		assertThat(scheduler.getSchedulerInstanceId()).isEqualTo("QuartzSchedulerTestId");
		
		assertThat(StaticLog.getInstance().getMessasges()).containsExactlyInAnyOrder(
// Path: src/test/java/de/chandre/quartz/context/StaticLog.java
// public class StaticLog {
// 	private static StaticLog LOG = new StaticLog();
// 	private List<String> messasges = new ArrayList<>();
// 
// 	private StaticLog() {
// 		super();
// 		clear();
// 	}
// 
// 	public static StaticLog getInstance() {
// 		return LOG;
// 	}
// 
// 	public List<String> getMessasges() {
// 		return messasges;
// 	}
// 
// 	public void addMessasge(String messasge) {
// 		this.messasges.add(messasge);
// 	}
// 
// 	public void clear() {
// 		this.messasges.clear();;
// 	}
// }
// 
// Path: src/test/java/de/chandre/quartz/context/TestContextConfiguration5.java
// @Configuration
// @AutoConfigureBefore(QuartzSchedulerAutoConfiguration.class)
// public class TestContextConfiguration5 {
// 	
// 	public static final String CAPTURE1 = "captured: overriding quartz props";
// 	public static final String CAPTURE2 = "captured: overriding quartz factory"; 
// 	
// 	@Bean
// 	public QuartzPropertiesOverrideHook quartzPropertiesOverrideHook() {
// 		return new QuartzPropertiesOverrideHook() {
// 
// 			@Override
// 			public Properties override(Properties quartzProperties) {
// 				StaticLog.getInstance().addMessasge(CAPTURE1);
// 				return quartzProperties;
// 			}
// 		};
// 	}
// 	
// 	@Bean
// 	public QuartzSchedulerFactoryOverrideHook quartzSchedulerFactoryOverrideHook() {
// 		return new QuartzSchedulerFactoryOverrideHook() {
// 			
// 			@Override
// 			public SchedulerFactoryBean override(SchedulerFactoryBean factory, QuartzSchedulerProperties properties,
// 					Properties quartzProperties) {
// 				StaticLog.getInstance().addMessasge(CAPTURE2);
// 				return factory;
// 			}
// 		};
// 	}
// }
// 
// Path: src/test/java/de/chandre/quartz/spring/app/TestApplication.java
// @SpringBootApplication
// @EnableAutoConfiguration
// @ComponentScan(basePackages={"de.chandre.quartz.spring"})
// public class TestApplication {
// 	
// }


// Path: src/test/java/de/chandre/quartz/spring/test/QuartzSchedulerAutoConfig5Test.java
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertNotNull;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit4.SpringRunner;
import de.chandre.quartz.context.StaticLog;
import de.chandre.quartz.context.TestContextConfiguration5;
import de.chandre.quartz.spring.app.TestApplication;

		"spring.datasource.username=sa",
		"spring.datasource.password=",
		"spring.datasource.driver-class-name=org.h2.Driver",
		"spring.jpa.hibernate.ddl-auto=validate",
		"spring.jpa.database-platform=org.hibernate.dialect.H2Dialect",
		"spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect",
		"logging.level.=error",
		"spring.main.banner-mode=off"})
@DirtiesContext
public class QuartzSchedulerAutoConfig5Test {
	
	@Autowired
	private Scheduler scheduler;
	
	@Autowired
	private SchedulerFactoryBean schedulerFactory;
	
	@BeforeClass
	public static void clear() {
		StaticLog.getInstance().clear();
	}
	
	@Test
	public void startEnvironment_test5() throws SchedulerException {
		assertNotNull(scheduler);
		assertNotNull(schedulerFactory);
		
		assertThat(scheduler.getSchedulerInstanceId()).isEqualTo("QuartzSchedulerTestId");
		
		assertThat(StaticLog.getInstance().getMessasges()).containsExactlyInAnyOrder(
				TestContextConfiguration5.CAPTURE1,TestContextConfiguration5.CAPTURE2 );