Class org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec

5

tests

0

failures

0

ignored

10.272s

duration

100%

successful

Tests

Test Duration Result
Generate a valid QR Code Generation Request with custom size 0.045s passed
Generate a valid QR Code Generation Request with standared size 10.089s passed
Generate that QR Code Generation Request returns 400 for invalid integer for 'h' parameter 0.013s passed
Generate that QR Code Generation Request returns 400 for invalid integer for 'w' parameter 0.015s passed
Generate that QR Code Generation Request returns 400 for missing 'd' parameter 0.110s passed

Standard output

21:40:49.845 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.849 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.850 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.850 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.856 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.856 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.857 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.857 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.857 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.857 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.858 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.858 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:49.863 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
21:40:49.870 [Test worker] 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)]
21:40:49.873 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
21:40:49.884 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec], using SpringBootContextLoader
21:40:49.896 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]: class path resource [org/lightningj/paywall/springboot2/QRCodeGenerationIntegrationSpec-context.xml] does not exist
21:40:49.897 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]: class path resource [org/lightningj/paywall/springboot2/QRCodeGenerationIntegrationSpecContext.groovy] does not exist
21:40:49.897 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]: no resource found for suffixes {-context.xml, Context.groovy}.
21:40:49.899 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]: QRCodeGenerationIntegrationSpec does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
21:40:49.958 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]
21:40:50.077 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/philip/Documents/git-repos/paywall/paywall-springboot2/build/classes/java/main/org/lightningj/paywall/springboot2/PocApplication.class]
21:40:50.080 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration org.lightningj.paywall.springboot2.PocApplication for test class org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec
21:40:50.192 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec]: using defaults.
21:40:50.193 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.spockframework.spring.SpringMockTestExecutionListener, 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.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, 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]
21:40:50.212 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@124e4900, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@50b7501f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@36131b15, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@306c91b, org.springframework.test.context.support.DirtiesContextTestExecutionListener@63609632, org.springframework.test.context.transaction.TransactionalTestExecutionListener@93d15e9, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@27587c68, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@12a32789, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7595e2e9, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@146623ef, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@7039a637, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@7b2d48d6, org.spockframework.spring.SpringMockTestExecutionListener@21756ff0]
21:40:50.357 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@1518ae53 testClass = QRCodeGenerationIntegrationSpec, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@141d53d4 testClass = QRCodeGenerationIntegrationSpec, locations = '{}', classes = '{class org.lightningj.paywall.springboot2.PocApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{classpath:/test_application.properties}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=0}', contextCustomizers = set[org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@78a57c14, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@2865612, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@3f8b8486, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@640dfd41], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> false]], class annotated with @DirtiesContext [false] with mode [null].
21:40:50.657 [Test worker] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@1518ae53 testClass = QRCodeGenerationIntegrationSpec, testInstance = org.lightningj.paywall.springboot2.QRCodeGenerationIntegrationSpec@244dd23f, testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@141d53d4 testClass = QRCodeGenerationIntegrationSpec, locations = '{}', classes = '{class org.lightningj.paywall.springboot2.PocApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{classpath:/test_application.properties}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=0}', contextCustomizers = set[org.spockframework.spring.mock.SpockContextCustomizer@0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@78a57c14, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@2865612, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@3f8b8486, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@640dfd41], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> false]]].
21:40:50.676 [Test worker] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=0}

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.3.RELEASE)

