· 6 years ago · Nov 14, 2019, 10:34 PM
1➜ java-10 git:(master) ✗ codenation test -c java-10
2Versão: 1.0.13
3
4Usando arquivo de configuração: /Users/daniel/.codenation.yml
5[INFO] Scanning for projects...
6[INFO]
7[INFO] -------------------< com.challenge:spring-data-ddl >--------------------
8[INFO] Building spring-data-ddl 0.0.1-SNAPSHOT
9[INFO] --------------------------------[ jar ]---------------------------------
10[INFO]
11[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ spring-data-ddl ---
12[INFO] Using 'UTF-8' encoding to copy filtered resources.
13[INFO] Copying 1 resource
14[INFO] Copying 0 resource
15[INFO]
16[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ spring-data-ddl ---
17[INFO] Changes detected - recompiling the module!
18[INFO] Compiling 28 source files to /Users/daniel/codenation/java-10/target/classes
19[INFO]
20[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ spring-data-ddl ---
21[INFO] Using 'UTF-8' encoding to copy filtered resources.
22[INFO] Copying 0 resource
23[INFO]
24[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ spring-data-ddl ---
25[INFO] Changes detected - recompiling the module!
26[INFO] Compiling 2 source files to /Users/daniel/codenation/java-10/target/test-classes
27[INFO]
28[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ spring-data-ddl ---
29[INFO]
30[INFO] -------------------------------------------------------
31[INFO] T E S T S
32[INFO] -------------------------------------------------------
33[INFO] Running com.challenge.SpringDmlApplicationTests
3420:25:44.308 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.challenge.SpringDmlApplicationTests]
3520:25:44.315 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
3620:25:44.324 [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)]
3720:25:44.350 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.challenge.SpringDmlApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
3820:25:44.367 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.challenge.SpringDmlApplicationTests], using SpringBootContextLoader
3920:25:44.372 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.challenge.SpringDmlApplicationTests]: class path resource [com/challenge/SpringDmlApplicationTests-context.xml] does not exist
4020:25:44.373 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.challenge.SpringDmlApplicationTests]: class path resource [com/challenge/SpringDmlApplicationTestsContext.groovy] does not exist
4120:25:44.373 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.challenge.SpringDmlApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
4220:25:44.374 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.challenge.SpringDmlApplicationTests]: SpringDmlApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
4320:25:44.436 [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.challenge.SpringDmlApplicationTests]
4420:25:44.556 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/daniel/codenation/java-10/target/classes/com/challenge/SpringChallengeApplication.class]
4520:25:44.558 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.challenge.SpringChallengeApplication for test class com.challenge.SpringDmlApplicationTests
4620:25:44.678 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.challenge.SpringDmlApplicationTests]: using defaults.
4720:25:44.679 [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]
4820:25:44.693 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [javax/servlet/ServletContext]
4920:25:44.707 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4facf68f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@76508ed1, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@41e36e46, org.springframework.test.context.support.DirtiesContextTestExecutionListener@15c43bd9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3d74bf60, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@4f209819, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@15eb5ee5, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2145b572, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@39529185, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@72f926e6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3daa422a]
5020:25:44.709 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5120:25:44.710 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5220:25:44.712 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5320:25:44.713 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5420:25:44.714 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5520:25:44.714 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5620:25:44.721 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@56620197 testClass = SpringDmlApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6eda5c9 testClass = SpringDmlApplicationTests, locations = '{}', classes = '{class com.challenge.SpringChallengeApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@d44fc21, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4e7dc304, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@59e5ddf, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17d677df], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null].
5720:25:44.722 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5820:25:44.722 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5920:25:44.732 [main] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@56620197 testClass = SpringDmlApplicationTests, testInstance = com.challenge.SpringDmlApplicationTests@42e99e4a, testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6eda5c9 testClass = SpringDmlApplicationTests, locations = '{}', classes = '{class com.challenge.SpringChallengeApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@d44fc21, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4e7dc304, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@59e5ddf, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17d677df], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]]].
6020:25:44.768 [main] 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=-1}
61
62 . ____ _ __ _ _
63 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
64( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
65 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
66 ' |____| .__|_| |_|_| |_\__, | / / / /
67 =========|_|==============|___/=/_/_/_/
68 :: Spring Boot :: (v2.1.6.RELEASE)
69
702019-11-14 20:26:00.073 INFO 6196 --- [ main] com.challenge.SpringDmlApplicationTests : Starting SpringDmlApplicationTests on MacBook-Pro-de-Daniel.local with PID 6196 (started by daniel in /Users/daniel/codenation/java-10)
712019-11-14 20:26:00.074 INFO 6196 --- [ main] com.challenge.SpringDmlApplicationTests : No active profile set, falling back to default profiles: default
722019-11-14 20:26:00.559 INFO 6196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
732019-11-14 20:26:00.692 INFO 6196 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 123ms. Found 6 repository interfaces.
742019-11-14 20:26:01.372 INFO 6196 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
752019-11-14 20:26:01.570 INFO 6196 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
762019-11-14 20:26:01.690 INFO 6196 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
77 name: default
78 ...]
792019-11-14 20:26:01.772 INFO 6196 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
802019-11-14 20:26:01.774 INFO 6196 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
812019-11-14 20:26:01.958 INFO 6196 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
822019-11-14 20:26:02.142 INFO 6196 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
83Hibernate: drop table acceleration if exists
84Hibernate: drop table candidate if exists
85Hibernate: drop table challenge if exists
86Hibernate: drop table company if exists
87Hibernate: drop table submission if exists
88Hibernate: drop table users if exists
89Hibernate: create table acceleration (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), challenge_id bigint, primary key (id))
90Hibernate: create table candidate (created_at timestamp, status integer, user_id bigint not null, company_id bigint not null, acceleration_id bigint not null, primary key (acceleration_id, company_id, user_id))
91Hibernate: create table challenge (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
92Hibernate: create table company (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
93Hibernate: create table submission (created_at timestamp, score float, user_id bigint not null, challenge_id bigint not null, primary key (challenge_id, user_id))
94Hibernate: create table users (id bigint generated by default as identity, created_at timestamp, email varchar(255), full_name varchar(255), nickname varchar(255), password varchar(255), primary key (id))
95Hibernate: alter table acceleration add constraint FK6bucejmky2hqhcmj6vexf9tkp foreign key (challenge_id) references challenge
96Hibernate: alter table candidate add constraint FKc23nbdgfce6rnt56ofltvxu71 foreign key (user_id) references users
97Hibernate: alter table candidate add constraint FK5859evebv1forwxno1dj2x73m foreign key (company_id) references company
98Hibernate: alter table candidate add constraint FK9wdl31wkstau7n5wckm5prkdg foreign key (acceleration_id) references acceleration
99Hibernate: alter table submission add constraint FKioe5xddu66v3aktrkyxj4vfx9 foreign key (user_id) references users
100Hibernate: alter table submission add constraint FK5w6mihcq53t1j5x2cmgy640cm foreign key (challenge_id) references challenge
1012019-11-14 20:26:03.234 INFO 6196 --- [ main] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@48268eec'
1022019-11-14 20:26:03.238 INFO 6196 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
1032019-11-14 20:26:03.824 INFO 6196 --- [ main] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
1042019-11-14 20:26:04.353 INFO 6196 --- [ main] com.challenge.SpringDmlApplicationTests : Started SpringDmlApplicationTests in 19.582 seconds (JVM running for 20.486)
105[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 20.27 s - in com.challenge.SpringDmlApplicationTests
106[INFO] Running com.challenge.SpringChallengeApplicationTests
1072019-11-14 20:26:04.426 INFO 6196 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.challenge.SpringChallengeApplicationTests], using SpringBootContextLoader
1082019-11-14 20:26:04.426 INFO 6196 --- [ main] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.challenge.SpringChallengeApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
1092019-11-14 20:26:04.427 INFO 6196 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.challenge.SpringChallengeApplicationTests]: SpringChallengeApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
1102019-11-14 20:26:04.429 INFO 6196 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.challenge.SpringChallengeApplication for test class com.challenge.SpringChallengeApplicationTests
1112019-11-14 20:26:04.432 INFO 6196 --- [ main] .b.t.c.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]
1122019-11-14 20:26:04.433 INFO 6196 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@54895681, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@2dd0a0d0, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6bf570c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1796b2d4, org.springframework.test.context.transaction.TransactionalTestExecutionListener@935d3f9, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@214b342f, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@5db0003d, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@7f12094d, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@589fb74d, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@200d1a3d, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@7de147e9]
113[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s - in com.challenge.SpringChallengeApplicationTests
1142019-11-14 20:26:04.503 INFO 6196 --- [ Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
1152019-11-14 20:26:04.504 INFO 6196 --- [ Thread-3] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
116Hibernate: drop table acceleration if exists
117Hibernate: drop table candidate if exists
118Hibernate: drop table challenge if exists
119Hibernate: drop table company if exists
120Hibernate: drop table submission if exists
121Hibernate: drop table users if exists
1222019-11-14 20:26:04.518 INFO 6196 --- [ Thread-3] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
1232019-11-14 20:26:04.522 INFO 6196 --- [ Thread-3] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
124[INFO]
125[INFO] Results:
126[INFO]
127[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
128[INFO]
129[INFO] ------------------------------------------------------------------------
130[INFO] BUILD SUCCESS
131[INFO] ------------------------------------------------------------------------
132[INFO] Total time: 31.208 s
133[INFO] Finished at: 2019-11-14T20:26:04-02:00
134[INFO] ------------------------------------------------------------------------
135
136Parabéns! Você já pode começar a resolver o desafio. Boa sorte!
137➜ java-10 git:(master) ✗ ./mvnw spring-boot:run
138[INFO] Scanning for projects...
139[INFO]
140[INFO] -------------------< com.challenge:spring-data-ddl >--------------------
141[INFO] Building spring-data-ddl 0.0.1-SNAPSHOT
142[INFO] --------------------------------[ jar ]---------------------------------
143[INFO]
144[INFO] >>> spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) > test-compile @ spring-data-ddl >>>
145[INFO]
146[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ spring-data-ddl ---
147[INFO] Using 'UTF-8' encoding to copy filtered resources.
148[INFO] Copying 1 resource
149[INFO] Copying 0 resource
150[INFO]
151[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ spring-data-ddl ---
152[INFO] Nothing to compile - all classes are up to date
153[INFO]
154[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ spring-data-ddl ---
155[INFO] Using 'UTF-8' encoding to copy filtered resources.
156[INFO] Copying 0 resource
157[INFO]
158[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ spring-data-ddl ---
159[INFO] Nothing to compile - all classes are up to date
160[INFO]
161[INFO] <<< spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) < test-compile @ spring-data-ddl <<<
162[INFO]
163[INFO]
164[INFO] --- spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) @ spring-data-ddl ---
165
166 . ____ _ __ _ _
167 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
168( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
169 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
170 ' |____| .__|_| |_|_| |_\__, | / / / /
171 =========|_|==============|___/=/_/_/_/
172 :: Spring Boot :: (v2.1.6.RELEASE)
173
1742019-11-14 20:26:37.356 INFO 6235 --- [ main] c.challenge.SpringChallengeApplication : Starting SpringChallengeApplication on MacBook-Pro-de-Daniel.local with PID 6235 (/Users/daniel/codenation/java-10/target/classes started by daniel in /Users/daniel/codenation/java-10)
1752019-11-14 20:26:37.359 INFO 6235 --- [ main] c.challenge.SpringChallengeApplication : No active profile set, falling back to default profiles: default
1762019-11-14 20:26:37.931 INFO 6235 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
1772019-11-14 20:26:38.057 INFO 6235 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 111ms. Found 6 repository interfaces.
1782019-11-14 20:26:38.601 INFO 6235 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
1792019-11-14 20:26:38.982 INFO 6235 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
1802019-11-14 20:26:39.119 INFO 6235 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
181 name: default
182 ...]
1832019-11-14 20:26:39.214 INFO 6235 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
1842019-11-14 20:26:39.215 INFO 6235 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
1852019-11-14 20:26:39.458 INFO 6235 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
1862019-11-14 20:26:39.660 INFO 6235 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
187Hibernate: drop table acceleration if exists
188Hibernate: drop table candidate if exists
189Hibernate: drop table challenge if exists
190Hibernate: drop table company if exists
191Hibernate: drop table submission if exists
192Hibernate: drop table users if exists
193Hibernate: create table acceleration (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), challenge_id bigint, primary key (id))
194Hibernate: create table candidate (created_at timestamp, status integer, user_id bigint not null, company_id bigint not null, acceleration_id bigint not null, primary key (acceleration_id, company_id, user_id))
195Hibernate: create table challenge (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
196Hibernate: create table company (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
197Hibernate: create table submission (created_at timestamp, score float, user_id bigint not null, challenge_id bigint not null, primary key (challenge_id, user_id))
198Hibernate: create table users (id bigint generated by default as identity, created_at timestamp, email varchar(255), full_name varchar(255), nickname varchar(255), password varchar(255), primary key (id))
199Hibernate: alter table acceleration add constraint FK6bucejmky2hqhcmj6vexf9tkp foreign key (challenge_id) references challenge
200Hibernate: alter table candidate add constraint FKc23nbdgfce6rnt56ofltvxu71 foreign key (user_id) references users
201Hibernate: alter table candidate add constraint FK5859evebv1forwxno1dj2x73m foreign key (company_id) references company
202Hibernate: alter table candidate add constraint FK9wdl31wkstau7n5wckm5prkdg foreign key (acceleration_id) references acceleration
203Hibernate: alter table submission add constraint FKioe5xddu66v3aktrkyxj4vfx9 foreign key (user_id) references users
204Hibernate: alter table submission add constraint FK5w6mihcq53t1j5x2cmgy640cm foreign key (challenge_id) references challenge
2052019-11-14 20:26:40.626 INFO 6235 --- [ main] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@564ec751'
2062019-11-14 20:26:40.629 INFO 6235 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2072019-11-14 20:26:41.178 INFO 6235 --- [ main] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2082019-11-14 20:26:41.944 INFO 6235 --- [ main] c.challenge.SpringChallengeApplication : Started SpringChallengeApplication in 19.948 seconds (JVM running for 23.754)
209[INFO] ------------------------------------------------------------------------
210[INFO] BUILD SUCCESS
211[INFO] ------------------------------------------------------------------------
212[INFO] Total time: 22.415 s
213[INFO] Finished at: 2019-11-14T20:26:41-02:00
214[INFO] ------------------------------------------------------------------------
2152019-11-14 20:26:41.964 INFO 6235 --- [ Thread-4] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2162019-11-14 20:26:41.965 INFO 6235 --- [ Thread-4] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
217Hibernate: drop table acceleration if exists
218Hibernate: drop table candidate if exists
219Hibernate: drop table challenge if exists
220Hibernate: drop table company if exists
221Hibernate: drop table submission if exists
222Hibernate: drop table users if exists
2232019-11-14 20:26:41.975 INFO 6235 --- [ Thread-4] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2242019-11-14 20:26:41.979 INFO 6235 --- [ Thread-4] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
225➜ java-10 git:(master) ✗ ./mvnw spring-boot:run
226[INFO] Scanning for projects...
227[INFO]
228[INFO] -------------------< com.challenge:spring-data-ddl >--------------------
229[INFO] Building spring-data-ddl 0.0.1-SNAPSHOT
230[INFO] --------------------------------[ jar ]---------------------------------
231[INFO]
232[INFO] >>> spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) > test-compile @ spring-data-ddl >>>
233[INFO]
234[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ spring-data-ddl ---
235[INFO] Using 'UTF-8' encoding to copy filtered resources.
236[INFO] Copying 1 resource
237[INFO] Copying 0 resource
238[INFO]
239[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ spring-data-ddl ---
240[INFO] Nothing to compile - all classes are up to date
241[INFO]
242[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ spring-data-ddl ---
243[INFO] Using 'UTF-8' encoding to copy filtered resources.
244[INFO] Copying 0 resource
245[INFO]
246[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ spring-data-ddl ---
247[INFO] Nothing to compile - all classes are up to date
248[INFO]
249[INFO] <<< spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) < test-compile @ spring-data-ddl <<<
250[INFO]
251[INFO]
252[INFO] --- spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) @ spring-data-ddl ---
253
254 . ____ _ __ _ _
255 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
256( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
257 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
258 ' |____| .__|_| |_|_| |_\__, | / / / /
259 =========|_|==============|___/=/_/_/_/
260 :: Spring Boot :: (v2.1.6.RELEASE)
261
2622019-11-14 20:29:32.778 INFO 6427 --- [ main] c.challenge.SpringChallengeApplication : Starting SpringChallengeApplication on MacBook-Pro-de-Daniel.local with PID 6427 (/Users/daniel/codenation/java-10/target/classes started by daniel in /Users/daniel/codenation/java-10)
2632019-11-14 20:29:32.781 INFO 6427 --- [ main] c.challenge.SpringChallengeApplication : No active profile set, falling back to default profiles: default
2642019-11-14 20:29:33.249 INFO 6427 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2652019-11-14 20:29:33.352 INFO 6427 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 93ms. Found 6 repository interfaces.
2662019-11-14 20:29:33.857 INFO 6427 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2672019-11-14 20:29:34.143 INFO 6427 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2682019-11-14 20:29:34.233 INFO 6427 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
269 name: default
270 ...]
2712019-11-14 20:29:34.308 INFO 6427 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
2722019-11-14 20:29:34.310 INFO 6427 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2732019-11-14 20:29:34.468 INFO 6427 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2742019-11-14 20:29:34.627 INFO 6427 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
275Hibernate: drop table acceleration if exists
276Hibernate: drop table candidate if exists
277Hibernate: drop table challenge if exists
278Hibernate: drop table company if exists
279Hibernate: drop table submission if exists
280Hibernate: drop table users if exists
281Hibernate: create table acceleration (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), challenge_id bigint, primary key (id))
282Hibernate: create table candidate (created_at timestamp, status integer, user_id bigint not null, company_id bigint not null, acceleration_id bigint not null, primary key (acceleration_id, company_id, user_id))
283Hibernate: create table challenge (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
284Hibernate: create table company (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
285Hibernate: create table submission (created_at timestamp, score float, user_id bigint not null, challenge_id bigint not null, primary key (challenge_id, user_id))
286Hibernate: create table users (id bigint generated by default as identity, created_at timestamp, email varchar(255), full_name varchar(255), nickname varchar(255), password varchar(255), primary key (id))
287Hibernate: alter table acceleration add constraint FK6bucejmky2hqhcmj6vexf9tkp foreign key (challenge_id) references challenge
288Hibernate: alter table candidate add constraint FKc23nbdgfce6rnt56ofltvxu71 foreign key (user_id) references users
289Hibernate: alter table candidate add constraint FK5859evebv1forwxno1dj2x73m foreign key (company_id) references company
290Hibernate: alter table candidate add constraint FK9wdl31wkstau7n5wckm5prkdg foreign key (acceleration_id) references acceleration
291Hibernate: alter table submission add constraint FKioe5xddu66v3aktrkyxj4vfx9 foreign key (user_id) references users
292Hibernate: alter table submission add constraint FK5w6mihcq53t1j5x2cmgy640cm foreign key (challenge_id) references challenge
2932019-11-14 20:29:35.455 INFO 6427 --- [ main] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@75614700'
2942019-11-14 20:29:35.458 INFO 6427 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2952019-11-14 20:29:35.935 INFO 6427 --- [ main] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2962019-11-14 20:29:36.670 INFO 6427 --- [ main] c.challenge.SpringChallengeApplication : Started SpringChallengeApplication in 19.241 seconds (JVM running for 22.831)
297[INFO] ------------------------------------------------------------------------
298[INFO] BUILD SUCCESS
299[INFO] ------------------------------------------------------------------------
300[INFO] Total time: 21.589 s
301[INFO] Finished at: 2019-11-14T20:29:36-02:00
302[INFO] ------------------------------------------------------------------------
3032019-11-14 20:29:36.687 INFO 6427 --- [ Thread-4] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
3042019-11-14 20:29:36.688 INFO 6427 --- [ Thread-4] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
305Hibernate: drop table acceleration if exists
306Hibernate: drop table candidate if exists
307Hibernate: drop table challenge if exists
308Hibernate: drop table company if exists
309Hibernate: drop table submission if exists
310Hibernate: drop table users if exists
3112019-11-14 20:29:36.699 INFO 6427 --- [ Thread-4] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
3122019-11-14 20:29:36.703 INFO 6427 --- [ Thread-4] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
313➜ java-10 git:(master) ✗