Error Message expected: but was: Stacktrace org.opentest4j.AssertionFailedError: expected: but was: at com.example.schooltimetabling.solver.TimeTableControllerTest.solveDemoDataUntilFeasible(TimeTableControllerTest.java:56) Standard Output 04:09:30.098 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] 04:09:30.112 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] 04:09:30.153 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.example.schooltimetabling.solver.TimeTableControllerTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 04:09:30.171 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.example.schooltimetabling.solver.TimeTableControllerTest], using SpringBootContextLoader 04:09:30.175 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.schooltimetabling.solver.TimeTableControllerTest]: class path resource [com/example/schooltimetabling/solver/TimeTableControllerTest-context.xml] does not exist 04:09:30.176 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.example.schooltimetabling.solver.TimeTableControllerTest]: class path resource [com/example/schooltimetabling/solver/TimeTableControllerTestContext.groovy] does not exist 04:09:30.176 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.example.schooltimetabling.solver.TimeTableControllerTest]: no resource found for suffixes {-context.xml, Context.groovy}. 04:09:30.177 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.example.schooltimetabling.solver.TimeTableControllerTest]: TimeTableControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 04:09:30.226 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.example.schooltimetabling.solver.TimeTableControllerTest] 04:09:30.306 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/home/jenkins/workspace/KIE/master/fdb/drools-master.fdb/kiegroup_optaplanner/optaplanner-quickstarts/spring-boot-school-timetabling/target/classes/com/example/schooltimetabling/TimeTableSpringBootApp.class] 04:09:30.307 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.example.schooltimetabling.TimeTableSpringBootApp for test class com.example.schooltimetabling.solver.TimeTableControllerTest 04:09:30.418 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.example.schooltimetabling.solver.TimeTableControllerTest]: using defaults. 04:09:30.418 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 04:09:30.434 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@74e28667, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@1cf6d1be, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@663c9e7a, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@19e4653c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@795509d9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@53045c6c, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5149d738, org.springframework.test.context.event.EventPublishingTestExecutionListener@6bbe85a8, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@3a7442c7, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@4be29ed9, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@548d708a, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@4b013c76, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@53fb3dab] 04:09:30.437 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@28261e8e testClass = TimeTableControllerTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@d737b89 testClass = TimeTableControllerTest, locations = '{}', classes = '{class com.example.schooltimetabling.TimeTableSpringBootApp}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{optaplanner.solver.termination.spent-limit=1h, optaplanner.solver.termination.best-score-limit=0hard/*soft, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7193666c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1dde4cb2, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@14dd9eb7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@a514af7], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null]. 04:09:30.462 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, optaplanner.solver.termination.spent-limit=1h, optaplanner.solver.termination.best-score-limit=0hard/*soft, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.2.6.RELEASE) 04:09:30.699 INFO [34m[main ][0;39m Starting TimeTableControllerTest on kie-psi-rhel7-xlarge-xmem-28940 with PID 25903 (started by jenkins in /home/jenkins/workspace/KIE/master/fdb/drools-master.fdb/kiegroup_optaplanner/optaplanner-quickstarts/spring-boot-school-timetabling) 04:09:30.700 INFO [34m[main ][0;39m No active profile set, falling back to default profiles: default 04:09:31.549 INFO [34m[main ][0;39m Bootstrapping Spring Data JPA repositories in DEFAULT mode. 04:09:31.634 INFO [34m[main ][0;39m Finished Spring Data repository scanning in 74ms. Found 3 JPA repository interfaces. 04:09:32.437 INFO [34m[main ][0;39m HikariPool-1 - Starting... 04:09:32.736 INFO [34m[main ][0;39m HikariPool-1 - Start completed. 04:09:32.820 INFO [34m[main ][0;39m HHH000204: Processing PersistenceUnitInfo [name: default] 04:09:32.906 INFO [34m[main ][0;39m HHH000412: Hibernate ORM core version 5.4.12.Final 04:09:33.070 INFO [34m[main ][0;39m HCANN000001: Hibernate Commons Annotations {5.1.0.Final} 04:09:33.228 INFO [34m[main ][0;39m HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 04:09:34.017 INFO [34m[main ][0;39m HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 04:09:34.025 INFO [34m[main ][0;39m Initialized JPA EntityManagerFactory for persistence unit 'default' 04:09:35.975 WARN [34m[main ][0;39m spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 04:09:36.191 INFO [34m[main ][0;39m Initializing ExecutorService 'applicationTaskExecutor' 04:09:36.322 INFO [34m[main ][0;39m Adding welcome page: class path resource [static/index.html] 04:09:37.961 INFO [34m[main ][0;39m Started TimeTableControllerTest in 7.489 seconds (JVM running for 8.488) 04:09:38.543 INFO [34m[pool-1-thread-1][0;39m Solving started: time spent (132), best score (-38init/0hard/0soft), environment mode (REPRODUCIBLE), random (JDK with seed 0). 04:09:38.824 INFO [34m[pool-1-thread-1][0;39m Construction Heuristic phase (0) ended: time spent (413), best score (-1hard/-15soft), score calculation speed (2053/sec), step total (19). 04:09:38.881 INFO [34m[pool-1-thread-1][0;39m Local Search phase (1) ended: time spent (470), best score (0hard/-13soft), score calculation speed (259/sec), step total (4). 04:09:38.881 INFO [34m[pool-1-thread-1][0;39m Solving ended: time spent (470), best score (0hard/-13soft), score calculation speed (1246/sec), phase total (2), environment mode (REPRODUCIBLE).