2019-08-25 21:40:50.947  INFO 42287 --- [    Test worker] o.l.p.s.QRCodeGenerationIntegrationSpec  : Starting QRCodeGenerationIntegrationSpec on philips-mbp with PID 42287 (/Users/philip/Documents/git-repos/paywall/paywall-springboot2/build/classes/groovy/test started by philip in /Users/philip/Documents/git-repos/paywall/paywall-springboot2)
2019-08-25 21:40:50.948  INFO 42287 --- [    Test worker] o.l.p.s.QRCodeGenerationIntegrationSpec  : The following profiles are active: integration_paywall_local
2019-08-25 21:40:52.013  INFO 42287 --- [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-08-25 21:40:52.110  INFO 42287 --- [    Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 89ms. Found 4 repository interfaces.
2019-08-25 21:40:52.603  INFO 42287 --- [    Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$1fcac869] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-08-25 21:40:53.062  INFO 42287 --- [    Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 0 (http)
2019-08-25 21:40:53.101  INFO 42287 --- [    Test worker] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-08-25 21:40:53.101  INFO 42287 --- [    Test worker] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.16]
2019-08-25 21:40:53.114  INFO 42287 --- [    Test worker] o.a.catalina.core.AprLifecycleListener   : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/philip/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
2019-08-25 21:40:53.319  INFO 42287 --- [    Test worker] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-08-25 21:40:53.320  INFO 42287 --- [    Test worker] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2338 ms
2019-08-25 21:40:53.582  INFO 42287 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2019-08-25 21:40:53.767  INFO 42287 --- [    Test worker] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2019-08-25 21:40:53.856  INFO 42287 --- [    Test worker] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
	name: default
	...]
2019-08-25 21:40:53.929  INFO 42287 --- [    Test worker] org.hibernate.Version                    : HHH000412: Hibernate Core {5.3.7.Final}
2019-08-25 21:40:53.932  INFO 42287 --- [    Test worker] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
2019-08-25 21:40:54.077  INFO 42287 --- [    Test worker] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2019-08-25 21:40:54.225  INFO 42287 --- [    Test worker] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2019-08-25 21:40:55.133  INFO 42287 --- [    Test worker] o.h.t.schema.internal.SchemaCreatorImpl  : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@51dfe5c3'
2019-08-25 21:40:55.136  INFO 42287 --- [    Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-08-25 21:40:57.031  INFO 42287 --- [    Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'clientInboundChannelExecutor'
2019-08-25 21:40:57.040  INFO 42287 --- [    Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'clientOutboundChannelExecutor'
2019-08-25 21:40:57.078  INFO 42287 --- [    Test worker] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'messageBrokerTaskScheduler'
2019-08-25 21:40:57.134  INFO 42287 --- [    Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'brokerChannelExecutor'
2019-08-25 21:40:57.716  WARN 42287 --- [    Test worker] aWebConfiguration$JpaWebMvcConfiguration : 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
2019-08-25 21:40:59.539  INFO 42287 --- [    Test worker] o.s.m.s.b.SimpleBrokerMessageHandler     : Starting...
2019-08-25 21:40:59.539  INFO 42287 --- [    Test worker] o.s.m.s.b.SimpleBrokerMessageHandler     : BrokerAvailabilityEvent[available=true, SimpleBrokerMessageHandler [DefaultSubscriptionRegistry[cache[0 destination(s)], registry[0 sessions]]]]
2019-08-25 21:40:59.539  INFO 42287 --- [    Test worker] o.s.m.s.b.SimpleBrokerMessageHandler     : Started.
2019-08-25 21:40:59.584  INFO 42287 --- [    Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 58944 (http) with context path ''
2019-08-25 21:40:59.590  INFO 42287 --- [    Test worker] o.l.p.s.QRCodeGenerationIntegrationSpec  : Started QRCodeGenerationIntegrationSpec in 8.911 seconds (JVM running for 10.765)
2019-08-25 21:41:00.106  INFO 42287 --- [o-auto-1-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-08-25 21:41:00.107  INFO 42287 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-08-25 21:41:00.135  INFO 42287 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 28 ms
2019-08-25 21:41:00.313  WARN 42287 --- [    Test worker] groovyx.net.http.ParserRegistry          : Cannot find parser for content-type: image/png -- using default parser.
2019-08-25 21:41:00.731  WARN 42287 --- [    Test worker] groovyx.net.http.ParserRegistry          : Cannot find parser for content-type: image/png -- using default parser.
2019-08-25 21:41:00.782  WARN 42287 --- [    Test worker] groovyx.net.http.ParserRegistry          : Cannot find parser for content-type: image/png -- using default parser.